]>
Commit | Line | Data |
---|---|---|
e85f4437 | 1 | // |
517da941 | 2 | // Copyright (c) 2010-2013 Apple Inc. All rights reserved. |
e85f4437 A |
3 | // |
4 | // @APPLE_APACHE_LICENSE_HEADER_START@ | |
5 | // | |
6 | // Licensed under the Apache License, Version 2.0 (the "License"); | |
7 | // you may not use this file except in compliance with the License. | |
8 | // You may obtain a copy of the License at | |
9 | // | |
10 | // http://www.apache.org/licenses/LICENSE-2.0 | |
11 | // | |
12 | // Unless required by applicable law or agreed to in writing, software | |
13 | // distributed under the License is distributed on an "AS IS" BASIS, | |
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
15 | // See the License for the specific language governing permissions and | |
16 | // limitations under the License. | |
17 | // | |
18 | // @APPLE_APACHE_LICENSE_HEADER_END@ | |
19 | // | |
20 | ||
21 | #include "<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig" | |
45201a42 | 22 | #include "<DEVELOPER_DIR>/AppleInternal/XcodeConfig/PlatformSupport.xcconfig" |
98cf8cd2 | 23 | |
45201a42 A |
24 | SDKROOT = macosx.internal |
25 | SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator | |
e85f4437 | 26 | PRODUCT_NAME = libdispatch |
e85f4437 | 27 | EXECUTABLE_PREFIX = |
45201a42 A |
28 | INSTALL_PATH = /usr/lib/system |
29 | PUBLIC_HEADERS_FOLDER_PATH = /usr/include/dispatch | |
30 | PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/dispatch | |
31 | OS_PUBLIC_HEADERS_FOLDER_PATH = /usr/include/os | |
32 | OS_PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/os | |
98cf8cd2 | 33 | HEADER_SEARCH_PATHS = $(PROJECT_DIR) $(PROJECT_DIR)/private $(PROJECT_DIR)/os |
517da941 | 34 | LIBRARY_SEARCH_PATHS = $(SDKROOT)/usr/lib/system |
e85f4437 A |
35 | INSTALLHDRS_SCRIPT_PHASE = YES |
36 | ALWAYS_SEARCH_USER_PATHS = NO | |
98cf8cd2 | 37 | USE_HEADERMAP = NO |
e85f4437 A |
38 | BUILD_VARIANTS = normal debug profile |
39 | ONLY_ACTIVE_ARCH = NO | |
517da941 A |
40 | CLANG_LINK_OBJC_RUNTIME = NO |
41 | GCC_C_LANGUAGE_STANDARD = gnu11 | |
45201a42 A |
42 | CLANG_CXX_LANGUAGE_STANDARD = gnu++11 |
43 | GCC_ENABLE_CPP_EXCEPTIONS = NO | |
e85f4437 A |
44 | GCC_STRICT_ALIASING = YES |
45 | GCC_SYMBOLS_PRIVATE_EXTERN = YES | |
c093abd6 | 46 | GCC_ENABLE_OBJC_GC[sdk=macosx*] = supported |
e85f4437 A |
47 | GCC_ENABLE_PASCAL_STRINGS = NO |
48 | GCC_WARN_SHADOW = YES | |
49 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES | |
50 | GCC_WARN_ABOUT_RETURN_TYPE = YES | |
51 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES | |
52 | GCC_WARN_ABOUT_MISSING_NEWLINE = YES | |
53 | GCC_WARN_UNUSED_VARIABLE = YES | |
517da941 A |
54 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES |
55 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES | |
56 | GCC_WARN_SIGN_COMPARE = YES | |
57 | GCC_WARN_UNINITIALIZED_AUTOS = YES | |
58 | CLANG_WARN_EMPTY_BODY = YES | |
59 | CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES | |
60 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES | |
61 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES | |
e85f4437 A |
62 | GCC_TREAT_WARNINGS_AS_ERRORS = YES |
63 | GCC_OPTIMIZATION_LEVEL = s | |
e85f4437 | 64 | GCC_PREPROCESSOR_DEFINITIONS = __DARWIN_NON_CANCELABLE=1 |
517da941 A |
65 | WARNING_CFLAGS = -Wall -Wextra -Waggregate-return -Wfloat-equal -Wpacked -Wmissing-declarations -Wstrict-overflow=4 -Wstrict-aliasing=2 -Wno-unknown-warning-option |
66 | OTHER_CFLAGS = -fverbose-asm -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders | |
c093abd6 A |
67 | OTHER_CFLAGS[arch=i386][sdk=macosx*] = $(OTHER_CFLAGS) -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-exceptions |
68 | OTHER_CFLAGS_normal = -momit-leaf-frame-pointer | |
c093abd6 | 69 | OTHER_CFLAGS_profile = $(OTHER_CFLAGS_normal) -DDISPATCH_PROFILE=1 |
e85f4437 | 70 | OTHER_CFLAGS_debug = -fstack-protector -fno-inline -O0 -DDISPATCH_DEBUG=1 |
e85f4437 | 71 | GENERATE_PROFILING_CODE = NO |
e85f4437 | 72 | DYLIB_CURRENT_VERSION = $(CURRENT_PROJECT_VERSION) |
45201a42 A |
73 | SIM_SUFFIX[sdk=*simulator*] = _sim |
74 | DYLIB_LDFLAGS = -umbrella System -nodefaultlibs -ldyld -lcompiler_rt -lsystem$(SIM_SUFFIX)_kernel -lsystem$(SIM_SUFFIX)_platform -lsystem$(SIM_SUFFIX)_pthread -lsystem_malloc -lsystem_c -lsystem_blocks -lunwind | |
98cf8cd2 | 75 | OBJC_LDFLAGS = -Wl,-upward-lobjc -Wl,-order_file,$(SRCROOT)/xcodeconfig/libdispatch.order -Wl,-alias_list,$(SRCROOT)/xcodeconfig/libdispatch_objc.aliases -Wl,-unexported_symbols_list,$(SRCROOT)/xcodeconfig/libdispatch.unexport |
c093abd6 A |
76 | OBJC_LDFLAGS[sdk=macosx*] = $(OBJC_LDFLAGS) -Wl,-upward-lauto |
77 | OBJC_LDFLAGS[arch=i386][sdk=macosx*] = | |
517da941 | 78 | OBJC_EXCLUDED_SOURCE_FILE_NAMES_i386_macosx = object.m data.m |
98cf8cd2 | 79 | ALIASES_LDFLAGS = -Wl,-alias_list,$(SRCROOT)/xcodeconfig/libdispatch.aliases |
517da941 | 80 | PLATFORM_LDFLAGS[sdk=macosx*] = -Wl,-alias_list,$(SRCROOT)/xcodeconfig/libdispatch_macosx.aliases |
45201a42 | 81 | OTHER_LDFLAGS = $(OTHER_LDFLAGS) $(DYLIB_LDFLAGS) $(CR_LDFLAGS) $(OBJC_LDFLAGS) $(ALIASES_LDFLAGS) $(PLATFORM_LDFLAGS) |
98cf8cd2 | 82 | OTHER_MIGFLAGS = -novouchers |