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_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 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/compiler/BuiltInFunctionEmulator.cpp \ 26 third_party/angle/src/compiler/CodeGen.cpp \ 27 third_party/angle/src/compiler/Compiler.cpp \ 28 third_party/angle/src/compiler/debug.cpp \ 29 third_party/angle/src/compiler/DetectCallDepth.cpp \ 30 third_party/angle/src/compiler/DetectDiscontinuity.cpp \ 31 third_party/angle/src/compiler/Diagnostics.cpp \ 32 third_party/angle/src/compiler/DirectiveHandler.cpp \ 33 third_party/angle/src/compiler/ForLoopUnroll.cpp \ 34 third_party/angle/src/compiler/glslang_lex.cpp \ 35 third_party/angle/src/compiler/glslang_tab.cpp \ 36 third_party/angle/src/compiler/InfoSink.cpp \ 37 third_party/angle/src/compiler/Initialize.cpp \ 38 third_party/angle/src/compiler/InitializeDll.cpp \ 39 third_party/angle/src/compiler/InitializeGLPosition.cpp \ 40 third_party/angle/src/compiler/InitializeParseContext.cpp \ 41 third_party/angle/src/compiler/Intermediate.cpp \ 42 third_party/angle/src/compiler/intermOut.cpp \ 43 third_party/angle/src/compiler/IntermTraverse.cpp \ 44 third_party/angle/src/compiler/MapLongVariableNames.cpp \ 45 third_party/angle/src/compiler/OutputESSL.cpp \ 46 third_party/angle/src/compiler/OutputGLSLBase.cpp \ 47 third_party/angle/src/compiler/OutputGLSL.cpp \ 48 third_party/angle/src/compiler/OutputHLSL.cpp \ 49 third_party/angle/src/compiler/parseConst.cpp \ 50 third_party/angle/src/compiler/ParseContext.cpp \ 51 third_party/angle/src/compiler/PoolAlloc.cpp \ 52 third_party/angle/src/compiler/QualifierAlive.cpp \ 53 third_party/angle/src/compiler/RemoveTree.cpp \ 54 third_party/angle/src/compiler/SearchSymbol.cpp \ 55 third_party/angle/src/compiler/ShaderLang.cpp \ 56 third_party/angle/src/compiler/SymbolTable.cpp \ 57 third_party/angle/src/compiler/TranslatorESSL.cpp \ 58 third_party/angle/src/compiler/TranslatorGLSL.cpp \ 59 third_party/angle/src/compiler/TranslatorHLSL.cpp \ 60 third_party/angle/src/compiler/UnfoldShortCircuitAST.cpp \ 61 third_party/angle/src/compiler/UnfoldShortCircuit.cpp \ 62 third_party/angle/src/compiler/Uniform.cpp \ 63 third_party/angle/src/compiler/util.cpp \ 64 third_party/angle/src/compiler/ValidateLimitations.cpp \ 65 third_party/angle/src/compiler/VariableInfo.cpp \ 66 third_party/angle/src/compiler/VariablePacker.cpp \ 67 third_party/angle/src/compiler/VersionGLSL.cpp \ 68 third_party/angle/src/compiler/depgraph/DependencyGraph.cpp \ 69 third_party/angle/src/compiler/depgraph/DependencyGraphBuilder.cpp \ 70 third_party/angle/src/compiler/depgraph/DependencyGraphOutput.cpp \ 71 third_party/angle/src/compiler/depgraph/DependencyGraphTraverse.cpp \ 72 third_party/angle/src/compiler/timing/RestrictFragmentShaderTiming.cpp \ 73 third_party/angle/src/compiler/timing/RestrictVertexShaderTiming.cpp \ 74 third_party/angle/src/third_party/compiler/ArrayBoundsClamper.cpp \ 75 third_party/angle/src/compiler/ossource_posix.cpp 76 77 78 # Flags passed to both C and C++ files. 79 MY_CFLAGS_Debug := \ 80 -fstack-protector \ 81 --param=ssp-buffer-size=4 \ 82 \ 83 -fno-exceptions \ 84 -fno-strict-aliasing \ 85 -Wno-unused-parameter \ 86 -Wno-missing-field-initializers \ 87 -fvisibility=hidden \ 88 -pipe \ 89 -fPIC \ 90 -Wno-format \ 91 -EL \ 92 -mhard-float \ 93 -ffunction-sections \ 94 -funwind-tables \ 95 -g \ 96 -fstack-protector \ 97 -fno-short-enums \ 98 -finline-limit=64 \ 99 -Wa,--noexecstack \ 100 -U_FORTIFY_SOURCE \ 101 -Wno-extra \ 102 -Wno-ignored-qualifiers \ 103 -Wno-type-limits \ 104 -Wno-address \ 105 -Wno-format-security \ 106 -Wno-return-type \ 107 -Wno-sequence-point \ 108 -Os \ 109 -g \ 110 -fomit-frame-pointer \ 111 -fdata-sections \ 112 -ffunction-sections 113 114 MY_DEFS_Debug := \ 115 '-DV8_DEPRECATION_WARNINGS' \ 116 '-DANGLE_DISABLE_TRACE' \ 117 '-DANGLE_COMPILE_OPTIMIZATION_LEVEL=D3DCOMPILE_OPTIMIZATION_LEVEL1' \ 118 '-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \ 119 '-D_FILE_OFFSET_BITS=64' \ 120 '-DNO_TCMALLOC' \ 121 '-DDISABLE_NACL' \ 122 '-DCHROMIUM_BUILD' \ 123 '-DUSE_LIBJPEG_TURBO=1' \ 124 '-DUSE_PROPRIETARY_CODECS' \ 125 '-DENABLE_CONFIGURATION_POLICY' \ 126 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 127 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 128 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 129 '-DUSE_OPENSSL=1' \ 130 '-DENABLE_EGLIMAGE=1' \ 131 '-DCLD_VERSION=1' \ 132 '-DENABLE_PRINTING=1' \ 133 '-DENABLE_MANAGED_USERS=1' \ 134 '-DANGLE_TRANSLATOR_IMPLEMENTATION' \ 135 '-DANDROID' \ 136 '-D__GNU_SOURCE=1' \ 137 '-DUSE_STLPORT=1' \ 138 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 139 '-DCHROME_BUILD_ID=""' \ 140 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 141 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 142 '-D_DEBUG' 143 144 145 # Include paths placed before CFLAGS/CPPFLAGS 146 LOCAL_C_INCLUDES_Debug := \ 147 $(LOCAL_PATH)/third_party/angle/src \ 148 $(LOCAL_PATH)/third_party/angle/include \ 149 $(PWD)/frameworks/wilhelm/include \ 150 $(PWD)/bionic \ 151 $(PWD)/external/stlport/stlport 152 153 154 # Flags passed to only C++ (and not C) files. 155 LOCAL_CPPFLAGS_Debug := \ 156 -fno-rtti \ 157 -fno-threadsafe-statics \ 158 -fvisibility-inlines-hidden \ 159 -Wno-deprecated \ 160 -Wno-uninitialized \ 161 -Wno-error=c++0x-compat \ 162 -Wno-non-virtual-dtor \ 163 -Wno-sign-promo \ 164 -Wno-non-virtual-dtor 165 166 167 # Flags passed to both C and C++ files. 168 MY_CFLAGS_Release := \ 169 -fstack-protector \ 170 --param=ssp-buffer-size=4 \ 171 \ 172 -fno-exceptions \ 173 -fno-strict-aliasing \ 174 -Wno-unused-parameter \ 175 -Wno-missing-field-initializers \ 176 -fvisibility=hidden \ 177 -pipe \ 178 -fPIC \ 179 -Wno-format \ 180 -EL \ 181 -mhard-float \ 182 -ffunction-sections \ 183 -funwind-tables \ 184 -g \ 185 -fstack-protector \ 186 -fno-short-enums \ 187 -finline-limit=64 \ 188 -Wa,--noexecstack \ 189 -U_FORTIFY_SOURCE \ 190 -Wno-extra \ 191 -Wno-ignored-qualifiers \ 192 -Wno-type-limits \ 193 -Wno-address \ 194 -Wno-format-security \ 195 -Wno-return-type \ 196 -Wno-sequence-point \ 197 -Os \ 198 -fno-ident \ 199 -fdata-sections \ 200 -ffunction-sections \ 201 -fomit-frame-pointer 202 203 MY_DEFS_Release := \ 204 '-DV8_DEPRECATION_WARNINGS' \ 205 '-DANGLE_DISABLE_TRACE' \ 206 '-DANGLE_COMPILE_OPTIMIZATION_LEVEL=D3DCOMPILE_OPTIMIZATION_LEVEL1' \ 207 '-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \ 208 '-D_FILE_OFFSET_BITS=64' \ 209 '-DNO_TCMALLOC' \ 210 '-DDISABLE_NACL' \ 211 '-DCHROMIUM_BUILD' \ 212 '-DUSE_LIBJPEG_TURBO=1' \ 213 '-DUSE_PROPRIETARY_CODECS' \ 214 '-DENABLE_CONFIGURATION_POLICY' \ 215 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 216 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 217 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 218 '-DUSE_OPENSSL=1' \ 219 '-DENABLE_EGLIMAGE=1' \ 220 '-DCLD_VERSION=1' \ 221 '-DENABLE_PRINTING=1' \ 222 '-DENABLE_MANAGED_USERS=1' \ 223 '-DANGLE_TRANSLATOR_IMPLEMENTATION' \ 224 '-DANDROID' \ 225 '-D__GNU_SOURCE=1' \ 226 '-DUSE_STLPORT=1' \ 227 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 228 '-DCHROME_BUILD_ID=""' \ 229 '-DNDEBUG' \ 230 '-DNVALGRIND' \ 231 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 232 233 234 # Include paths placed before CFLAGS/CPPFLAGS 235 LOCAL_C_INCLUDES_Release := \ 236 $(LOCAL_PATH)/third_party/angle/src \ 237 $(LOCAL_PATH)/third_party/angle/include \ 238 $(PWD)/frameworks/wilhelm/include \ 239 $(PWD)/bionic \ 240 $(PWD)/external/stlport/stlport 241 242 243 # Flags passed to only C++ (and not C) files. 244 LOCAL_CPPFLAGS_Release := \ 245 -fno-rtti \ 246 -fno-threadsafe-statics \ 247 -fvisibility-inlines-hidden \ 248 -Wno-deprecated \ 249 -Wno-uninitialized \ 250 -Wno-error=c++0x-compat \ 251 -Wno-non-virtual-dtor \ 252 -Wno-sign-promo \ 253 -Wno-non-virtual-dtor 254 255 256 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 257 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 258 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 259 ### Rules for final target. 260 261 LOCAL_LDFLAGS_Debug := \ 262 -Wl,-z,now \ 263 -Wl,-z,relro \ 264 -Wl,-z,noexecstack \ 265 -fPIC \ 266 -EL \ 267 -Wl,--no-keep-memory \ 268 -nostdlib \ 269 -Wl,--no-undefined \ 270 -Wl,--exclude-libs=ALL \ 271 -Wl,--fatal-warnings \ 272 -Wl,--gc-sections \ 273 -Wl,--warn-shared-textrel \ 274 -Wl,-O1 \ 275 -Wl,--as-needed 276 277 278 LOCAL_LDFLAGS_Release := \ 279 -Wl,-z,now \ 280 -Wl,-z,relro \ 281 -Wl,-z,noexecstack \ 282 -fPIC \ 283 -EL \ 284 -Wl,--no-keep-memory \ 285 -nostdlib \ 286 -Wl,--no-undefined \ 287 -Wl,--exclude-libs=ALL \ 288 -Wl,-O1 \ 289 -Wl,--as-needed \ 290 -Wl,--gc-sections \ 291 -Wl,--fatal-warnings \ 292 -Wl,--warn-shared-textrel 293 294 295 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 296 297 LOCAL_STATIC_LIBRARIES := 298 299 # Enable grouping to fix circular references 300 LOCAL_GROUP_STATIC_LIBRARIES := true 301 302 LOCAL_SHARED_LIBRARIES := \ 303 libstlport \ 304 libdl 305 306 # Add target alias to "gyp_all_modules" target. 307 .PHONY: gyp_all_modules 308 gyp_all_modules: third_party_angle_src_translator_gyp 309 310 # Alias gyp target name. 311 .PHONY: translator 312 translator: third_party_angle_src_translator_gyp 313 314 include $(BUILD_STATIC_LIBRARY) 315