blob: bf12718894f9d4f490f6c08597b142eafeaa351e [file] [log] [blame]
dino@apple.comb9e19552020-06-17 01:17:32 +00001#include "Version.xcconfig"
2#include "WebKitTargetConditionals.xcconfig"
3
4PRODUCT_NAME = ANGLE-shared;
5EXECUTABLE_PREFIX = lib;
6
commit-queue@webkit.org837de4d2021-04-28 21:59:00 +00007ANGLE_OTHER_LDFLAGS = -allowable_client WebCore -allowable_client WebCoreTestSupport -framework QuartzCore -framework CoreGraphics -framework Foundation -framework IOSurface -framework Metal $(ANGLE_OTHER_LDFLAGS_$(WK_PLATFORM_NAME)) -Wl;
dino@apple.comb4d4ed82020-09-25 22:49:19 +00008ANGLE_OTHER_LDFLAGS_iphoneos = -lz;
dino@apple.comb9e19552020-06-17 01:17:32 +00009ANGLE_OTHER_LDFLAGS_iphonesimulator = $(ANGLE_OTHER_LDFLAGS_iphoneos);
10ANGLE_OTHER_LDFLAGS_watchos = $(ANGLE_OTHER_LDFLAGS_iphoneos);
11ANGLE_OTHER_LDFLAGS_watchsimulator = $(ANGLE_OTHER_LDFLAGS_iphonesimulator);
12ANGLE_OTHER_LDFLAGS_appletvos = $(ANGLE_OTHER_LDFLAGS_iphoneos);
13ANGLE_OTHER_LDFLAGS_appletvsimulator = $(ANGLE_OTHER_LDFLAGS_iphonesimulator);
dino@apple.comb4d4ed82020-09-25 22:49:19 +000014ANGLE_OTHER_LDFLAGS_maccatalyst = -framework IOKit -lz;
15ANGLE_OTHER_LDFLAGS_macosx = -framework IOKit -lz;
dino@apple.comb9e19552020-06-17 01:17:32 +000016
david_quesada@apple.com584d4122022-05-26 01:16:04 +000017INSTALL_PATH_PREFIX = $(INSTALL_PATH_PREFIX_USE_SYSTEM_CONTENT_PATH_$(USE_SYSTEM_CONTENT_PATH)_$(WK_NOT_$(USE_STAGING_INSTALL_PATH)));
18INSTALL_PATH_PREFIX_USE_SYSTEM_CONTENT_PATH_YES_YES = $(SYSTEM_CONTENT_PATH);
msaboff@apple.com26f9a8542022-03-04 01:26:55 +000019SECONDARY_STAGED_FRAMEWORK_DIRECTORY = $(SYSTEM_SECONDARY_CONTENT_PATH)$(SYSTEM_LIBRARY_DIR)/StagedFrameworks/Safari
20STAGED_DYLIB_FRAMEWORK_PATH=/WebCore.framework/Versions/A/Frameworks
msaboff@apple.comb11440f2022-03-11 01:20:55 +000021COPY_STAGED_FRAMEWORKS_TO_SECONDARY_PATH = $(COPY_STAGED_FRAMEWORKS_TO_SECONDARY_PATH_SDK_VARIANT_$(SDK_VARIANT));
22COPY_STAGED_FRAMEWORKS_TO_SECONDARY_PATH_SDK_VARIANT_ = NO
23COPY_STAGED_FRAMEWORKS_TO_SECONDARY_PATH_SDK_VARIANT_iosmac = NO
msaboff@apple.com89077c42022-01-05 19:42:45 +000024
25INSTALL_PATH = $(INSTALL_PATH_PREFIX)$(NORMAL_WEBCORE_FRAMEWORKS_DIR)/WebCore.framework/Frameworks;
26INSTALL_PATH[sdk=macosx*] = $(INSTALL_PATH_USE_ALTERNATE_FRAMEWORKS_DIR_$(WK_USE_ALTERNATE_FRAMEWORKS_DIR));
commit-queue@webkit.org6d6dc372021-04-20 05:19:31 +000027INSTALL_PATH_USE_ALTERNATE_FRAMEWORKS_DIR_NO = $(INSTALL_PATH_USE_OVERRIDE_FRAMEWORKS_DIR_$(WK_USE_OVERRIDE_FRAMEWORKS_DIR));
msaboff@apple.com89077c42022-01-05 19:42:45 +000028INSTALL_PATH_USE_OVERRIDE_FRAMEWORKS_DIR_NO = $(INSTALL_PATH_PREFIX)$(NORMAL_WEBCORE_FRAMEWORKS_DIR)/WebCore.framework/Versions/A/Frameworks;
commit-queue@webkit.org6d6dc372021-04-20 05:19:31 +000029INSTALL_PATH_USE_OVERRIDE_FRAMEWORKS_DIR_YES = $(WK_OVERRIDE_FRAMEWORKS_DIR);
msaboff@apple.com89077c42022-01-05 19:42:45 +000030INSTALL_PATH_USE_ALTERNATE_FRAMEWORKS_DIR_YES = $(INSTALL_PATH_PREFIX)$(WK_ALTERNATE_FRAMEWORKS_DIR)/$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks/WebCore.framework/Versions/A/Frameworks;
dino@apple.comb9e19552020-06-17 01:17:32 +000031
msaboff@apple.com928d5342022-03-18 00:46:15 +000032DYLIB_INSTALL_NAME_BASE = $(NORMAL_WEBCORE_FRAMEWORKS_DIR)/WebCore.framework/Frameworks;
dino@apple.com26536622020-11-20 01:16:15 +000033DYLIB_INSTALL_NAME_BASE[sdk=macosx*] = $(DYLIB_INSTALL_NAME_BASE_USE_ALTERNATE_FRAMEWORKS_DIR_$(WK_USE_ALTERNATE_FRAMEWORKS_DIR));
34DYLIB_INSTALL_NAME_BASE_USE_ALTERNATE_FRAMEWORKS_DIR_NO = $(DYLIB_INSTALL_NAME_BASE_WK_RELOCATABLE_FRAMEWORKS_$(WK_RELOCATABLE_FRAMEWORKS));
msaboff@apple.com92e82cf2022-02-04 01:16:05 +000035DYLIB_INSTALL_NAME_BASE_USE_ALTERNATE_FRAMEWORKS_DIR_YES = $(WK_ALTERNATE_FRAMEWORKS_DIR)/$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks/WebCore.framework/Versions/A/Frameworks;
36DYLIB_INSTALL_NAME_BASE_WK_RELOCATABLE_FRAMEWORKS_ = $(NORMAL_WEBCORE_FRAMEWORKS_DIR)/WebCore.framework/Versions/A/Frameworks;
dino@apple.comb9e19552020-06-17 01:17:32 +000037DYLIB_INSTALL_NAME_BASE_WK_RELOCATABLE_FRAMEWORKS_YES = @loader_path/../../../;
38
kpiddington@apple.comd93b2e62022-01-05 21:58:55 +000039HEADER_SEARCH_PATHS = ${DERIVED_FILES_DIR} include src src/common/third_party/numerics third_party/base src/common/third_party/base third_party/zlib/google ${DERIVED_FILES_DIR};
dino@apple.comb9e19552020-06-17 01:17:32 +000040
emw@apple.comb9179172022-06-02 18:29:45 +000041ANGLE_HEADERS_FOLDER_PATH = $(WK_LIBRARY_HEADERS_FOLDER_PATH)/ANGLE;
dino@apple.comb9e19552020-06-17 01:17:32 +000042
43PUBLIC_HEADERS_FOLDER_PATH = $(ANGLE_HEADERS_FOLDER_PATH);
44PUBLIC_HEADERS_FOLDER_PATH[sdk=macosx*] = $(PUBLIC_HEADERS_FOLDER_PATH_$(WK_PLATFORM_NAME));
45PUBLIC_HEADERS_FOLDER_PATH_macosx = $(ANGLE_HEADERS_FOLDER_PATH);
46PUBLIC_HEADERS_FOLDER_PATH_maccatalyst = $(WK_ALTERNATE_FRAMEWORKS_DIR)/$(ANGLE_HEADERS_FOLDER_PATH);
47
commit-queue@webkit.org82c783c2021-12-16 17:51:47 +000048GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) LIBGLESV2_IMPLEMENTATION LIBANGLE_IMPLEMENTATION ANGLE_CAPTURE_ENABLED=0 ANGLE_ENABLE_OPENGL ANGLE_ENABLE_GLSL ANGLE_ENABLE_ESSL GL_SILENCE_DEPRECATION GLES_SILENCE_DEPRECATION ANGLE_ENABLE_METAL ANGLE_METAL_XCODE_BUILDS_SHADERS ANGLE_ENABLE_APPLE_WORKAROUNDS ANGLE_ENABLE_METAL_OWNERSHIP_IDENTITY;
dino@apple.com6b04a0c2021-12-07 19:51:36 +000049
commit-queue@webkit.org82c783c2021-12-16 17:51:47 +000050GCC_PREPROCESSOR_DEFINITIONS[sdk=macosx*] = $(DEBUG_DEFINES) LIBGLESV2_IMPLEMENTATION LIBANGLE_IMPLEMENTATION ANGLE_CAPTURE_ENABLED=0 ANGLE_ENABLE_OPENGL ANGLE_ENABLE_GLSL ANGLE_ENABLE_ESSL GL_SILENCE_DEPRECATION GLES_SILENCE_DEPRECATION ANGLE_ENABLE_METAL ANGLE_METAL_XCODE_BUILDS_SHADERS ANGLE_ENABLE_APPLE_WORKAROUNDS ANGLE_ENABLE_OPENGL_DESKTOP ANGLE_ENABLE_METAL_OWNERSHIP_IDENTITY
ddkilzer@apple.coma5a68502020-11-04 21:17:51 +000051
52DEAD_CODE_STRIPPING = YES;
53DEAD_CODE_STRIPPING[config=Debug] = NO;
54
55STRIP_INSTALLED_PRODUCT = YES;
56STRIP_INSTALLED_PRODUCT[config=Debug] = NO;
dino@apple.comb9e19552020-06-17 01:17:32 +000057
58INSTALLHDRS_SCRIPT_PHASE = YES;
59USE_HEADERMAP = NO;
krollin@apple.combb322c62020-08-13 06:09:30 +000060APPLY_RULES_IN_COPY_HEADERS = $(WK_USE_NEW_BUILD_SYSTEM);