aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2024-01-01 22:42:48 -0500
committerTormod Volden <debian.tormod@gmail.com>2024-01-20 12:10:26 +0100
commit46dfdede09ca77f5a469033ad051e60452ebc006 (patch)
tree66deadf6a13a1a15c63ead1140f3dc0e00e8a5ac
parent66e63d68eb4351c1220a11186a073491ca2c03db (diff)
downloadlibusb-46dfdede09ca77f5a469033ad051e60452ebc006.tar.gz
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
-rw-r--r--Xcode/common.xcconfig7
-rw-r--r--Xcode/debug.xcconfig3
-rw-r--r--Xcode/libusb.xcodeproj/project.pbxproj30
-rw-r--r--libusb/version_nano.h2
4 files changed, 11 insertions, 31 deletions
diff --git a/Xcode/common.xcconfig b/Xcode/common.xcconfig
index 2ab2aac..06108ad 100644
--- a/Xcode/common.xcconfig
+++ b/Xcode/common.xcconfig
@@ -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
diff --git a/Xcode/debug.xcconfig b/Xcode/debug.xcconfig
index 68fdc5a..ca8ce3d 100644
--- a/Xcode/debug.xcconfig
+++ b/Xcode/debug.xcconfig
@@ -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
diff --git a/Xcode/libusb.xcodeproj/project.pbxproj b/Xcode/libusb.xcodeproj/project.pbxproj
index 759a102..b10b04d 100644
--- a/Xcode/libusb.xcodeproj/project.pbxproj
+++ b/Xcode/libusb.xcodeproj/project.pbxproj
@@ -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;
};
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 644de2d..6043e67 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11871
+#define LIBUSB_NANO 11872