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_translator_lib_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/common/RefCountObject.cpp \ 27 third_party/angle/src/common/blocklayout.cpp \ 28 third_party/angle/src/common/debug.cpp \ 29 third_party/angle/src/common/event_tracer.cpp \ 30 third_party/angle/src/common/mathutil.cpp \ 31 third_party/angle/src/common/utilities.cpp \ 32 third_party/angle/src/compiler/translator/BuiltInFunctionEmulator.cpp \ 33 third_party/angle/src/compiler/translator/CodeGen.cpp \ 34 third_party/angle/src/compiler/translator/Compiler.cpp \ 35 third_party/angle/src/compiler/translator/DetectCallDepth.cpp \ 36 third_party/angle/src/compiler/translator/DetectDiscontinuity.cpp \ 37 third_party/angle/src/compiler/translator/Diagnostics.cpp \ 38 third_party/angle/src/compiler/translator/DirectiveHandler.cpp \ 39 third_party/angle/src/compiler/translator/FlagStd140Structs.cpp \ 40 third_party/angle/src/compiler/translator/ForLoopUnroll.cpp \ 41 third_party/angle/src/compiler/translator/InfoSink.cpp \ 42 third_party/angle/src/compiler/translator/Initialize.cpp \ 43 third_party/angle/src/compiler/translator/InitializeDll.cpp \ 44 third_party/angle/src/compiler/translator/InitializeParseContext.cpp \ 45 third_party/angle/src/compiler/translator/InitializeVariables.cpp \ 46 third_party/angle/src/compiler/translator/IntermTraverse.cpp \ 47 third_party/angle/src/compiler/translator/Intermediate.cpp \ 48 third_party/angle/src/compiler/translator/LoopInfo.cpp \ 49 third_party/angle/src/compiler/translator/OutputESSL.cpp \ 50 third_party/angle/src/compiler/translator/OutputGLSL.cpp \ 51 third_party/angle/src/compiler/translator/OutputGLSLBase.cpp \ 52 third_party/angle/src/compiler/translator/OutputHLSL.cpp \ 53 third_party/angle/src/compiler/translator/ParseContext.cpp \ 54 third_party/angle/src/compiler/translator/PoolAlloc.cpp \ 55 third_party/angle/src/compiler/translator/QualifierAlive.cpp \ 56 third_party/angle/src/compiler/translator/RemoveTree.cpp \ 57 third_party/angle/src/compiler/translator/RewriteElseBlocks.cpp \ 58 third_party/angle/src/compiler/translator/SearchSymbol.cpp \ 59 third_party/angle/src/compiler/translator/SymbolTable.cpp \ 60 third_party/angle/src/compiler/translator/TranslatorESSL.cpp \ 61 third_party/angle/src/compiler/translator/TranslatorGLSL.cpp \ 62 third_party/angle/src/compiler/translator/TranslatorHLSL.cpp \ 63 third_party/angle/src/compiler/translator/Types.cpp \ 64 third_party/angle/src/compiler/translator/UnfoldShortCircuit.cpp \ 65 third_party/angle/src/compiler/translator/UnfoldShortCircuitAST.cpp \ 66 third_party/angle/src/compiler/translator/ValidateLimitations.cpp \ 67 third_party/angle/src/compiler/translator/ValidateOutputs.cpp \ 68 third_party/angle/src/compiler/translator/VariableInfo.cpp \ 69 third_party/angle/src/compiler/translator/VariablePacker.cpp \ 70 third_party/angle/src/compiler/translator/VersionGLSL.cpp \ 71 third_party/angle/src/compiler/translator/compilerdebug.cpp \ 72 third_party/angle/src/compiler/translator/depgraph/DependencyGraph.cpp \ 73 third_party/angle/src/compiler/translator/depgraph/DependencyGraphBuilder.cpp \ 74 third_party/angle/src/compiler/translator/depgraph/DependencyGraphOutput.cpp \ 75 third_party/angle/src/compiler/translator/depgraph/DependencyGraphTraverse.cpp \ 76 third_party/angle/src/compiler/translator/glslang_lex.cpp \ 77 third_party/angle/src/compiler/translator/glslang_tab.cpp \ 78 third_party/angle/src/compiler/translator/intermOut.cpp \ 79 third_party/angle/src/compiler/translator/ossource_posix.cpp \ 80 third_party/angle/src/compiler/translator/parseConst.cpp \ 81 third_party/angle/src/compiler/translator/timing/RestrictFragmentShaderTiming.cpp \ 82 third_party/angle/src/compiler/translator/timing/RestrictVertexShaderTiming.cpp \ 83 third_party/angle/src/compiler/translator/util.cpp \ 84 third_party/angle/src/third_party/compiler/ArrayBoundsClamper.cpp 85 86 87# Flags passed to both C and C++ files. 88MY_CFLAGS_Debug := \ 89 -fstack-protector \ 90 --param=ssp-buffer-size=4 \ 91 -fno-exceptions \ 92 -fno-strict-aliasing \ 93 -Wno-unused-parameter \ 94 -Wno-missing-field-initializers \ 95 -fvisibility=hidden \ 96 -pipe \ 97 -fPIC \ 98 -Wno-unused-local-typedefs \ 99 -Wno-format \ 100 -fno-tree-sra \ 101 -fno-partial-inlining \ 102 -fno-early-inlining \ 103 -fno-tree-copy-prop \ 104 -fno-tree-loop-optimize \ 105 -fno-move-loop-invariants \ 106 -fno-caller-saves \ 107 -Wno-psabi \ 108 -ffunction-sections \ 109 -funwind-tables \ 110 -g \ 111 -fstack-protector \ 112 -fno-short-enums \ 113 -finline-limit=64 \ 114 -Wa,--noexecstack \ 115 -U_FORTIFY_SOURCE \ 116 -Wno-extra \ 117 -Wno-ignored-qualifiers \ 118 -Wno-type-limits \ 119 -Wno-unused-but-set-variable \ 120 -Wno-address \ 121 -Wno-format-security \ 122 -Wno-return-type \ 123 -Wno-sequence-point \ 124 -Os \ 125 -g \ 126 -fdata-sections \ 127 -ffunction-sections \ 128 -fomit-frame-pointer \ 129 -funwind-tables 130 131MY_DEFS_Debug := \ 132 '-DV8_DEPRECATION_WARNINGS' \ 133 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 134 '-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \ 135 '-D_FILE_OFFSET_BITS=64' \ 136 '-DNO_TCMALLOC' \ 137 '-DDISABLE_NACL' \ 138 '-DCHROMIUM_BUILD' \ 139 '-DUSE_LIBJPEG_TURBO=1' \ 140 '-DENABLE_WEBRTC=1' \ 141 '-DUSE_PROPRIETARY_CODECS' \ 142 '-DENABLE_BROWSER_CDMS' \ 143 '-DENABLE_CONFIGURATION_POLICY' \ 144 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 145 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 146 '-DENABLE_EGLIMAGE=1' \ 147 '-DCLD_VERSION=1' \ 148 '-DENABLE_PRINTING=1' \ 149 '-DENABLE_MANAGED_USERS=1' \ 150 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 151 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 152 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 153 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 154 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 155 '-DVIDEO_HOLE=1' \ 156 '-DNOMINMAX' \ 157 '-DUSE_OPENSSL=1' \ 158 '-DUSE_OPENSSL_CERTS=1' \ 159 '-DANDROID' \ 160 '-D__GNU_SOURCE=1' \ 161 '-DUSE_STLPORT=1' \ 162 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 163 '-DCHROME_BUILD_ID=""' \ 164 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 165 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 166 '-D_DEBUG' 167 168 169# Include paths placed before CFLAGS/CPPFLAGS 170LOCAL_C_INCLUDES_Debug := \ 171 $(gyp_shared_intermediate_dir) \ 172 $(LOCAL_PATH)/third_party/angle/src \ 173 $(LOCAL_PATH)/third_party/angle/include \ 174 $(PWD)/frameworks/wilhelm/include \ 175 $(PWD)/bionic \ 176 $(PWD)/external/stlport/stlport 177 178 179# Flags passed to only C++ (and not C) files. 180LOCAL_CPPFLAGS_Debug := \ 181 -fno-rtti \ 182 -fno-threadsafe-statics \ 183 -fvisibility-inlines-hidden \ 184 -Wno-deprecated \ 185 -Wno-abi \ 186 -Wno-non-virtual-dtor \ 187 -Wno-sign-promo \ 188 -Wno-non-virtual-dtor 189 190 191LOCAL_FDO_SUPPORT_Debug := false 192 193# Flags passed to both C and C++ files. 194MY_CFLAGS_Release := \ 195 -fstack-protector \ 196 --param=ssp-buffer-size=4 \ 197 -fno-exceptions \ 198 -fno-strict-aliasing \ 199 -Wno-unused-parameter \ 200 -Wno-missing-field-initializers \ 201 -fvisibility=hidden \ 202 -pipe \ 203 -fPIC \ 204 -Wno-unused-local-typedefs \ 205 -Wno-format \ 206 -fno-tree-sra \ 207 -fno-partial-inlining \ 208 -fno-early-inlining \ 209 -fno-tree-copy-prop \ 210 -fno-tree-loop-optimize \ 211 -fno-move-loop-invariants \ 212 -fno-caller-saves \ 213 -Wno-psabi \ 214 -ffunction-sections \ 215 -funwind-tables \ 216 -g \ 217 -fstack-protector \ 218 -fno-short-enums \ 219 -finline-limit=64 \ 220 -Wa,--noexecstack \ 221 -U_FORTIFY_SOURCE \ 222 -Wno-extra \ 223 -Wno-ignored-qualifiers \ 224 -Wno-type-limits \ 225 -Wno-unused-but-set-variable \ 226 -Wno-address \ 227 -Wno-format-security \ 228 -Wno-return-type \ 229 -Wno-sequence-point \ 230 -Os \ 231 -fno-ident \ 232 -fdata-sections \ 233 -ffunction-sections \ 234 -fomit-frame-pointer \ 235 -funwind-tables 236 237MY_DEFS_Release := \ 238 '-DV8_DEPRECATION_WARNINGS' \ 239 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 240 '-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \ 241 '-D_FILE_OFFSET_BITS=64' \ 242 '-DNO_TCMALLOC' \ 243 '-DDISABLE_NACL' \ 244 '-DCHROMIUM_BUILD' \ 245 '-DUSE_LIBJPEG_TURBO=1' \ 246 '-DENABLE_WEBRTC=1' \ 247 '-DUSE_PROPRIETARY_CODECS' \ 248 '-DENABLE_BROWSER_CDMS' \ 249 '-DENABLE_CONFIGURATION_POLICY' \ 250 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 251 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 252 '-DENABLE_EGLIMAGE=1' \ 253 '-DCLD_VERSION=1' \ 254 '-DENABLE_PRINTING=1' \ 255 '-DENABLE_MANAGED_USERS=1' \ 256 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 257 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 258 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 259 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 260 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 261 '-DVIDEO_HOLE=1' \ 262 '-DNOMINMAX' \ 263 '-DUSE_OPENSSL=1' \ 264 '-DUSE_OPENSSL_CERTS=1' \ 265 '-DANDROID' \ 266 '-D__GNU_SOURCE=1' \ 267 '-DUSE_STLPORT=1' \ 268 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 269 '-DCHROME_BUILD_ID=""' \ 270 '-DNDEBUG' \ 271 '-DNVALGRIND' \ 272 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 273 274 275# Include paths placed before CFLAGS/CPPFLAGS 276LOCAL_C_INCLUDES_Release := \ 277 $(gyp_shared_intermediate_dir) \ 278 $(LOCAL_PATH)/third_party/angle/src \ 279 $(LOCAL_PATH)/third_party/angle/include \ 280 $(PWD)/frameworks/wilhelm/include \ 281 $(PWD)/bionic \ 282 $(PWD)/external/stlport/stlport 283 284 285# Flags passed to only C++ (and not C) files. 286LOCAL_CPPFLAGS_Release := \ 287 -fno-rtti \ 288 -fno-threadsafe-statics \ 289 -fvisibility-inlines-hidden \ 290 -Wno-deprecated \ 291 -Wno-abi \ 292 -Wno-non-virtual-dtor \ 293 -Wno-sign-promo \ 294 -Wno-non-virtual-dtor 295 296 297LOCAL_FDO_SUPPORT_Release := false 298 299LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 300LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 301LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 302LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 303LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 304### Rules for final target. 305 306LOCAL_LDFLAGS_Debug := \ 307 -Wl,-z,now \ 308 -Wl,-z,relro \ 309 -Wl,--fatal-warnings \ 310 -Wl,-z,noexecstack \ 311 -fPIC \ 312 -Wl,-z,relro \ 313 -Wl,-z,now \ 314 -fuse-ld=gold \ 315 -nostdlib \ 316 -Wl,--no-undefined \ 317 -Wl,--exclude-libs=ALL \ 318 -Wl,--icf=safe \ 319 -Wl,--warn-shared-textrel \ 320 -Wl,-O1 \ 321 -Wl,--as-needed 322 323 324LOCAL_LDFLAGS_Release := \ 325 -Wl,-z,now \ 326 -Wl,-z,relro \ 327 -Wl,--fatal-warnings \ 328 -Wl,-z,noexecstack \ 329 -fPIC \ 330 -Wl,-z,relro \ 331 -Wl,-z,now \ 332 -fuse-ld=gold \ 333 -nostdlib \ 334 -Wl,--no-undefined \ 335 -Wl,--exclude-libs=ALL \ 336 -Wl,--icf=safe \ 337 -Wl,-O1 \ 338 -Wl,--as-needed \ 339 -Wl,--gc-sections \ 340 -Wl,--warn-shared-textrel 341 342 343LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 344 345LOCAL_STATIC_LIBRARIES := 346 347# Enable grouping to fix circular references 348LOCAL_GROUP_STATIC_LIBRARIES := true 349 350LOCAL_SHARED_LIBRARIES := \ 351 libstlport \ 352 libdl 353 354# Add target alias to "gyp_all_modules" target. 355.PHONY: gyp_all_modules 356gyp_all_modules: third_party_angle_src_translator_lib_gyp 357 358# Alias gyp target name. 359.PHONY: translator_lib 360translator_lib: third_party_angle_src_translator_lib_gyp 361 362include $(BUILD_STATIC_LIBRARY) 363