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