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 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 third_party/angle/src/compiler/translator/ShaderLang.cpp 27 28 29 # Flags passed to both C and C++ files. 30 MY_CFLAGS_Debug := \ 31 --param=ssp-buffer-size=4 \ 32 -fno-exceptions \ 33 -fno-strict-aliasing \ 34 -Wno-unused-parameter \ 35 -Wno-missing-field-initializers \ 36 -fvisibility=hidden \ 37 -pipe \ 38 -fPIC \ 39 -Wno-unused-local-typedefs \ 40 -Wno-format \ 41 -msse2 \ 42 -mfpmath=sse \ 43 -mmmx \ 44 -m32 \ 45 -ffunction-sections \ 46 -funwind-tables \ 47 -g \ 48 -fno-short-enums \ 49 -finline-limit=64 \ 50 -Wa,--noexecstack \ 51 -U_FORTIFY_SOURCE \ 52 -Wno-extra \ 53 -Wno-ignored-qualifiers \ 54 -Wno-type-limits \ 55 -Wno-unused-but-set-variable \ 56 -fno-stack-protector \ 57 -Wno-address \ 58 -Wno-format-security \ 59 -Wno-return-type \ 60 -Wno-sequence-point \ 61 -Os \ 62 -g \ 63 -fdata-sections \ 64 -ffunction-sections \ 65 -fomit-frame-pointer \ 66 -funwind-tables 67 68 MY_DEFS_Debug := \ 69 '-DV8_DEPRECATION_WARNINGS' \ 70 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 71 '-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \ 72 '-D_FILE_OFFSET_BITS=64' \ 73 '-DNO_TCMALLOC' \ 74 '-DDISABLE_NACL' \ 75 '-DCHROMIUM_BUILD' \ 76 '-DUSE_LIBJPEG_TURBO=1' \ 77 '-DENABLE_WEBRTC=1' \ 78 '-DUSE_PROPRIETARY_CODECS' \ 79 '-DENABLE_BROWSER_CDMS' \ 80 '-DENABLE_CONFIGURATION_POLICY' \ 81 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 82 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 83 '-DENABLE_EGLIMAGE=1' \ 84 '-DCLD_VERSION=1' \ 85 '-DENABLE_PRINTING=1' \ 86 '-DENABLE_MANAGED_USERS=1' \ 87 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 88 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 89 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 90 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 91 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 92 '-DVIDEO_HOLE=1' \ 93 '-DANGLE_TRANSLATOR_IMPLEMENTATION' \ 94 '-DNOMINMAX' \ 95 '-DUSE_OPENSSL=1' \ 96 '-DUSE_OPENSSL_CERTS=1' \ 97 '-DANDROID' \ 98 '-D__GNU_SOURCE=1' \ 99 '-DUSE_STLPORT=1' \ 100 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 101 '-DCHROME_BUILD_ID=""' \ 102 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 103 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 104 '-D_DEBUG' 105 106 107 # Include paths placed before CFLAGS/CPPFLAGS 108 LOCAL_C_INCLUDES_Debug := \ 109 $(gyp_shared_intermediate_dir) \ 110 $(LOCAL_PATH)/third_party/angle/src \ 111 $(LOCAL_PATH)/third_party/angle/include \ 112 $(PWD)/frameworks/wilhelm/include \ 113 $(PWD)/bionic \ 114 $(PWD)/external/stlport/stlport 115 116 117 # Flags passed to only C++ (and not C) files. 118 LOCAL_CPPFLAGS_Debug := \ 119 -fno-rtti \ 120 -fno-threadsafe-statics \ 121 -fvisibility-inlines-hidden \ 122 -Wno-deprecated \ 123 -Wno-non-virtual-dtor \ 124 -Wno-sign-promo \ 125 -Wno-non-virtual-dtor 126 127 128 LOCAL_FDO_SUPPORT_Debug := false 129 130 # Flags passed to both C and C++ files. 131 MY_CFLAGS_Release := \ 132 --param=ssp-buffer-size=4 \ 133 -fno-exceptions \ 134 -fno-strict-aliasing \ 135 -Wno-unused-parameter \ 136 -Wno-missing-field-initializers \ 137 -fvisibility=hidden \ 138 -pipe \ 139 -fPIC \ 140 -Wno-unused-local-typedefs \ 141 -Wno-format \ 142 -msse2 \ 143 -mfpmath=sse \ 144 -mmmx \ 145 -m32 \ 146 -ffunction-sections \ 147 -funwind-tables \ 148 -g \ 149 -fno-short-enums \ 150 -finline-limit=64 \ 151 -Wa,--noexecstack \ 152 -U_FORTIFY_SOURCE \ 153 -Wno-extra \ 154 -Wno-ignored-qualifiers \ 155 -Wno-type-limits \ 156 -Wno-unused-but-set-variable \ 157 -fno-stack-protector \ 158 -Wno-address \ 159 -Wno-format-security \ 160 -Wno-return-type \ 161 -Wno-sequence-point \ 162 -Os \ 163 -fno-ident \ 164 -fdata-sections \ 165 -ffunction-sections \ 166 -fomit-frame-pointer \ 167 -funwind-tables 168 169 MY_DEFS_Release := \ 170 '-DV8_DEPRECATION_WARNINGS' \ 171 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 172 '-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \ 173 '-D_FILE_OFFSET_BITS=64' \ 174 '-DNO_TCMALLOC' \ 175 '-DDISABLE_NACL' \ 176 '-DCHROMIUM_BUILD' \ 177 '-DUSE_LIBJPEG_TURBO=1' \ 178 '-DENABLE_WEBRTC=1' \ 179 '-DUSE_PROPRIETARY_CODECS' \ 180 '-DENABLE_BROWSER_CDMS' \ 181 '-DENABLE_CONFIGURATION_POLICY' \ 182 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 183 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 184 '-DENABLE_EGLIMAGE=1' \ 185 '-DCLD_VERSION=1' \ 186 '-DENABLE_PRINTING=1' \ 187 '-DENABLE_MANAGED_USERS=1' \ 188 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 189 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 190 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 191 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 192 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 193 '-DVIDEO_HOLE=1' \ 194 '-DANGLE_TRANSLATOR_IMPLEMENTATION' \ 195 '-DNOMINMAX' \ 196 '-DUSE_OPENSSL=1' \ 197 '-DUSE_OPENSSL_CERTS=1' \ 198 '-DANDROID' \ 199 '-D__GNU_SOURCE=1' \ 200 '-DUSE_STLPORT=1' \ 201 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 202 '-DCHROME_BUILD_ID=""' \ 203 '-DNDEBUG' \ 204 '-DNVALGRIND' \ 205 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 206 207 208 # Include paths placed before CFLAGS/CPPFLAGS 209 LOCAL_C_INCLUDES_Release := \ 210 $(gyp_shared_intermediate_dir) \ 211 $(LOCAL_PATH)/third_party/angle/src \ 212 $(LOCAL_PATH)/third_party/angle/include \ 213 $(PWD)/frameworks/wilhelm/include \ 214 $(PWD)/bionic \ 215 $(PWD)/external/stlport/stlport 216 217 218 # Flags passed to only C++ (and not C) files. 219 LOCAL_CPPFLAGS_Release := \ 220 -fno-rtti \ 221 -fno-threadsafe-statics \ 222 -fvisibility-inlines-hidden \ 223 -Wno-deprecated \ 224 -Wno-non-virtual-dtor \ 225 -Wno-sign-promo \ 226 -Wno-non-virtual-dtor 227 228 229 LOCAL_FDO_SUPPORT_Release := false 230 231 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 232 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 233 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 234 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 235 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 236 ### Rules for final target. 237 238 LOCAL_LDFLAGS_Debug := \ 239 -Wl,-z,now \ 240 -Wl,-z,relro \ 241 -Wl,--fatal-warnings \ 242 -Wl,-z,noexecstack \ 243 -fPIC \ 244 -m32 \ 245 -fuse-ld=gold \ 246 -nostdlib \ 247 -Wl,--no-undefined \ 248 -Wl,--exclude-libs=ALL \ 249 -Wl,--warn-shared-textrel \ 250 -Wl,-O1 \ 251 -Wl,--as-needed 252 253 254 LOCAL_LDFLAGS_Release := \ 255 -Wl,-z,now \ 256 -Wl,-z,relro \ 257 -Wl,--fatal-warnings \ 258 -Wl,-z,noexecstack \ 259 -fPIC \ 260 -m32 \ 261 -fuse-ld=gold \ 262 -nostdlib \ 263 -Wl,--no-undefined \ 264 -Wl,--exclude-libs=ALL \ 265 -Wl,-O1 \ 266 -Wl,--as-needed \ 267 -Wl,--gc-sections \ 268 -Wl,--warn-shared-textrel 269 270 271 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 272 273 LOCAL_STATIC_LIBRARIES := 274 275 # Enable grouping to fix circular references 276 LOCAL_GROUP_STATIC_LIBRARIES := true 277 278 LOCAL_SHARED_LIBRARIES := \ 279 libstlport \ 280 libdl 281 282 # Add target alias to "gyp_all_modules" target. 283 .PHONY: gyp_all_modules 284 gyp_all_modules: third_party_angle_src_translator_gyp 285 286 # Alias gyp target name. 287 .PHONY: translator 288 translator: third_party_angle_src_translator_gyp 289 290 include $(BUILD_STATIC_LIBRARY) 291