File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,13 @@ contains more “Swifty” function wrappers around the raw C interface.
49
49
> When you are done you should push to GitHub or another hosting site so
50
50
> the wider community can benefit from your work.
51
51
52
+ Packages must be semantically-versioned git repositories, so in the ` CVorbis ` directory:
53
+
54
+ git init
55
+ git add .
56
+ git commit -m "Initial Commit"
57
+ git tag 1.0.0
58
+
52
59
We must do the same for ` libogg ` :
53
60
54
61
module COgg [system] {
@@ -57,10 +64,16 @@ We must do the same for `libogg`:
57
64
export *
58
65
}
59
66
67
+ And then again in the ` COgg ` directory:
68
+
69
+ git init
70
+ git add .
71
+ git commit -m "Initial Commit"
72
+ git tag 1.0.0
60
73
61
74
Note we do not call the module ` CLibogg ` . In general, avoid the lib prefix unless the authors of the package
62
75
typically always refer to it that way. A good rule of thumb is to look at the header files, here we can
63
- see the header is called simply "ogg.h". Pay attention to capitalization; note that we provide ` CPOSIX ` and not
76
+ see the header is called simply "ogg.h". Pay attention to capitalization; it would be ` CPOSIX ` and not
64
77
` CPosix ` , because POSIX is an acronym and is typically spelled all-caps.
65
78
66
79
Back in our example app we need a ` Package.swift ` that depends on CVorbis:
You can’t perform that action at this time.
0 commit comments