89 lines
3.1 KiB
Plaintext
89 lines
3.1 KiB
Plaintext
|
|
//
|
||
|
|
// Many defines in this file are based on the selected SDK; it does not set an SDK.
|
||
|
|
// NOTE: This is inherited by ALL projects and all types, be careful in here
|
||
|
|
//
|
||
|
|
|
||
|
|
// ####################### HEADER SEARCH PATHS ########################
|
||
|
|
|
||
|
|
HEADER_SEARCH_PATHS = $(SDK_DIR)/usr/local/include $(SDK_DIR)/usr/include
|
||
|
|
|
||
|
|
// ##################### FRAMEWORK SEARCH PATHS #######################
|
||
|
|
|
||
|
|
ALWAYS_SEARCH_USER_PATHS = NO
|
||
|
|
FRAMEWORK_SEARCH_PATHS[sdk=macosx*] = $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks $(SDK_DIR)/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks
|
||
|
|
FRAMEWORK_SEARCH_PATHS[sdk=embedded*] = $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks
|
||
|
|
FRAMEWORK_SEARCH_PATHS[sdk=embeddedsimulator*] = $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks
|
||
|
|
|
||
|
|
// ###################### LIBRARY SEARCH PATHS ########################
|
||
|
|
|
||
|
|
LIBRARY_SEARCH_PATHS[sdk=embedded*] = $(SDK_DIR)/usr/local/lib $(SDK_DIR)/usr/lib
|
||
|
|
LIBRARY_SEARCH_PATHS[sdk=embeddedsimulator*] = $(SDK_DIR)/usr/local/lib $(SDK_DIR)/usr/lib
|
||
|
|
|
||
|
|
// ############################# FLAGS ################################
|
||
|
|
|
||
|
|
OTHER_CFLAGS = -Wshadow -DIM_DEBUG -D_FORTIFY_SOURCE=2 -D__IMCORE_INTERNAL__ -Wno-error=deprecated-declarations
|
||
|
|
OTHER_CFLAGS[sdk=embedded*] = -Wshadow -DIM_DEBUG -D_FORTIFY_SOURCE=2 -DUSE_SYSTEMCONFIGURATION_PRIVATE_HEADERS -D__IMCORE_INTERNAL__ -Wno-error=deprecated-declarations
|
||
|
|
OTHER_CFLAGS[sdk=embeddedsimulator*] = -Wshadow -DIM_DEBUG -D_FORTIFY_SOURCE=2 -DUSE_SYSTEMCONFIGURATION_PRIVATE_HEADERS -D__IMCORE_INTERNAL__ -Wno-error=deprecated-declarations
|
||
|
|
|
||
|
|
WARNING_CFLAGS = -Wno-error=deprecated-declarations
|
||
|
|
|
||
|
|
// ######################### ARCHITECTURES ###########################
|
||
|
|
|
||
|
|
ARCHS[sdk=macosx*] = $(ARCHS_STANDARD_64_BIT)
|
||
|
|
|
||
|
|
VALID_ARCHS[sdk=macosx*] = x86_64
|
||
|
|
VALID_ARCHS[sdk=embeddedsimulator*] = i386 x86_64
|
||
|
|
|
||
|
|
// ######################### CONFIGURATION ###########################
|
||
|
|
|
||
|
|
CODE_SIGN_IDENTITY = -
|
||
|
|
|
||
|
|
DYLIB_CURRENT_VERSION = 800
|
||
|
|
DYLIB_COMPATIBILITY_VERSION = 1
|
||
|
|
|
||
|
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||
|
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||
|
|
CLANG_WARN_INT_CONVERSION = YES;
|
||
|
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||
|
|
|
||
|
|
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
||
|
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||
|
|
|
||
|
|
ONLY_ACTIVE_ARCH = YES
|
||
|
|
|
||
|
|
TARGETED_DEVICE_FAMILY = 1,2
|
||
|
|
TARGETED_DEVICE_FAMILY[sdk=watch*] = 4
|
||
|
|
|
||
|
|
// ######################## INSTALLATION #############################
|
||
|
|
|
||
|
|
SKIP_INSTALL = NO
|
||
|
|
|
||
|
|
// ########################### CLANG #################################
|
||
|
|
|
||
|
|
CLANG_MODULES_AUTOLINK = NO
|
||
|
|
RUN_CLANG_STATIC_ANALYZER = YES
|
||
|
|
|
||
|
|
// ######################### COMPILER ################################
|
||
|
|
|
||
|
|
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
||
|
|
GCC_WARN_ABOUT_RETURN_TYPE = YES
|
||
|
|
|
||
|
|
// ######################### LANGUAGE MISC ###########################
|
||
|
|
|
||
|
|
GCC_C_LANGUAGE_STANDARD = c99
|
||
|
|
|
||
|
|
// ########################## DEBUGGING ##############################
|
||
|
|
|
||
|
|
GCC_OPTIMIZATION_LEVEL = 0
|
||
|
|
|
||
|
|
// ############################ MISC #################################
|
||
|
|
|
||
|
|
VERSIONING_SYSTEM = apple-generic
|
||
|
|
|
||
|
|
// ############################ USER OVERRIDE #################################
|
||
|
|
|
||
|
|
// Override global settings in a git ignored UserDebug.xcconfig file at the repo root.
|
||
|
|
// I seem to have to restart Xcode if I add/remove this file.
|
||
|
|
#include? "UserDebug.xcconfig"
|
||
|
|
|