darling-security/xcconfig/lib_ios.xcconfig
2020-07-06 07:59:58 -04:00

44 lines
1.6 KiB
Plaintext

PRODUCT_NAME = $(TARGET_NAME)
EXECUTABLE_PREFIX = lib
MACH_O_TYPE = staticlib
EXECUTABLE_EXTENSION = a
CODE_SIGN_IDENTITY =
HEADER_SEARCH_PATHS[sdk=macosx*] = $(inherited) $(PROJECT_DIR)/OSX/libsecurity_smime $(SYSTEM_LIBRARY_DIR)/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers
HEADER_SEARCH_PATHS[sdk=embedded*] = $(inherited) $(PROJECT_DIR)/libsecurity_smime
// Turning off deprecations here is the worst hack. Enable whenever possible.
WARNING_CFLAGS = -Wno-deprecated-declarations -Wglobal-constructors -Wmost -Wno-four-char-constants -Wno-unknown-pragmas $(inherited)
OTHER_CFLAGS = -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders -fconstant-cfstrings $(inherited)
DEAD_CODE_STRIPPING = YES
COPY_PHASE_STRIP = NO
SKIP_INSTALL = YES
COPY_PHASE_STRIP = NO
GCC_C_LANGUAGE_STANDARD = gnu99
HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES = NO
GCC_SYMBOLS_PRIVATE_EXTERN = NO
ARCHS[sdk=macosx*] = $(ARCHS_STANDARD_32_64_BIT)
SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator bridgeos
// No executables are made, it can't know how
// Therefore we shouldn't strip anything
// if somehow we decide to, the default is debuggable.
COPY_PHASE_STRIP = NO
STRIP_STYLE = debugging
STRIP_INSTALLED_PRODUCT = NO
// We shadow the *error variable all over the place
GCC_WARN_SHADOW = NO
GCC_PREPROCESSOR_DEFINITIONS[sdk=macosx*] = $(inherited) SEC_IOS_ON_OSX=1
GCC_PREPROCESSOR_DEFINITIONS[sdk=embeddedsimulator*] = $(inherited) NO_SERVER=1
GCC_PREPROCESSOR_DEFINITIONS[config=Debug][sdk=embedded] = $(inherited) NO_SERVER=1