Skip to content

Commit 3ab5526

Browse files
committed
Merge pull request #424 from libgit2/module
Include libgit2 headers in our module
2 parents 0675230 + 09cc984 commit 3ab5526

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed

ObjectiveGit.modulemap

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
framework module ObjectiveGit {
2+
umbrella header "ObjectiveGit.h"
3+
4+
header "git2/attr.h"
5+
header "git2/blob.h"
6+
header "git2/blame.h"
7+
header "git2/branch.h"
8+
header "git2/buffer.h"
9+
header "git2/checkout.h"
10+
header "git2/cherrypick.h"
11+
header "git2/clone.h"
12+
header "git2/commit.h"
13+
header "git2/common.h"
14+
header "git2/config.h"
15+
header "git2/describe.h"
16+
header "git2/diff.h"
17+
header "git2/errors.h"
18+
header "git2/filter.h"
19+
header "git2/graph.h"
20+
header "git2/ignore.h"
21+
header "git2/index.h"
22+
header "git2/indexer.h"
23+
header "git2/merge.h"
24+
header "git2/message.h"
25+
header "git2/net.h"
26+
header "git2/notes.h"
27+
header "git2/object.h"
28+
header "git2/odb.h"
29+
header "git2/odb_backend.h"
30+
header "git2/oid.h"
31+
header "git2/pack.h"
32+
header "git2/patch.h"
33+
header "git2/pathspec.h"
34+
header "git2/push.h"
35+
header "git2/refdb.h"
36+
header "git2/reflog.h"
37+
header "git2/refs.h"
38+
header "git2/refspec.h"
39+
header "git2/remote.h"
40+
header "git2/repository.h"
41+
header "git2/reset.h"
42+
header "git2/revert.h"
43+
header "git2/revparse.h"
44+
header "git2/revwalk.h"
45+
header "git2/signature.h"
46+
header "git2/stash.h"
47+
header "git2/status.h"
48+
header "git2/submodule.h"
49+
header "git2/tag.h"
50+
header "git2/threads.h"
51+
header "git2/transport.h"
52+
header "git2/tree.h"
53+
header "git2/types.h"
54+
header "git2/version.h"
55+
header "git2/sys/commit.h"
56+
header "git2/sys/config.h"
57+
header "git2/sys/diff.h"
58+
header "git2/sys/filter.h"
59+
header "git2/sys/hashsig.h"
60+
header "git2/sys/index.h"
61+
header "git2/sys/mempack.h"
62+
header "git2/sys/odb_backend.h"
63+
header "git2/sys/refdb_backend.h"
64+
header "git2/sys/reflog.h"
65+
header "git2/sys/refs.h"
66+
header "git2/sys/repository.h"
67+
header "git2/sys/transport.h"
68+
69+
export *
70+
module * { export * }
71+
}

ObjectiveGitFramework.xcodeproj/project.pbxproj

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@
175175
BDFAF9C4131C1845000508BC /* GTIndex.m in Sources */ = {isa = PBXBuildFile; fileRef = BDFAF9C2131C1845000508BC /* GTIndex.m */; };
176176
BDFAF9C9131C1868000508BC /* GTIndexEntry.h in Headers */ = {isa = PBXBuildFile; fileRef = BDFAF9C7131C1868000508BC /* GTIndexEntry.h */; settings = {ATTRIBUTES = (Public, ); }; };
177177
BDFAF9CA131C1868000508BC /* GTIndexEntry.m in Sources */ = {isa = PBXBuildFile; fileRef = BDFAF9C8131C1868000508BC /* GTIndexEntry.m */; };
178+
BEF7E4E01A3A47690035BB8E /* git2 in Copy git2 Headers again */ = {isa = PBXBuildFile; fileRef = 79262F0E13C697BE00A4B1EA /* git2 */; };
178179
D00F6816175D373C004DB9D6 /* GTReferenceSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = D00F6815175D373C004DB9D6 /* GTReferenceSpec.m */; };
179180
D015F7CA17F695E800AD5E1F /* GTRepository+Stashing.h in Headers */ = {isa = PBXBuildFile; fileRef = D015F7C817F695E800AD5E1F /* GTRepository+Stashing.h */; settings = {ATTRIBUTES = (Public, ); }; };
180181
D015F7CC17F695E800AD5E1F /* GTRepository+Stashing.m in Sources */ = {isa = PBXBuildFile; fileRef = D015F7C917F695E800AD5E1F /* GTRepository+Stashing.m */; };
@@ -366,6 +367,17 @@
366367
name = "Copy git2 Headers";
367368
runOnlyForDeploymentPostprocessing = 0;
368369
};
370+
BEF7E4DF1A3A47450035BB8E /* Copy git2 Headers again */ = {
371+
isa = PBXCopyFilesBuildPhase;
372+
buildActionMask = 2147483647;
373+
dstPath = Headers/git2/sys;
374+
dstSubfolderSpec = 1;
375+
files = (
376+
BEF7E4E01A3A47690035BB8E /* git2 in Copy git2 Headers again */,
377+
);
378+
name = "Copy git2 Headers again";
379+
runOnlyForDeploymentPostprocessing = 0;
380+
};
369381
/* End PBXCopyFilesBuildPhase section */
370382

371383
/* Begin PBXFileReference section */
@@ -452,6 +464,7 @@
452464
8870390A1975E3F2004118D7 /* GTDiffDeltaSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTDiffDeltaSpec.m; sourceTree = "<group>"; };
453465
88746CC217FA1C950005888A /* GTRepository+Committing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "GTRepository+Committing.h"; sourceTree = "<group>"; };
454466
88746CC317FA1C950005888A /* GTRepository+Committing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GTRepository+Committing.m"; sourceTree = "<group>"; };
467+
887B948D1A3A38130070D41D /* ObjectiveGit.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = ObjectiveGit.modulemap; sourceTree = "<group>"; };
455468
887DAFF615CB1C8000F30D0D /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
456469
88948AC81779243600809CDA /* GTObjectDatabaseSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTObjectDatabaseSpec.m; sourceTree = "<group>"; };
457470
889923F919FF5DD40092A9A6 /* git2 */ = {isa = PBXFileReference; lastKnownFileType = folder; name = git2; path = External/libgit2/include/git2; sourceTree = "<group>"; };
@@ -608,6 +621,7 @@
608621
isa = PBXGroup;
609622
children = (
610623
BDD8AB01130F01AB00CB5D40 /* README.md */,
624+
887B948D1A3A38130070D41D /* ObjectiveGit.modulemap */,
611625
BDE4C05E130EFE2C00851650 /* ObjectiveGit */,
612626
88F05A7516011E5400B7AD1D /* ObjectiveGitTests */,
613627
32C88DFF0371C24200C91783 /* Other Sources */,
@@ -1074,6 +1088,7 @@
10741088
8DC2EF520486A6940098B216 /* Resources */,
10751089
8DC2EF560486A6940098B216 /* Frameworks */,
10761090
79262F0F13C697BE00A4B1EA /* Copy git2 Headers */,
1091+
BEF7E4DF1A3A47450035BB8E /* Copy git2 Headers again */,
10771092
8DC2EF500486A6940098B216 /* Headers */,
10781093
);
10791094
buildRules = (
@@ -1429,10 +1444,12 @@
14291444
isa = XCBuildConfiguration;
14301445
baseConfigurationReference = D0D8186A174421EB00995A2E /* Mac-Framework.xcconfig */;
14311446
buildSettings = {
1447+
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
14321448
DYLIB_COMPATIBILITY_VERSION = 1;
14331449
DYLIB_CURRENT_VERSION = 1;
14341450
FRAMEWORK_VERSION = A;
14351451
INFOPLIST_FILE = Info.plist;
1452+
MODULEMAP_FILE = ObjectiveGit.modulemap;
14361453
OTHER_LDFLAGS = (
14371454
"-lgit2",
14381455
"-force_load",
@@ -1450,10 +1467,12 @@
14501467
isa = XCBuildConfiguration;
14511468
baseConfigurationReference = D0D8186A174421EB00995A2E /* Mac-Framework.xcconfig */;
14521469
buildSettings = {
1470+
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
14531471
DYLIB_COMPATIBILITY_VERSION = 1;
14541472
DYLIB_CURRENT_VERSION = 1;
14551473
FRAMEWORK_VERSION = A;
14561474
INFOPLIST_FILE = Info.plist;
1475+
MODULEMAP_FILE = ObjectiveGit.modulemap;
14571476
OTHER_LDFLAGS = (
14581477
"-lgit2",
14591478
"-force_load",
@@ -1631,10 +1650,12 @@
16311650
isa = XCBuildConfiguration;
16321651
baseConfigurationReference = D0D8186A174421EB00995A2E /* Mac-Framework.xcconfig */;
16331652
buildSettings = {
1653+
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
16341654
DYLIB_COMPATIBILITY_VERSION = 1;
16351655
DYLIB_CURRENT_VERSION = 1;
16361656
FRAMEWORK_VERSION = A;
16371657
INFOPLIST_FILE = Info.plist;
1658+
MODULEMAP_FILE = ObjectiveGit.modulemap;
16381659
OTHER_LDFLAGS = (
16391660
"-lgit2",
16401661
"-force_load",
@@ -1846,10 +1867,12 @@
18461867
isa = XCBuildConfiguration;
18471868
baseConfigurationReference = D0D8186A174421EB00995A2E /* Mac-Framework.xcconfig */;
18481869
buildSettings = {
1870+
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
18491871
DYLIB_COMPATIBILITY_VERSION = 1;
18501872
DYLIB_CURRENT_VERSION = 1;
18511873
FRAMEWORK_VERSION = A;
18521874
INFOPLIST_FILE = Info.plist;
1875+
MODULEMAP_FILE = ObjectiveGit.modulemap;
18531876
OTHER_LDFLAGS = (
18541877
"-lgit2",
18551878
"-force_load",

0 commit comments

Comments
 (0)