1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_angle_src_preprocessor_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_SRC_FILES := \ 26 third_party/angle/src/compiler/preprocessor/DiagnosticsBase.cpp \ 27 third_party/angle/src/compiler/preprocessor/DirectiveHandlerBase.cpp \ 28 third_party/angle/src/compiler/preprocessor/DirectiveParser.cpp \ 29 third_party/angle/src/compiler/preprocessor/ExpressionParser.cpp \ 30 third_party/angle/src/compiler/preprocessor/Input.cpp \ 31 third_party/angle/src/compiler/preprocessor/Lexer.cpp \ 32 third_party/angle/src/compiler/preprocessor/Macro.cpp \ 33 third_party/angle/src/compiler/preprocessor/MacroExpander.cpp \ 34 third_party/angle/src/compiler/preprocessor/Preprocessor.cpp \ 35 third_party/angle/src/compiler/preprocessor/Token.cpp \ 36 third_party/angle/src/compiler/preprocessor/Tokenizer.cpp 37 38 39# Flags passed to both C and C++ files. 40MY_CFLAGS_Debug := \ 41 --param=ssp-buffer-size=4 \ 42 -fno-exceptions \ 43 -fno-strict-aliasing \ 44 -Wno-unused-parameter \ 45 -Wno-missing-field-initializers \ 46 -fvisibility=hidden \ 47 -pipe \ 48 -fPIC \ 49 -Wno-unused-local-typedefs \ 50 -Wno-format \ 51 -ffunction-sections \ 52 -funwind-tables \ 53 -g \ 54 -fno-short-enums \ 55 -finline-limit=64 \ 56 -Wa,--noexecstack \ 57 -U_FORTIFY_SOURCE \ 58 -Wno-extra \ 59 -Wno-ignored-qualifiers \ 60 -Wno-type-limits \ 61 -Wno-unused-but-set-variable \ 62 -Wno-address \ 63 -Wno-format-security \ 64 -Wno-return-type \ 65 -Wno-sequence-point \ 66 -Os \ 67 -g \ 68 -fdata-sections \ 69 -ffunction-sections \ 70 -funwind-tables 71 72MY_DEFS_Debug := \ 73 '-DV8_DEPRECATION_WARNINGS' \ 74 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 75 '-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \ 76 '-D_FILE_OFFSET_BITS=64' \ 77 '-DNO_TCMALLOC' \ 78 '-DDISABLE_NACL' \ 79 '-DCHROMIUM_BUILD' \ 80 '-DUSE_LIBJPEG_TURBO=1' \ 81 '-DENABLE_WEBRTC=1' \ 82 '-DUSE_PROPRIETARY_CODECS' \ 83 '-DENABLE_BROWSER_CDMS' \ 84 '-DENABLE_CONFIGURATION_POLICY' \ 85 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 86 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 87 '-DENABLE_EGLIMAGE=1' \ 88 '-DCLD_VERSION=1' \ 89 '-DENABLE_PRINTING=1' \ 90 '-DENABLE_MANAGED_USERS=1' \ 91 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 92 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 93 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 94 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 95 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 96 '-DVIDEO_HOLE=1' \ 97 '-DNOMINMAX' \ 98 '-DUSE_OPENSSL=1' \ 99 '-DUSE_OPENSSL_CERTS=1' \ 100 '-DANDROID' \ 101 '-D__GNU_SOURCE=1' \ 102 '-DUSE_STLPORT=1' \ 103 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 104 '-DCHROME_BUILD_ID=""' \ 105 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 106 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 107 '-D_DEBUG' 108 109 110# Include paths placed before CFLAGS/CPPFLAGS 111LOCAL_C_INCLUDES_Debug := \ 112 $(gyp_shared_intermediate_dir) \ 113 $(PWD)/frameworks/wilhelm/include \ 114 $(PWD)/bionic \ 115 $(PWD)/external/stlport/stlport 116 117 118# Flags passed to only C++ (and not C) files. 119LOCAL_CPPFLAGS_Debug := \ 120 -fno-rtti \ 121 -fno-threadsafe-statics \ 122 -fvisibility-inlines-hidden \ 123 -Wno-deprecated \ 124 -Wno-non-virtual-dtor \ 125 -Wno-sign-promo \ 126 -Wno-non-virtual-dtor 127 128 129LOCAL_FDO_SUPPORT_Debug := false 130 131# Flags passed to both C and C++ files. 132MY_CFLAGS_Release := \ 133 --param=ssp-buffer-size=4 \ 134 -fno-exceptions \ 135 -fno-strict-aliasing \ 136 -Wno-unused-parameter \ 137 -Wno-missing-field-initializers \ 138 -fvisibility=hidden \ 139 -pipe \ 140 -fPIC \ 141 -Wno-unused-local-typedefs \ 142 -Wno-format \ 143 -ffunction-sections \ 144 -funwind-tables \ 145 -g \ 146 -fno-short-enums \ 147 -finline-limit=64 \ 148 -Wa,--noexecstack \ 149 -U_FORTIFY_SOURCE \ 150 -Wno-extra \ 151 -Wno-ignored-qualifiers \ 152 -Wno-type-limits \ 153 -Wno-unused-but-set-variable \ 154 -Wno-address \ 155 -Wno-format-security \ 156 -Wno-return-type \ 157 -Wno-sequence-point \ 158 -Os \ 159 -fno-ident \ 160 -fdata-sections \ 161 -ffunction-sections \ 162 -funwind-tables 163 164MY_DEFS_Release := \ 165 '-DV8_DEPRECATION_WARNINGS' \ 166 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 167 '-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \ 168 '-D_FILE_OFFSET_BITS=64' \ 169 '-DNO_TCMALLOC' \ 170 '-DDISABLE_NACL' \ 171 '-DCHROMIUM_BUILD' \ 172 '-DUSE_LIBJPEG_TURBO=1' \ 173 '-DENABLE_WEBRTC=1' \ 174 '-DUSE_PROPRIETARY_CODECS' \ 175 '-DENABLE_BROWSER_CDMS' \ 176 '-DENABLE_CONFIGURATION_POLICY' \ 177 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 178 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 179 '-DENABLE_EGLIMAGE=1' \ 180 '-DCLD_VERSION=1' \ 181 '-DENABLE_PRINTING=1' \ 182 '-DENABLE_MANAGED_USERS=1' \ 183 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 184 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 185 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 186 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 187 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 188 '-DVIDEO_HOLE=1' \ 189 '-DNOMINMAX' \ 190 '-DUSE_OPENSSL=1' \ 191 '-DUSE_OPENSSL_CERTS=1' \ 192 '-DANDROID' \ 193 '-D__GNU_SOURCE=1' \ 194 '-DUSE_STLPORT=1' \ 195 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 196 '-DCHROME_BUILD_ID=""' \ 197 '-DNDEBUG' \ 198 '-DNVALGRIND' \ 199 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 200 201 202# Include paths placed before CFLAGS/CPPFLAGS 203LOCAL_C_INCLUDES_Release := \ 204 $(gyp_shared_intermediate_dir) \ 205 $(PWD)/frameworks/wilhelm/include \ 206 $(PWD)/bionic \ 207 $(PWD)/external/stlport/stlport 208 209 210# Flags passed to only C++ (and not C) files. 211LOCAL_CPPFLAGS_Release := \ 212 -fno-rtti \ 213 -fno-threadsafe-statics \ 214 -fvisibility-inlines-hidden \ 215 -Wno-deprecated \ 216 -Wno-non-virtual-dtor \ 217 -Wno-sign-promo \ 218 -Wno-non-virtual-dtor 219 220 221LOCAL_FDO_SUPPORT_Release := false 222 223LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 224LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 225LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 226LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 227LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 228### Rules for final target. 229 230LOCAL_LDFLAGS_Debug := \ 231 -Wl,-z,now \ 232 -Wl,-z,relro \ 233 -Wl,--fatal-warnings \ 234 -Wl,-z,noexecstack \ 235 -fPIC \ 236 -nostdlib \ 237 -Wl,--no-undefined \ 238 -Wl,--exclude-libs=ALL \ 239 -Wl,--warn-shared-textrel \ 240 -Wl,-O1 \ 241 -Wl,--as-needed 242 243 244LOCAL_LDFLAGS_Release := \ 245 -Wl,-z,now \ 246 -Wl,-z,relro \ 247 -Wl,--fatal-warnings \ 248 -Wl,-z,noexecstack \ 249 -fPIC \ 250 -nostdlib \ 251 -Wl,--no-undefined \ 252 -Wl,--exclude-libs=ALL \ 253 -Wl,-O1 \ 254 -Wl,--as-needed \ 255 -Wl,--gc-sections \ 256 -Wl,--warn-shared-textrel 257 258 259LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 260 261LOCAL_STATIC_LIBRARIES := 262 263# Enable grouping to fix circular references 264LOCAL_GROUP_STATIC_LIBRARIES := true 265 266LOCAL_SHARED_LIBRARIES := \ 267 libstlport \ 268 libdl 269 270# Add target alias to "gyp_all_modules" target. 271.PHONY: gyp_all_modules 272gyp_all_modules: third_party_angle_src_preprocessor_gyp 273 274# Alias gyp target name. 275.PHONY: preprocessor 276preprocessor: third_party_angle_src_preprocessor_gyp 277 278include $(BUILD_STATIC_LIBRARY) 279