1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := third_party_angle_src_translator_lib_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_GENERATED_SOURCES := 21 22 GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24 LOCAL_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. 93 MY_CFLAGS_Debug := \ 94 -fstack-protector \ 95 --param=ssp-buffer-size=4 \ 96 \ 97 -fno-strict-aliasing \ 98 -Wno-unused-parameter \ 99 -Wno-missing-field-initializers \ 100 -fvisibility=hidden \ 101 -pipe \ 102 -fPIC \ 103 -Wno-unused-local-typedefs \ 104 -Wno-format \ 105 -ffunction-sections \ 106 -funwind-tables \ 107 -g \ 108 -fstack-protector \ 109 -fno-short-enums \ 110 -finline-limit=64 \ 111 -Wa,--noexecstack \ 112 -U_FORTIFY_SOURCE \ 113 -Wno-extra \ 114 -Wno-ignored-qualifiers \ 115 -Wno-type-limits \ 116 -Wno-unused-but-set-variable \ 117 -Wno-address \ 118 -Wno-format-security \ 119 -Wno-return-type \ 120 -Wno-sequence-point \ 121 -Os \ 122 -g \ 123 -gdwarf-4 \ 124 -fdata-sections \ 125 -ffunction-sections \ 126 -fomit-frame-pointer \ 127 -funwind-tables 128 129 MY_DEFS_Debug := \ 130 '-DV8_DEPRECATION_WARNINGS' \ 131 '-D_FILE_OFFSET_BITS=64' \ 132 '-DNO_TCMALLOC' \ 133 '-DDISABLE_NACL' \ 134 '-DCHROMIUM_BUILD' \ 135 '-DUSE_LIBJPEG_TURBO=1' \ 136 '-DENABLE_WEBRTC=1' \ 137 '-DUSE_PROPRIETARY_CODECS' \ 138 '-DENABLE_BROWSER_CDMS' \ 139 '-DENABLE_CONFIGURATION_POLICY' \ 140 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 141 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 142 '-DENABLE_EGLIMAGE=1' \ 143 '-DCLD_VERSION=1' \ 144 '-DENABLE_PRINTING=1' \ 145 '-DENABLE_MANAGED_USERS=1' \ 146 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 147 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 148 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 149 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 150 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 151 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 152 '-DVIDEO_HOLE=1' \ 153 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 154 '-DANGLE_TRANSLATOR_STATIC' \ 155 '-DUSE_OPENSSL=1' \ 156 '-DUSE_OPENSSL_CERTS=1' \ 157 '-DANDROID' \ 158 '-D__GNU_SOURCE=1' \ 159 '-DUSE_STLPORT=1' \ 160 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 161 '-DCHROME_BUILD_ID=""' \ 162 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 163 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 164 '-D_DEBUG' 165 166 167 # Include paths placed before CFLAGS/CPPFLAGS 168 LOCAL_C_INCLUDES_Debug := \ 169 $(gyp_shared_intermediate_dir) \ 170 $(LOCAL_PATH)/third_party/angle/src \ 171 $(LOCAL_PATH)/third_party/angle/include \ 172 $(PWD)/frameworks/wilhelm/include \ 173 $(PWD)/bionic \ 174 $(PWD)/external/stlport/stlport 175 176 177 # Flags passed to only C++ (and not C) files. 178 LOCAL_CPPFLAGS_Debug := \ 179 -fno-exceptions \ 180 -fno-rtti \ 181 -fno-threadsafe-statics \ 182 -fvisibility-inlines-hidden \ 183 -Wno-deprecated \ 184 -Wno-uninitialized \ 185 -std=gnu++11 \ 186 -Wno-narrowing \ 187 -Wno-literal-suffix \ 188 -Wno-non-virtual-dtor \ 189 -Wno-sign-promo \ 190 -Wno-non-virtual-dtor 191 192 193 # Flags passed to both C and C++ files. 194 MY_CFLAGS_Release := \ 195 -fstack-protector \ 196 --param=ssp-buffer-size=4 \ 197 \ 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 -ffunction-sections \ 207 -funwind-tables \ 208 -g \ 209 -fstack-protector \ 210 -fno-short-enums \ 211 -finline-limit=64 \ 212 -Wa,--noexecstack \ 213 -U_FORTIFY_SOURCE \ 214 -Wno-extra \ 215 -Wno-ignored-qualifiers \ 216 -Wno-type-limits \ 217 -Wno-unused-but-set-variable \ 218 -Wno-address \ 219 -Wno-format-security \ 220 -Wno-return-type \ 221 -Wno-sequence-point \ 222 -Os \ 223 -fno-ident \ 224 -fdata-sections \ 225 -ffunction-sections \ 226 -fomit-frame-pointer \ 227 -funwind-tables 228 229 MY_DEFS_Release := \ 230 '-DV8_DEPRECATION_WARNINGS' \ 231 '-D_FILE_OFFSET_BITS=64' \ 232 '-DNO_TCMALLOC' \ 233 '-DDISABLE_NACL' \ 234 '-DCHROMIUM_BUILD' \ 235 '-DUSE_LIBJPEG_TURBO=1' \ 236 '-DENABLE_WEBRTC=1' \ 237 '-DUSE_PROPRIETARY_CODECS' \ 238 '-DENABLE_BROWSER_CDMS' \ 239 '-DENABLE_CONFIGURATION_POLICY' \ 240 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 241 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 242 '-DENABLE_EGLIMAGE=1' \ 243 '-DCLD_VERSION=1' \ 244 '-DENABLE_PRINTING=1' \ 245 '-DENABLE_MANAGED_USERS=1' \ 246 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 247 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 248 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 249 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 250 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 251 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 252 '-DVIDEO_HOLE=1' \ 253 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 254 '-DANGLE_TRANSLATOR_STATIC' \ 255 '-DUSE_OPENSSL=1' \ 256 '-DUSE_OPENSSL_CERTS=1' \ 257 '-DANDROID' \ 258 '-D__GNU_SOURCE=1' \ 259 '-DUSE_STLPORT=1' \ 260 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 261 '-DCHROME_BUILD_ID=""' \ 262 '-DNDEBUG' \ 263 '-DNVALGRIND' \ 264 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 265 266 267 # Include paths placed before CFLAGS/CPPFLAGS 268 LOCAL_C_INCLUDES_Release := \ 269 $(gyp_shared_intermediate_dir) \ 270 $(LOCAL_PATH)/third_party/angle/src \ 271 $(LOCAL_PATH)/third_party/angle/include \ 272 $(PWD)/frameworks/wilhelm/include \ 273 $(PWD)/bionic \ 274 $(PWD)/external/stlport/stlport 275 276 277 # Flags passed to only C++ (and not C) files. 278 LOCAL_CPPFLAGS_Release := \ 279 -fno-exceptions \ 280 -fno-rtti \ 281 -fno-threadsafe-statics \ 282 -fvisibility-inlines-hidden \ 283 -Wno-deprecated \ 284 -Wno-uninitialized \ 285 -std=gnu++11 \ 286 -Wno-narrowing \ 287 -Wno-literal-suffix \ 288 -Wno-non-virtual-dtor \ 289 -Wno-sign-promo \ 290 -Wno-non-virtual-dtor 291 292 293 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 294 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 295 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 296 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 297 ### Rules for final target. 298 299 LOCAL_SHARED_LIBRARIES := \ 300 libstlport \ 301 libdl 302 303 # Add target alias to "gyp_all_modules" target. 304 .PHONY: gyp_all_modules 305 gyp_all_modules: third_party_angle_src_translator_lib_gyp 306 307 # Alias gyp target name. 308 .PHONY: translator_lib 309 translator_lib: third_party_angle_src_translator_lib_gyp 310 311 include $(BUILD_STATIC_LIBRARY) 312