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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_GENERATED_SOURCES := 21 22GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24LOCAL_SRC_FILES := \ 25 third_party/angle/src/common/RefCountObject.cpp \ 26 third_party/angle/src/common/blocklayout.cpp \ 27 third_party/angle/src/common/debug.cpp \ 28 third_party/angle/src/common/event_tracer.cpp \ 29 third_party/angle/src/common/mathutil.cpp \ 30 third_party/angle/src/common/tls.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/IntermNode.cpp \ 49 third_party/angle/src/compiler/translator/LoopInfo.cpp \ 50 third_party/angle/src/compiler/translator/OutputESSL.cpp \ 51 third_party/angle/src/compiler/translator/OutputGLSL.cpp \ 52 third_party/angle/src/compiler/translator/OutputGLSLBase.cpp \ 53 third_party/angle/src/compiler/translator/OutputHLSL.cpp \ 54 third_party/angle/src/compiler/translator/ParseContext.cpp \ 55 third_party/angle/src/compiler/translator/PoolAlloc.cpp \ 56 third_party/angle/src/compiler/translator/QualifierAlive.cpp \ 57 third_party/angle/src/compiler/translator/RegenerateStructNames.cpp \ 58 third_party/angle/src/compiler/translator/RemoveTree.cpp \ 59 third_party/angle/src/compiler/translator/RewriteElseBlocks.cpp \ 60 third_party/angle/src/compiler/translator/ScalarizeVecAndMatConstructorArgs.cpp \ 61 third_party/angle/src/compiler/translator/SearchSymbol.cpp \ 62 third_party/angle/src/compiler/translator/StructureHLSL.cpp \ 63 third_party/angle/src/compiler/translator/SymbolTable.cpp \ 64 third_party/angle/src/compiler/translator/TranslatorESSL.cpp \ 65 third_party/angle/src/compiler/translator/TranslatorGLSL.cpp \ 66 third_party/angle/src/compiler/translator/TranslatorHLSL.cpp \ 67 third_party/angle/src/compiler/translator/Types.cpp \ 68 third_party/angle/src/compiler/translator/UnfoldShortCircuit.cpp \ 69 third_party/angle/src/compiler/translator/UnfoldShortCircuitAST.cpp \ 70 third_party/angle/src/compiler/translator/UniformHLSL.cpp \ 71 third_party/angle/src/compiler/translator/UtilsHLSL.cpp \ 72 third_party/angle/src/compiler/translator/ValidateLimitations.cpp \ 73 third_party/angle/src/compiler/translator/ValidateOutputs.cpp \ 74 third_party/angle/src/compiler/translator/VariableInfo.cpp \ 75 third_party/angle/src/compiler/translator/VariablePacker.cpp \ 76 third_party/angle/src/compiler/translator/VersionGLSL.cpp \ 77 third_party/angle/src/compiler/translator/compilerdebug.cpp \ 78 third_party/angle/src/compiler/translator/depgraph/DependencyGraph.cpp \ 79 third_party/angle/src/compiler/translator/depgraph/DependencyGraphBuilder.cpp \ 80 third_party/angle/src/compiler/translator/depgraph/DependencyGraphOutput.cpp \ 81 third_party/angle/src/compiler/translator/depgraph/DependencyGraphTraverse.cpp \ 82 third_party/angle/src/compiler/translator/glslang_lex.cpp \ 83 third_party/angle/src/compiler/translator/glslang_tab.cpp \ 84 third_party/angle/src/compiler/translator/intermOut.cpp \ 85 third_party/angle/src/compiler/translator/parseConst.cpp \ 86 third_party/angle/src/compiler/translator/timing/RestrictFragmentShaderTiming.cpp \ 87 third_party/angle/src/compiler/translator/timing/RestrictVertexShaderTiming.cpp \ 88 third_party/angle/src/compiler/translator/util.cpp \ 89 third_party/angle/src/third_party/compiler/ArrayBoundsClamper.cpp 90 91 92# Flags passed to both C and C++ files. 93MY_CFLAGS_Debug := \ 94 --param=ssp-buffer-size=4 \ 95 -fno-strict-aliasing \ 96 -Wno-unused-parameter \ 97 -Wno-missing-field-initializers \ 98 -fvisibility=hidden \ 99 -pipe \ 100 -fPIC \ 101 -Wno-unused-local-typedefs \ 102 -Wno-format \ 103 -ffunction-sections \ 104 -funwind-tables \ 105 -g \ 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 -gdwarf-4 \ 121 -fdata-sections \ 122 -ffunction-sections \ 123 -funwind-tables 124 125MY_DEFS_Debug := \ 126 '-DV8_DEPRECATION_WARNINGS' \ 127 '-D_FILE_OFFSET_BITS=64' \ 128 '-DNO_TCMALLOC' \ 129 '-DDISABLE_NACL' \ 130 '-DCHROMIUM_BUILD' \ 131 '-DUSE_LIBJPEG_TURBO=1' \ 132 '-DENABLE_WEBRTC=1' \ 133 '-DUSE_PROPRIETARY_CODECS' \ 134 '-DENABLE_BROWSER_CDMS' \ 135 '-DENABLE_CONFIGURATION_POLICY' \ 136 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 137 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 138 '-DENABLE_EGLIMAGE=1' \ 139 '-DCLD_VERSION=1' \ 140 '-DENABLE_PRINTING=1' \ 141 '-DENABLE_MANAGED_USERS=1' \ 142 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 143 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 144 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 145 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 146 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 147 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 148 '-DVIDEO_HOLE=1' \ 149 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 150 '-DANGLE_TRANSLATOR_STATIC' \ 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-exceptions \ 176 -fno-rtti \ 177 -fno-threadsafe-statics \ 178 -fvisibility-inlines-hidden \ 179 -Wno-deprecated \ 180 -std=gnu++11 \ 181 -Wno-narrowing \ 182 -Wno-literal-suffix \ 183 -Wno-non-virtual-dtor \ 184 -Wno-sign-promo \ 185 -Wno-non-virtual-dtor 186 187 188# Flags passed to both C and C++ files. 189MY_CFLAGS_Release := \ 190 --param=ssp-buffer-size=4 \ 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 -ffunction-sections \ 200 -funwind-tables \ 201 -g \ 202 -fno-short-enums \ 203 -finline-limit=64 \ 204 -Wa,--noexecstack \ 205 -U_FORTIFY_SOURCE \ 206 -Wno-extra \ 207 -Wno-ignored-qualifiers \ 208 -Wno-type-limits \ 209 -Wno-unused-but-set-variable \ 210 -Wno-address \ 211 -Wno-format-security \ 212 -Wno-return-type \ 213 -Wno-sequence-point \ 214 -Os \ 215 -fno-ident \ 216 -fdata-sections \ 217 -ffunction-sections \ 218 -funwind-tables 219 220MY_DEFS_Release := \ 221 '-DV8_DEPRECATION_WARNINGS' \ 222 '-D_FILE_OFFSET_BITS=64' \ 223 '-DNO_TCMALLOC' \ 224 '-DDISABLE_NACL' \ 225 '-DCHROMIUM_BUILD' \ 226 '-DUSE_LIBJPEG_TURBO=1' \ 227 '-DENABLE_WEBRTC=1' \ 228 '-DUSE_PROPRIETARY_CODECS' \ 229 '-DENABLE_BROWSER_CDMS' \ 230 '-DENABLE_CONFIGURATION_POLICY' \ 231 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 232 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 233 '-DENABLE_EGLIMAGE=1' \ 234 '-DCLD_VERSION=1' \ 235 '-DENABLE_PRINTING=1' \ 236 '-DENABLE_MANAGED_USERS=1' \ 237 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 238 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 239 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 240 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 241 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 242 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 243 '-DVIDEO_HOLE=1' \ 244 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 245 '-DANGLE_TRANSLATOR_STATIC' \ 246 '-DUSE_OPENSSL=1' \ 247 '-DUSE_OPENSSL_CERTS=1' \ 248 '-DANDROID' \ 249 '-D__GNU_SOURCE=1' \ 250 '-DUSE_STLPORT=1' \ 251 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 252 '-DCHROME_BUILD_ID=""' \ 253 '-DNDEBUG' \ 254 '-DNVALGRIND' \ 255 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 256 257 258# Include paths placed before CFLAGS/CPPFLAGS 259LOCAL_C_INCLUDES_Release := \ 260 $(gyp_shared_intermediate_dir) \ 261 $(LOCAL_PATH)/third_party/angle/src \ 262 $(LOCAL_PATH)/third_party/angle/include \ 263 $(PWD)/frameworks/wilhelm/include \ 264 $(PWD)/bionic \ 265 $(PWD)/external/stlport/stlport 266 267 268# Flags passed to only C++ (and not C) files. 269LOCAL_CPPFLAGS_Release := \ 270 -fno-exceptions \ 271 -fno-rtti \ 272 -fno-threadsafe-statics \ 273 -fvisibility-inlines-hidden \ 274 -Wno-deprecated \ 275 -std=gnu++11 \ 276 -Wno-narrowing \ 277 -Wno-literal-suffix \ 278 -Wno-non-virtual-dtor \ 279 -Wno-sign-promo \ 280 -Wno-non-virtual-dtor 281 282 283LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 284LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 285LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 286LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 287### Rules for final target. 288 289LOCAL_SHARED_LIBRARIES := \ 290 libstlport \ 291 libdl 292 293# Add target alias to "gyp_all_modules" target. 294.PHONY: gyp_all_modules 295gyp_all_modules: third_party_angle_src_translator_lib_gyp 296 297# Alias gyp target name. 298.PHONY: translator_lib 299translator_lib: third_party_angle_src_translator_lib_gyp 300 301include $(BUILD_STATIC_LIBRARY) 302