Skip to content

Commit 7a81a3c

Browse files
authored
Merge pull request #247 from facebook/macos-runtime
Add macOS build
2 parents 365e758 + 6e98964 commit 7a81a3c

File tree

4 files changed

+204
-0
lines changed

4 files changed

+204
-0
lines changed

Chisel/Chisel-macOS/Chisel_macOS.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#import <Cocoa/Cocoa.h>
2+
3+
//! Project version number for Chisel_macOS.
4+
FOUNDATION_EXPORT double Chisel_macOSVersionNumber;
5+
6+
//! Project version string for Chisel_macOS.
7+
FOUNDATION_EXPORT const unsigned char Chisel_macOSVersionString[];
8+
9+
// In this header, you should import all the public headers of your framework using statements like #import <Chisel_macOS/PublicHeader.h>
10+
11+

Chisel/Chisel-macOS/Info.plist

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>$(CURRENT_PROJECT_VERSION)</string>
21+
<key>NSPrincipalClass</key>
22+
<string></string>
23+
</dict>
24+
</plist>

Chisel/Chisel.xcodeproj/project.pbxproj

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
70D1EACB20FD9D4A004CDB3D /* Chisel_macOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 70D1EAC920FD9D4A004CDB3D /* Chisel_macOS.h */; settings = {ATTRIBUTES = (Public, ); }; };
11+
70D1EACF20FD9D82004CDB3D /* CHLPredicateTools.m in Sources */ = {isa = PBXBuildFile; fileRef = 7A20C4B21DFDB8D200C89959 /* CHLPredicateTools.m */; };
12+
70D1EAD020FD9D85004CDB3D /* CHLObjcInstanceCommands.mm in Sources */ = {isa = PBXBuildFile; fileRef = 7A04088B1DF9A2C7009C5BFA /* CHLObjcInstanceCommands.mm */; };
13+
70D1EAD120FD9D88004CDB3D /* CHLObjcInstances.mm in Sources */ = {isa = PBXBuildFile; fileRef = 7ABD17AA1DF7FCF9006118F8 /* CHLObjcInstances.mm */; };
14+
70D1EAD220FD9D8C004CDB3D /* CHLAllocations.c in Sources */ = {isa = PBXBuildFile; fileRef = 7ABD17A61DF7F9FD006118F8 /* CHLAllocations.c */; };
1015
7A04088C1DF9A2C7009C5BFA /* CHLObjcInstanceCommands.h in Headers */ = {isa = PBXBuildFile; fileRef = 7A04088A1DF9A2C7009C5BFA /* CHLObjcInstanceCommands.h */; };
1116
7A04088D1DF9A2C7009C5BFA /* CHLObjcInstanceCommands.mm in Sources */ = {isa = PBXBuildFile; fileRef = 7A04088B1DF9A2C7009C5BFA /* CHLObjcInstanceCommands.mm */; };
1217
7A20C4B31DFDB8D200C89959 /* CHLPredicateTools.h in Headers */ = {isa = PBXBuildFile; fileRef = 7A20C4B11DFDB8D200C89959 /* CHLPredicateTools.h */; };
@@ -32,6 +37,9 @@
3237
/* End PBXContainerItemProxy section */
3338

3439
/* Begin PBXFileReference section */
40+
70D1EAC720FD9D4A004CDB3D /* Chisel_macOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Chisel_macOS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
41+
70D1EAC920FD9D4A004CDB3D /* Chisel_macOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Chisel_macOS.h; sourceTree = "<group>"; };
42+
70D1EACA20FD9D4A004CDB3D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3543
7A04088A1DF9A2C7009C5BFA /* CHLObjcInstanceCommands.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHLObjcInstanceCommands.h; sourceTree = "<group>"; };
3644
7A04088B1DF9A2C7009C5BFA /* CHLObjcInstanceCommands.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CHLObjcInstanceCommands.mm; sourceTree = "<group>"; };
3745
7A20C4B11DFDB8D200C89959 /* CHLPredicateTools.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHLPredicateTools.h; sourceTree = "<group>"; };
@@ -50,6 +58,13 @@
5058
/* End PBXFileReference section */
5159

5260
/* Begin PBXFrameworksBuildPhase section */
61+
70D1EAC320FD9D4A004CDB3D /* Frameworks */ = {
62+
isa = PBXFrameworksBuildPhase;
63+
buildActionMask = 2147483647;
64+
files = (
65+
);
66+
runOnlyForDeploymentPostprocessing = 0;
67+
};
5368
7ABD17871DF7F998006118F8 /* Frameworks */ = {
5469
isa = PBXFrameworksBuildPhase;
5570
buildActionMask = 2147483647;
@@ -68,11 +83,21 @@
6883
/* End PBXFrameworksBuildPhase section */
6984

7085
/* Begin PBXGroup section */
86+
70D1EAC820FD9D4A004CDB3D /* Chisel-macOS */ = {
87+
isa = PBXGroup;
88+
children = (
89+
70D1EAC920FD9D4A004CDB3D /* Chisel_macOS.h */,
90+
70D1EACA20FD9D4A004CDB3D /* Info.plist */,
91+
);
92+
path = "Chisel-macOS";
93+
sourceTree = "<group>";
94+
};
7195
7ABD17811DF7F998006118F8 = {
7296
isa = PBXGroup;
7397
children = (
7498
7ABD178D1DF7F998006118F8 /* Chisel */,
7599
7ABD17981DF7F998006118F8 /* ChiselTests */,
100+
70D1EAC820FD9D4A004CDB3D /* Chisel-macOS */,
76101
7ABD178C1DF7F998006118F8 /* Products */,
77102
);
78103
indentWidth = 2;
@@ -83,6 +108,7 @@
83108
children = (
84109
7ABD178B1DF7F998006118F8 /* Chisel.framework */,
85110
7ABD17941DF7F998006118F8 /* ChiselTests.xctest */,
111+
70D1EAC720FD9D4A004CDB3D /* Chisel_macOS.framework */,
86112
);
87113
name = Products;
88114
sourceTree = "<group>";
@@ -117,6 +143,14 @@
117143
/* End PBXGroup section */
118144

119145
/* Begin PBXHeadersBuildPhase section */
146+
70D1EAC420FD9D4A004CDB3D /* Headers */ = {
147+
isa = PBXHeadersBuildPhase;
148+
buildActionMask = 2147483647;
149+
files = (
150+
70D1EACB20FD9D4A004CDB3D /* Chisel_macOS.h in Headers */,
151+
);
152+
runOnlyForDeploymentPostprocessing = 0;
153+
};
120154
7ABD17881DF7F998006118F8 /* Headers */ = {
121155
isa = PBXHeadersBuildPhase;
122156
buildActionMask = 2147483647;
@@ -133,6 +167,24 @@
133167
/* End PBXHeadersBuildPhase section */
134168

135169
/* Begin PBXNativeTarget section */
170+
70D1EAC620FD9D4A004CDB3D /* Chisel-macOS */ = {
171+
isa = PBXNativeTarget;
172+
buildConfigurationList = 70D1EACE20FD9D4A004CDB3D /* Build configuration list for PBXNativeTarget "Chisel-macOS" */;
173+
buildPhases = (
174+
70D1EAC220FD9D4A004CDB3D /* Sources */,
175+
70D1EAC320FD9D4A004CDB3D /* Frameworks */,
176+
70D1EAC420FD9D4A004CDB3D /* Headers */,
177+
70D1EAC520FD9D4A004CDB3D /* Resources */,
178+
);
179+
buildRules = (
180+
);
181+
dependencies = (
182+
);
183+
name = "Chisel-macOS";
184+
productName = "Chisel-macOS";
185+
productReference = 70D1EAC720FD9D4A004CDB3D /* Chisel_macOS.framework */;
186+
productType = "com.apple.product-type.framework";
187+
};
136188
7ABD178A1DF7F998006118F8 /* Chisel */ = {
137189
isa = PBXNativeTarget;
138190
buildConfigurationList = 7ABD179F1DF7F998006118F8 /* Build configuration list for PBXNativeTarget "Chisel" */;
@@ -178,6 +230,10 @@
178230
LastUpgradeCheck = 0810;
179231
ORGANIZATIONNAME = Facebook;
180232
TargetAttributes = {
233+
70D1EAC620FD9D4A004CDB3D = {
234+
CreatedOnToolsVersion = 9.4.1;
235+
ProvisioningStyle = Automatic;
236+
};
181237
7ABD178A1DF7F998006118F8 = {
182238
CreatedOnToolsVersion = 8.1;
183239
ProvisioningStyle = Automatic;
@@ -202,11 +258,19 @@
202258
targets = (
203259
7ABD178A1DF7F998006118F8 /* Chisel */,
204260
7ABD17931DF7F998006118F8 /* ChiselTests */,
261+
70D1EAC620FD9D4A004CDB3D /* Chisel-macOS */,
205262
);
206263
};
207264
/* End PBXProject section */
208265

209266
/* Begin PBXResourcesBuildPhase section */
267+
70D1EAC520FD9D4A004CDB3D /* Resources */ = {
268+
isa = PBXResourcesBuildPhase;
269+
buildActionMask = 2147483647;
270+
files = (
271+
);
272+
runOnlyForDeploymentPostprocessing = 0;
273+
};
210274
7ABD17891DF7F998006118F8 /* Resources */ = {
211275
isa = PBXResourcesBuildPhase;
212276
buildActionMask = 2147483647;
@@ -224,6 +288,17 @@
224288
/* End PBXResourcesBuildPhase section */
225289

226290
/* Begin PBXSourcesBuildPhase section */
291+
70D1EAC220FD9D4A004CDB3D /* Sources */ = {
292+
isa = PBXSourcesBuildPhase;
293+
buildActionMask = 2147483647;
294+
files = (
295+
70D1EAD120FD9D88004CDB3D /* CHLObjcInstances.mm in Sources */,
296+
70D1EAD220FD9D8C004CDB3D /* CHLAllocations.c in Sources */,
297+
70D1EAD020FD9D85004CDB3D /* CHLObjcInstanceCommands.mm in Sources */,
298+
70D1EACF20FD9D82004CDB3D /* CHLPredicateTools.m in Sources */,
299+
);
300+
runOnlyForDeploymentPostprocessing = 0;
301+
};
227302
7ABD17861DF7F998006118F8 /* Sources */ = {
228303
isa = PBXSourcesBuildPhase;
229304
buildActionMask = 2147483647;
@@ -254,6 +329,83 @@
254329
/* End PBXTargetDependency section */
255330

256331
/* Begin XCBuildConfiguration section */
332+
70D1EACC20FD9D4A004CDB3D /* Debug */ = {
333+
isa = XCBuildConfiguration;
334+
buildSettings = {
335+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
336+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
337+
CLANG_ENABLE_OBJC_WEAK = YES;
338+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
339+
CLANG_WARN_COMMA = YES;
340+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
341+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
342+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
343+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
344+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
345+
CLANG_WARN_STRICT_PROTOTYPES = YES;
346+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
347+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
348+
CODE_SIGN_IDENTITY = "-";
349+
CODE_SIGN_STYLE = Automatic;
350+
COMBINE_HIDPI_IMAGES = YES;
351+
DEFINES_MODULE = YES;
352+
DYLIB_COMPATIBILITY_VERSION = 1;
353+
DYLIB_CURRENT_VERSION = 1;
354+
DYLIB_INSTALL_NAME_BASE = "@rpath";
355+
FRAMEWORK_VERSION = A;
356+
GCC_C_LANGUAGE_STANDARD = gnu11;
357+
INFOPLIST_FILE = "Chisel-macOS/Info.plist";
358+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
359+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
360+
MACOSX_DEPLOYMENT_TARGET = 10.13;
361+
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.Chisel-macOS";
362+
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
363+
SDKROOT = macosx;
364+
SKIP_INSTALL = YES;
365+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
366+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
367+
SWIFT_VERSION = 4.0;
368+
};
369+
name = Debug;
370+
};
371+
70D1EACD20FD9D4A004CDB3D /* Release */ = {
372+
isa = XCBuildConfiguration;
373+
buildSettings = {
374+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
375+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
376+
CLANG_ENABLE_OBJC_WEAK = YES;
377+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
378+
CLANG_WARN_COMMA = YES;
379+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
380+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
381+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
382+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
383+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
384+
CLANG_WARN_STRICT_PROTOTYPES = YES;
385+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
386+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
387+
CODE_SIGN_IDENTITY = "-";
388+
CODE_SIGN_STYLE = Automatic;
389+
COMBINE_HIDPI_IMAGES = YES;
390+
DEFINES_MODULE = YES;
391+
DYLIB_COMPATIBILITY_VERSION = 1;
392+
DYLIB_CURRENT_VERSION = 1;
393+
DYLIB_INSTALL_NAME_BASE = "@rpath";
394+
FRAMEWORK_VERSION = A;
395+
GCC_C_LANGUAGE_STANDARD = gnu11;
396+
INFOPLIST_FILE = "Chisel-macOS/Info.plist";
397+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
398+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
399+
MACOSX_DEPLOYMENT_TARGET = 10.13;
400+
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.Chisel-macOS";
401+
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
402+
SDKROOT = macosx;
403+
SKIP_INSTALL = YES;
404+
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
405+
SWIFT_VERSION = 4.0;
406+
};
407+
name = Release;
408+
};
257409
7ABD179D1DF7F998006118F8 /* Debug */ = {
258410
isa = XCBuildConfiguration;
259411
buildSettings = {
@@ -407,6 +559,15 @@
407559
/* End XCBuildConfiguration section */
408560

409561
/* Begin XCConfigurationList section */
562+
70D1EACE20FD9D4A004CDB3D /* Build configuration list for PBXNativeTarget "Chisel-macOS" */ = {
563+
isa = XCConfigurationList;
564+
buildConfigurations = (
565+
70D1EACC20FD9D4A004CDB3D /* Debug */,
566+
70D1EACD20FD9D4A004CDB3D /* Release */,
567+
);
568+
defaultConfigurationIsVisible = 0;
569+
defaultConfigurationName = Release;
570+
};
410571
7ABD17851DF7F998006118F8 /* Build configuration list for PBXProject "Chisel" */ = {
411572
isa = XCConfigurationList;
412573
buildConfigurations = (
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)