Skip to content

Commit 4f9ae8d

Browse files
author
Mishal Awadah
committed
Add missing steps to creating a C library package.
1 parent 4e2f138 commit 4f9ae8d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Documentation/SystemModules.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ typically always refer to it that way. A good rule of thumb is to look at the he
6363
see the header is called simply "ogg.h". Pay attention to capitalization; note that we provide `CPOSIX` and not
6464
`CPosix`, because POSIX is an acronym and is typically spelled all-caps.
6565

66+
We also need to create an empty Package.swift file to let the package
67+
manager know `CVorbis` is a package. Finally, we need to initialize
68+
this directory as a Git repository, adding all the files we created,
69+
and tagging it with a version number for the package manager to use:
70+
71+
CVorbis$ touch Package.swift
72+
CVorbis$ git init
73+
CVorbis$ git add .
74+
CVorbis$ git ci -m "Creating module package"
75+
CVorbis$ git tag 1.0.0
76+
6677
Back in our example app we need a `Package.swift` that depends on CVorbis:
6778

6879
```swift

0 commit comments

Comments
 (0)