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 -m64 \ 101 -march=x86-64 \ 102 -ffunction-sections \ 103 -funwind-tables \ 104 -g \ 105 -fstack-protector \ 106 -fno-short-enums \ 107 -finline-limit=64 \ 108 -Wa,--noexecstack \ 109 -U_FORTIFY_SOURCE \ 110 -Wno-extra \ 111 -Wno-ignored-qualifiers \ 112 -Wno-type-limits \ 113 -Wno-unused-but-set-variable \ 114 -Wno-address \ 115 -Wno-format-security \ 116 -Wno-return-type \ 117 -Wno-sequence-point \ 118 -Os \ 119 -g \ 120 -fdata-sections \ 121 -ffunction-sections \ 122 -fomit-frame-pointer \ 123 -funwind-tables 124 125MY_DEFS_Debug := \ 126 '-DV8_DEPRECATION_WARNINGS' \ 127 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 128 '-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \ 129 '-D_FILE_OFFSET_BITS=64' \ 130 '-DNO_TCMALLOC' \ 131 '-DDISABLE_NACL' \ 132 '-DCHROMIUM_BUILD' \ 133 '-DUSE_LIBJPEG_TURBO=1' \ 134 '-DENABLE_WEBRTC=1' \ 135 '-DUSE_PROPRIETARY_CODECS' \ 136 '-DENABLE_BROWSER_CDMS' \ 137 '-DENABLE_CONFIGURATION_POLICY' \ 138 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 139 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 140 '-DENABLE_EGLIMAGE=1' \ 141 '-DCLD_VERSION=1' \ 142 '-DENABLE_PRINTING=1' \ 143 '-DENABLE_MANAGED_USERS=1' \ 144 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 145 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 146 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 147 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 148 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 149 '-DVIDEO_HOLE=1' \ 150 '-DNOMINMAX' \ 151 '-DUSE_OPENSSL=1' \ 152 '-DUSE_OPENSSL_CERTS=1' \ 153 '-DANDROID' \ 154 '-D__GNU_SOURCE=1' \ 155 '-DUSE_STLPORT=1' \ 156 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 157 '-DCHROME_BUILD_ID=""' \ 158 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 159 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 160 '-D_DEBUG' 161 162 163# Include paths placed before CFLAGS/CPPFLAGS 164LOCAL_C_INCLUDES_Debug := \ 165 $(gyp_shared_intermediate_dir) \ 166 $(LOCAL_PATH)/third_party/angle/src \ 167 $(LOCAL_PATH)/third_party/angle/include \ 168 $(PWD)/frameworks/wilhelm/include \ 169 $(PWD)/bionic \ 170 $(PWD)/external/stlport/stlport 171 172 173# Flags passed to only C++ (and not C) files. 174LOCAL_CPPFLAGS_Debug := \ 175 -fno-rtti \ 176 -fno-threadsafe-statics \ 177 -fvisibility-inlines-hidden \ 178 -Wno-deprecated \ 179 -Wno-non-virtual-dtor \ 180 -Wno-sign-promo \ 181 -Wno-non-virtual-dtor 182 183 184LOCAL_FDO_SUPPORT_Debug := false 185 186# Flags passed to both C and C++ files. 187MY_CFLAGS_Release := \ 188 -fstack-protector \ 189 --param=ssp-buffer-size=4 \ 190 -fno-exceptions \ 191 -fno-strict-aliasing \ 192 -Wno-unused-parameter \ 193 -Wno-missing-field-initializers \ 194 -fvisibility=hidden \ 195 -pipe \ 196 -fPIC \ 197 -Wno-unused-local-typedefs \ 198 -Wno-format \ 199 -m64 \ 200 -march=x86-64 \ 201 -ffunction-sections \ 202 -funwind-tables \ 203 -g \ 204 -fstack-protector \ 205 -fno-short-enums \ 206 -finline-limit=64 \ 207 -Wa,--noexecstack \ 208 -U_FORTIFY_SOURCE \ 209 -Wno-extra \ 210 -Wno-ignored-qualifiers \ 211 -Wno-type-limits \ 212 -Wno-unused-but-set-variable \ 213 -Wno-address \ 214 -Wno-format-security \ 215 -Wno-return-type \ 216 -Wno-sequence-point \ 217 -Os \ 218 -fno-ident \ 219 -fdata-sections \ 220 -ffunction-sections \ 221 -fomit-frame-pointer \ 222 -funwind-tables 223 224MY_DEFS_Release := \ 225 '-DV8_DEPRECATION_WARNINGS' \ 226 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 227 '-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \ 228 '-D_FILE_OFFSET_BITS=64' \ 229 '-DNO_TCMALLOC' \ 230 '-DDISABLE_NACL' \ 231 '-DCHROMIUM_BUILD' \ 232 '-DUSE_LIBJPEG_TURBO=1' \ 233 '-DENABLE_WEBRTC=1' \ 234 '-DUSE_PROPRIETARY_CODECS' \ 235 '-DENABLE_BROWSER_CDMS' \ 236 '-DENABLE_CONFIGURATION_POLICY' \ 237 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 238 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 239 '-DENABLE_EGLIMAGE=1' \ 240 '-DCLD_VERSION=1' \ 241 '-DENABLE_PRINTING=1' \ 242 '-DENABLE_MANAGED_USERS=1' \ 243 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 244 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 245 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 246 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 247 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 248 '-DVIDEO_HOLE=1' \ 249 '-DNOMINMAX' \ 250 '-DUSE_OPENSSL=1' \ 251 '-DUSE_OPENSSL_CERTS=1' \ 252 '-DANDROID' \ 253 '-D__GNU_SOURCE=1' \ 254 '-DUSE_STLPORT=1' \ 255 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 256 '-DCHROME_BUILD_ID=""' \ 257 '-DNDEBUG' \ 258 '-DNVALGRIND' \ 259 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 260 261 262# Include paths placed before CFLAGS/CPPFLAGS 263LOCAL_C_INCLUDES_Release := \ 264 $(gyp_shared_intermediate_dir) \ 265 $(LOCAL_PATH)/third_party/angle/src \ 266 $(LOCAL_PATH)/third_party/angle/include \ 267 $(PWD)/frameworks/wilhelm/include \ 268 $(PWD)/bionic \ 269 $(PWD)/external/stlport/stlport 270 271 272# Flags passed to only C++ (and not C) files. 273LOCAL_CPPFLAGS_Release := \ 274 -fno-rtti \ 275 -fno-threadsafe-statics \ 276 -fvisibility-inlines-hidden \ 277 -Wno-deprecated \ 278 -Wno-non-virtual-dtor \ 279 -Wno-sign-promo \ 280 -Wno-non-virtual-dtor 281 282 283LOCAL_FDO_SUPPORT_Release := false 284 285LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 286LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 287LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 288LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 289LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 290### Rules for final target. 291 292LOCAL_LDFLAGS_Debug := \ 293 -Wl,-z,now \ 294 -Wl,-z,relro \ 295 -Wl,--fatal-warnings \ 296 -Wl,-z,noexecstack \ 297 -fPIC \ 298 -m64 \ 299 -fuse-ld=gold \ 300 -nostdlib \ 301 -Wl,--no-undefined \ 302 -Wl,--exclude-libs=ALL \ 303 -Wl,--warn-shared-textrel \ 304 -Wl,-O1 \ 305 -Wl,--as-needed 306 307 308LOCAL_LDFLAGS_Release := \ 309 -Wl,-z,now \ 310 -Wl,-z,relro \ 311 -Wl,--fatal-warnings \ 312 -Wl,-z,noexecstack \ 313 -fPIC \ 314 -m64 \ 315 -fuse-ld=gold \ 316 -nostdlib \ 317 -Wl,--no-undefined \ 318 -Wl,--exclude-libs=ALL \ 319 -Wl,-O1 \ 320 -Wl,--as-needed \ 321 -Wl,--gc-sections \ 322 -Wl,--warn-shared-textrel 323 324 325LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 326 327LOCAL_STATIC_LIBRARIES := 328 329# Enable grouping to fix circular references 330LOCAL_GROUP_STATIC_LIBRARIES := true 331 332LOCAL_SHARED_LIBRARIES := \ 333 libstlport \ 334 libdl 335 336# Add target alias to "gyp_all_modules" target. 337.PHONY: gyp_all_modules 338gyp_all_modules: third_party_angle_src_translator_lib_gyp 339 340# Alias gyp target name. 341.PHONY: translator_lib 342translator_lib: third_party_angle_src_translator_lib_gyp 343 344include $(BUILD_STATIC_LIBRARY) 345