]>
Commit | Line | Data |
---|---|---|
6b200bc3 | 1 | #include "OSX/config/security_macos.xcconfig" |
b54c578e | 2 | #include "xcconfig/security_framework.xcconfig" |
6b200bc3 A |
3 | |
4 | PRODUCT_NAME = Security | |
5 | PRODUCT_BUNDLE_IDENTIFIER = com.apple.security | |
6 | ||
7 | FRAMEWORK_VERSION = A | |
8 | ||
9 | DYLIB_COMPATIBILITY_VERSION = 1 | |
10 | DYLIB_CURRENT_VERSION = $(CURRENT_PROJECT_VERSION) | |
11 | ||
12 | MODULEMAP_FILE = Modules/Security.macOS.modulemap | |
13 | DEFINES_MODULE = YES | |
14 | ||
d64be36e | 15 | EXPORTED_SYMBOLS_FILE = $(BUILT_PRODUCTS_DIR)/$(PRODUCT_NAME).$(CURRENT_ARCH).exp |
6b200bc3 A |
16 | ORDER_FILE = OSX/lib/Security.order |
17 | INFOPLIST_FILE = OSX/lib/Info-Security.plist | |
18 | ||
19 | INSTALL_PATH = $(SYSTEM_LIBRARY_DIR)/Frameworks | |
20 | ||
dbe77505 | 21 | ASAN_EXTRA_LDFLAGS_YES = -Wl,-no_warn_inits |
d64be36e | 22 | ASAN_EXTRA_LDFLAGS_NO = |
805875f8 | 23 | ASAN_EXTRA_LDFLAGS_ = $(ASAN_EXTRA_LDFLAGS_NO) |
d64be36e A |
24 | TSAN_EXTRA_LDFLAGS_YES = -Wl,-no_warn_inits |
25 | TSAN_EXTRA_LDFLAGS_NO = | |
26 | TSAN_EXTRA_LDFLAGS_ = $(TSAN_EXTRA_LDFLAGS_NO) | |
27 | ||
28 | // order here matters, so later more specific options override earlier. | |
29 | NOINIT_LDFLAGS = -Wl,-no_inits $(ASAN_EXTRA_LDFLAGS_$(ENABLE_ADDRESS_SANITIZER)) $(TSAN_EXTRA_LDFLAGS_$(ENABLE_THREAD_SANITIZER)) | |
30 | ||
31 | OTHER_LDFLAGS = -laks -lCrashReporterClient -Wl,-upward_framework,Foundation $(NOINIT_LDFLAGS) | |
6b200bc3 A |
32 | |
33 | SECTORDER_FLAGS = -order_file_statistics | |
34 | APPLY_RULES_IN_COPY_FILES = NO | |
35 | ||
ecaf5866 A |
36 | // Adding things here is against the spirit of TAPI. If something is in the framework, it should be in the framework headers. |
37 | // Don't add things. | |
7fb2cbd2 | 38 | OTHER_TAPI_FLAGS_TRUST = -extra-private-header $(PROJECT_DIR)/trust/trustd/macOS/SecTrustOSXEntryPoints.h -extra-private-header $(PROJECT_DIR)/OSX/sec/Security/SecCertificateInternal.h |
b54c578e A |
39 | |
40 | OTHER_TAPI_FLAGS_USR_LIB_HEADERS = -extra-private-header $(PROJECT_DIR)/OSX/utilities/debugging.h | |
41 | OTHER_TAPI_FLAGS_HACKS = -exclude-public-header $(BUILT_PRODUCTS_DIR)/Security.framework/Versions/A/Headers/AuthorizationPlugin.h -extra-public-header $(PROJECT_DIR)/OSX/macos_tapi_hacks.h -extra-public-header $(PROJECT_DIR)/OSX/sec/Security/SecItemShim.h -D SECURITY_PROJECT_TAPI_HACKS=1 | |
ecaf5866 A |
42 | |
43 | OTHER_TAPI_FLAGS = $(inherited) $(OTHER_TAPI_FLAGS_SECURITY_FRAMEWORK) -I$(PROJECT_DIR)/header_symlinks/ $(OTHER_TAPI_FLAGS_TRUST) $(OTHER_TAPI_FLAGS_USR_LIB_HEADERS) $(OTHER_TAPI_FLAGS_HACKS) | |
79b9da22 A |
44 | |
45 | IS_ZIPPERED = YES |