Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Xcode configuration for modern macOS versions #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
libsofa/lib/*_debug*
libsofa/build/macos/build
libsofa/build/macos/libsofa.xcodeproj/project.xcworkspace
libsofa/build/macos/libsofa.xcodeproj/xcuserdata
6 changes: 3 additions & 3 deletions libsofa/build/macos/libsofa.common.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ EXECUTABLE_PREFIX =

GCC_VERSION = com.apple.compilers.llvm.clang.1_0 ///< for Xcode 4

SDKROOT = $(MACOSX_SDK_10_12)
SDKROOT = macosx

MACOSX_DEPLOYMENT_TARGET = 10.7
VALID_ARCHS = i386 x86_64
MACOSX_DEPLOYMENT_TARGET = $(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)
VALID_ARCHS = x86_64

//==============================================================================
// VERSION
Expand Down
2 changes: 1 addition & 1 deletion libsofa/build/macos/libsofa.debug.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PRODUCT_NAME = $(TARGET_NAME)_debug
//==============================================================================
// BUILD ARCHITECTURE
//==============================================================================
ARCHS = x86_64 i386
ARCHS = x86_64
ONLY_ACTIVE_ARCH = NO

MACH_O_TYPE = staticlib
Expand Down
2 changes: 1 addition & 1 deletion libsofa/build/macos/libsofa.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleExecutable</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.ircam.libsofa</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLongVersionString</key>
Expand Down
2 changes: 1 addition & 1 deletion libsofa/build/macos/libsofa.release.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PRODUCT_NAME = $(TARGET_NAME)
//==============================================================================
// BUILD ARCHITECTURE
//==============================================================================
ARCHS = x86_64 i386
ARCHS = x86_64
ONLY_ACTIVE_ARCH = NO

MACH_O_TYPE = staticlib
Expand Down
123 changes: 103 additions & 20 deletions libsofa/build/macos/libsofa.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,6 @@
F8D9B7B61AC17A95007A1DE9 /* SOFAGeneralTF.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F8D9B7B51AC17A95007A1DE9 /* SOFAGeneralTF.cpp */; };
/* End PBXBuildFile section */

/* Begin PBXBuildRule section */
F899F7821019F5FD005A38AE /* PBXBuildRule */ = {
isa = PBXBuildRule;
compilerSpec = com.apple.compilers.gcc.4_2;
fileType = sourcecode.cpp;
isEditable = 1;
outputFiles = (
);
};
/* End PBXBuildRule section */

/* Begin PBXContainerItemProxy section */
458CEB490AEF80AE0010981A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
Expand Down Expand Up @@ -431,7 +420,6 @@
D289987405E68DCB004EDB86 /* Frameworks */,
);
buildRules = (
F899F7821019F5FD005A38AE /* PBXBuildRule */,
);
dependencies = (
);
Expand Down Expand Up @@ -497,17 +485,18 @@
08FB7793FE84155DC02AAC07 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0410;
LastUpgradeCheck = 1420;
};
buildConfigurationList = 1DEB91EF08733DB70010E9CD /* Build configuration list for PBXProject "libsofa" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
developmentRegion = en;
hasScannedForEncodings = 1;
knownRegions = (
English,
Japanese,
French,
German,
ja,
en,
fr,
de,
Base,
);
mainGroup = 08FB7794FE84155DC02AAC07 /* libspat */;
projectDirPath = "";
Expand Down Expand Up @@ -623,20 +612,56 @@
isa = XCBuildConfiguration;
baseConfigurationReference = F849B7EC175B917E00BB7C57 /* libsofa.debug.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
PRODUCT_BUNDLE_IDENTIFIER = org.ircam.libsofa;
};
name = Debug;
};
1DEB91ED08733DB70010E9CD /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = F8ABC6D2173D2D8B00F18AD2 /* libsofa.release.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
PRODUCT_BUNDLE_IDENTIFIER = org.ircam.libsofa;
};
name = Release;
};
1DEB91F008733DB70010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.5;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
DEAD_CODE_STRIPPING = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_NAME = "";
VALID_ARCHS = "i386 x86_64";
};
Expand All @@ -645,7 +670,35 @@
1DEB91F108733DB70010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.5;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
DEAD_CODE_STRIPPING = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
VALID_ARCHS = "i386 x86_64";
};
name = Release;
Expand All @@ -654,9 +707,12 @@
isa = XCBuildConfiguration;
baseConfigurationReference = F849B7EC175B917E00BB7C57 /* libsofa.debug.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
GCC_DYNAMIC_NO_PIC = NO;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
PRODUCT_BUNDLE_IDENTIFIER = org.ircam.libsofa;
PRODUCT_NAME = all;
};
name = Debug;
Expand All @@ -665,7 +721,10 @@
isa = XCBuildConfiguration;
baseConfigurationReference = F8ABC6D2173D2D8B00F18AD2 /* libsofa.release.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
PRODUCT_BUNDLE_IDENTIFIER = org.ircam.libsofa;
PRODUCT_NAME = all;
ZERO_LINK = NO;
};
Expand All @@ -675,41 +734,65 @@
isa = XCBuildConfiguration;
baseConfigurationReference = F8FD650B187EC4A6007B45C0 /* shelltools.debug.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "-";
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
PRODUCT_BUNDLE_IDENTIFIER = org.ircam.libsofa;
};
name = Debug;
};
F82B2B2019EE76AC006A84FC /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = F8FD650C187EC4A6007B45C0 /* shelltools.release.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "-";
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
PRODUCT_BUNDLE_IDENTIFIER = org.ircam.libsofa;
};
name = Release;
};
F8ABC6DE173D2E8500F18AD2 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = F8FD650B187EC4A6007B45C0 /* shelltools.debug.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "-";
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
PRODUCT_BUNDLE_IDENTIFIER = org.ircam.libsofa;
};
name = Debug;
};
F8ABC6DF173D2E8500F18AD2 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = F8FD650C187EC4A6007B45C0 /* shelltools.release.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "-";
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
PRODUCT_BUNDLE_IDENTIFIER = org.ircam.libsofa;
};
name = Release;
};
F8ABCC57173EAB2000F18AD2 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = F8FD650B187EC4A6007B45C0 /* shelltools.debug.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "-";
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
PRODUCT_BUNDLE_IDENTIFIER = org.ircam.libsofa;
};
name = Debug;
};
F8ABCC58173EAB2000F18AD2 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = F8FD650C187EC4A6007B45C0 /* shelltools.release.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "-";
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
PRODUCT_BUNDLE_IDENTIFIER = org.ircam.libsofa;
};
name = Release;
};
Expand Down
Loading