mirror of
https://github.com/shadps4-emu/ext-libusb.git
synced 2026-01-31 00:55:21 +01:00
xcode: Move some options from Xcode project to xcconfig file
project.pbxproj is not so human-readable, and xcconfig files are preferable because you can add comments about the build settings. References #1421
This commit is contained in:
committed by
Tormod Volden
parent
66e63d68eb
commit
46dfdede09
@@ -26,6 +26,13 @@ ALWAYS_SEARCH_USER_PATHS = NO
|
||||
// Enable weak references for Objective-C
|
||||
CLANG_ENABLE_OBJC_WEAK = YES
|
||||
|
||||
// Allocate even uninitialized global variables in the data section of the object file, rather than generating them as common blocks. This has the effect that if the same variable is declared (without 'extern') in two different compilations, you will get an error when you link them.
|
||||
GCC_NO_COMMON_BLOCKS = YES
|
||||
|
||||
// Keep private symbols private. The first setting is -fvisibility=hidden, the second is -fvisibility-inlines-hidden.
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = YES
|
||||
GCC_INLINES_ARE_PRIVATE_EXTERN = YES
|
||||
|
||||
// Compiler errors.
|
||||
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES
|
||||
|
||||
|
||||
@@ -27,3 +27,6 @@ GCC_OPTIMIZATION_LEVEL = 0
|
||||
|
||||
//
|
||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1
|
||||
|
||||
// No need for Universal Binaries in debug.
|
||||
ONLY_ACTIVE_ARCH = YES
|
||||
|
||||
@@ -1050,18 +1050,6 @@
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 1443EE8516417E63007E0579 /* debug.xcconfig */;
|
||||
buildSettings = {
|
||||
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -1069,16 +1057,6 @@
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 1443EE8816417E63007E0579 /* release.xcconfig */;
|
||||
buildSettings = {
|
||||
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
@@ -1086,10 +1064,6 @@
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 1443EE8616417E63007E0579 /* libusb_debug.xcconfig */;
|
||||
buildSettings = {
|
||||
OTHER_CFLAGS = (
|
||||
"-fvisibility=hidden",
|
||||
"-pthread",
|
||||
);
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -1097,10 +1071,6 @@
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 1443EE8916417EA6007E0579 /* libusb_release.xcconfig */;
|
||||
buildSettings = {
|
||||
OTHER_CFLAGS = (
|
||||
"-fvisibility=hidden",
|
||||
"-pthread",
|
||||
);
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11871
|
||||
#define LIBUSB_NANO 11872
|
||||
|
||||
Reference in New Issue
Block a user