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_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 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/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. 79MY_CFLAGS_Debug := \ 80 -fstack-protector \ 81 --param=ssp-buffer-size=4 \ 82 -fno-exceptions \ 83 -fno-strict-aliasing \ 84 -Wno-unused-parameter \ 85 -Wno-missing-field-initializers \ 86 -fvisibility=hidden \ 87 -pipe \ 88 -fPIC \ 89 -Wno-format \ 90 -fno-tree-sra \ 91 -fuse-ld=gold \ 92 -Wno-psabi \ 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 114MY_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 146LOCAL_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. 155LOCAL_CPPFLAGS_Debug := \ 156 -fno-rtti \ 157 -fno-threadsafe-statics \ 158 -fvisibility-inlines-hidden \ 159 -Wno-deprecated \ 160 -Wno-abi \ 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. 168MY_CFLAGS_Release := \ 169 -fstack-protector \ 170 --param=ssp-buffer-size=4 \ 171 -fno-exceptions \ 172 -fno-strict-aliasing \ 173 -Wno-unused-parameter \ 174 -Wno-missing-field-initializers \ 175 -fvisibility=hidden \ 176 -pipe \ 177 -fPIC \ 178 -Wno-format \ 179 -fno-tree-sra \ 180 -fuse-ld=gold \ 181 -Wno-psabi \ 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 203MY_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 235LOCAL_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. 244LOCAL_CPPFLAGS_Release := \ 245 -fno-rtti \ 246 -fno-threadsafe-statics \ 247 -fvisibility-inlines-hidden \ 248 -Wno-deprecated \ 249 -Wno-abi \ 250 -Wno-error=c++0x-compat \ 251 -Wno-non-virtual-dtor \ 252 -Wno-sign-promo \ 253 -Wno-non-virtual-dtor 254 255 256LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 257LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 258LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 259### Rules for final target. 260 261LOCAL_LDFLAGS_Debug := \ 262 -Wl,-z,now \ 263 -Wl,-z,relro \ 264 -Wl,-z,noexecstack \ 265 -fPIC \ 266 -Wl,-z,relro \ 267 -Wl,-z,now \ 268 -fuse-ld=gold \ 269 -nostdlib \ 270 -Wl,--no-undefined \ 271 -Wl,--exclude-libs=ALL \ 272 -Wl,--icf=safe \ 273 -Wl,--fatal-warnings \ 274 -Wl,--gc-sections \ 275 -Wl,--warn-shared-textrel \ 276 -Wl,-O1 \ 277 -Wl,--as-needed 278 279 280LOCAL_LDFLAGS_Release := \ 281 -Wl,-z,now \ 282 -Wl,-z,relro \ 283 -Wl,-z,noexecstack \ 284 -fPIC \ 285 -Wl,-z,relro \ 286 -Wl,-z,now \ 287 -fuse-ld=gold \ 288 -nostdlib \ 289 -Wl,--no-undefined \ 290 -Wl,--exclude-libs=ALL \ 291 -Wl,--icf=safe \ 292 -Wl,-O1 \ 293 -Wl,--as-needed \ 294 -Wl,--gc-sections \ 295 -Wl,--fatal-warnings \ 296 -Wl,--warn-shared-textrel 297 298 299LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 300 301LOCAL_STATIC_LIBRARIES := 302 303# Enable grouping to fix circular references 304LOCAL_GROUP_STATIC_LIBRARIES := true 305 306LOCAL_SHARED_LIBRARIES := \ 307 libstlport \ 308 libdl 309 310# Add target alias to "gyp_all_modules" target. 311.PHONY: gyp_all_modules 312gyp_all_modules: third_party_angle_src_translator_gyp 313 314# Alias gyp target name. 315.PHONY: translator 316translator: third_party_angle_src_translator_gyp 317 318include $(BUILD_STATIC_LIBRARY) 319