Skip to content

Commit 4c9c73e

Browse files
committed
Merge pull request #1 from emish/docUpdate
Add missing steps to creating a C library package.
2 parents d62c480 + 4f9ae8d commit 4c9c73e

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
@@ -76,6 +76,17 @@ typically always refer to it that way. A good rule of thumb is to look at the he
7676
see the header is called simply "ogg.h". Pay attention to capitalization; it would be `CPOSIX` and not
7777
`CPosix`, because POSIX is an acronym and is typically spelled all-caps.
7878

79+
We also need to create an empty Package.swift file to let the package
80+
manager know `CVorbis` is a package. Finally, we need to initialize
81+
this directory as a Git repository, adding all the files we created,
82+
and tagging it with a version number for the package manager to use:
83+
84+
CVorbis$ touch Package.swift
85+
CVorbis$ git init
86+
CVorbis$ git add .
87+
CVorbis$ git ci -m "Creating module package"
88+
CVorbis$ git tag 1.0.0
89+
7990
Back in our example app we need a `Package.swift` that depends on CVorbis:
8091

8192
```swift

0 commit comments

Comments
 (0)