1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := v8_tools_gyp_v8_base_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \ 15 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp 16 17GYP_GENERATED_OUTPUTS := 18 19# Make sure our deps and generated files are built first. 20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22LOCAL_CPP_EXTENSION := .cc 23LOCAL_GENERATED_SOURCES := 24 25GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27LOCAL_SRC_FILES := \ 28 v8/src/accessors.cc \ 29 v8/src/allocation.cc \ 30 v8/src/allocation-site-scopes.cc \ 31 v8/src/allocation-tracker.cc \ 32 v8/src/api.cc \ 33 v8/src/arguments.cc \ 34 v8/src/assembler.cc \ 35 v8/src/assert-scope.cc \ 36 v8/src/ast-value-factory.cc \ 37 v8/src/ast.cc \ 38 v8/src/background-parsing-task.cc \ 39 v8/src/bailout-reason.cc \ 40 v8/src/bignum-dtoa.cc \ 41 v8/src/bignum.cc \ 42 v8/src/bootstrapper.cc \ 43 v8/src/builtins.cc \ 44 v8/src/cached-powers.cc \ 45 v8/src/checks.cc \ 46 v8/src/code-factory.cc \ 47 v8/src/code-stubs.cc \ 48 v8/src/code-stubs-hydrogen.cc \ 49 v8/src/codegen.cc \ 50 v8/src/compilation-cache.cc \ 51 v8/src/compiler/access-builder.cc \ 52 v8/src/compiler/ast-graph-builder.cc \ 53 v8/src/compiler/change-lowering.cc \ 54 v8/src/compiler/code-generator.cc \ 55 v8/src/compiler/common-operator.cc \ 56 v8/src/compiler/control-builders.cc \ 57 v8/src/compiler/gap-resolver.cc \ 58 v8/src/compiler/graph-builder.cc \ 59 v8/src/compiler/graph-reducer.cc \ 60 v8/src/compiler/graph-replay.cc \ 61 v8/src/compiler/graph-visualizer.cc \ 62 v8/src/compiler/graph.cc \ 63 v8/src/compiler/instruction-selector.cc \ 64 v8/src/compiler/instruction.cc \ 65 v8/src/compiler/js-builtin-reducer.cc \ 66 v8/src/compiler/js-context-specialization.cc \ 67 v8/src/compiler/js-generic-lowering.cc \ 68 v8/src/compiler/js-graph.cc \ 69 v8/src/compiler/js-inlining.cc \ 70 v8/src/compiler/js-typed-lowering.cc \ 71 v8/src/compiler/linkage.cc \ 72 v8/src/compiler/machine-operator-reducer.cc \ 73 v8/src/compiler/machine-operator.cc \ 74 v8/src/compiler/machine-type.cc \ 75 v8/src/compiler/node-cache.cc \ 76 v8/src/compiler/node.cc \ 77 v8/src/compiler/operator.cc \ 78 v8/src/compiler/pipeline.cc \ 79 v8/src/compiler/raw-machine-assembler.cc \ 80 v8/src/compiler/register-allocator.cc \ 81 v8/src/compiler/schedule.cc \ 82 v8/src/compiler/scheduler.cc \ 83 v8/src/compiler/simplified-lowering.cc \ 84 v8/src/compiler/simplified-operator-reducer.cc \ 85 v8/src/compiler/simplified-operator.cc \ 86 v8/src/compiler/source-position.cc \ 87 v8/src/compiler/typer.cc \ 88 v8/src/compiler/value-numbering-reducer.cc \ 89 v8/src/compiler/verifier.cc \ 90 v8/src/compiler.cc \ 91 v8/src/contexts.cc \ 92 v8/src/conversions.cc \ 93 v8/src/counters.cc \ 94 v8/src/cpu-profiler.cc \ 95 v8/src/data-flow.cc \ 96 v8/src/date.cc \ 97 v8/src/dateparser.cc \ 98 v8/src/debug.cc \ 99 v8/src/deoptimizer.cc \ 100 v8/src/disassembler.cc \ 101 v8/src/diy-fp.cc \ 102 v8/src/dtoa.cc \ 103 v8/src/elements-kind.cc \ 104 v8/src/elements.cc \ 105 v8/src/execution.cc \ 106 v8/src/extensions/externalize-string-extension.cc \ 107 v8/src/extensions/free-buffer-extension.cc \ 108 v8/src/extensions/gc-extension.cc \ 109 v8/src/extensions/statistics-extension.cc \ 110 v8/src/extensions/trigger-failure-extension.cc \ 111 v8/src/factory.cc \ 112 v8/src/fast-dtoa.cc \ 113 v8/src/fixed-dtoa.cc \ 114 v8/src/flags.cc \ 115 v8/src/frames.cc \ 116 v8/src/full-codegen.cc \ 117 v8/src/func-name-inferrer.cc \ 118 v8/src/gdb-jit.cc \ 119 v8/src/global-handles.cc \ 120 v8/src/handles.cc \ 121 v8/src/heap-profiler.cc \ 122 v8/src/heap-snapshot-generator.cc \ 123 v8/src/heap/gc-idle-time-handler.cc \ 124 v8/src/heap/gc-tracer.cc \ 125 v8/src/heap/heap.cc \ 126 v8/src/heap/incremental-marking.cc \ 127 v8/src/heap/mark-compact.cc \ 128 v8/src/heap/objects-visiting.cc \ 129 v8/src/heap/spaces.cc \ 130 v8/src/heap/store-buffer.cc \ 131 v8/src/heap/sweeper-thread.cc \ 132 v8/src/hydrogen-bce.cc \ 133 v8/src/hydrogen-bch.cc \ 134 v8/src/hydrogen-canonicalize.cc \ 135 v8/src/hydrogen-check-elimination.cc \ 136 v8/src/hydrogen-dce.cc \ 137 v8/src/hydrogen-dehoist.cc \ 138 v8/src/hydrogen-environment-liveness.cc \ 139 v8/src/hydrogen-escape-analysis.cc \ 140 v8/src/hydrogen-instructions.cc \ 141 v8/src/hydrogen.cc \ 142 v8/src/hydrogen-gvn.cc \ 143 v8/src/hydrogen-infer-representation.cc \ 144 v8/src/hydrogen-infer-types.cc \ 145 v8/src/hydrogen-load-elimination.cc \ 146 v8/src/hydrogen-mark-deoptimize.cc \ 147 v8/src/hydrogen-mark-unreachable.cc \ 148 v8/src/hydrogen-osr.cc \ 149 v8/src/hydrogen-range-analysis.cc \ 150 v8/src/hydrogen-redundant-phi.cc \ 151 v8/src/hydrogen-removable-simulates.cc \ 152 v8/src/hydrogen-representation-changes.cc \ 153 v8/src/hydrogen-sce.cc \ 154 v8/src/hydrogen-store-elimination.cc \ 155 v8/src/hydrogen-types.cc \ 156 v8/src/hydrogen-uint32-analysis.cc \ 157 v8/src/i18n.cc \ 158 v8/src/icu_util.cc \ 159 v8/src/ic/access-compiler.cc \ 160 v8/src/ic/call-optimization.cc \ 161 v8/src/ic/handler-compiler.cc \ 162 v8/src/ic/ic-state.cc \ 163 v8/src/ic/ic.cc \ 164 v8/src/ic/ic-compiler.cc \ 165 v8/src/interface.cc \ 166 v8/src/interface-descriptors.cc \ 167 v8/src/interpreter-irregexp.cc \ 168 v8/src/isolate.cc \ 169 v8/src/jsregexp.cc \ 170 v8/src/lithium-allocator.cc \ 171 v8/src/lithium-codegen.cc \ 172 v8/src/lithium.cc \ 173 v8/src/liveedit.cc \ 174 v8/src/log-utils.cc \ 175 v8/src/log.cc \ 176 v8/src/lookup.cc \ 177 v8/src/messages.cc \ 178 v8/src/objects-debug.cc \ 179 v8/src/objects-printer.cc \ 180 v8/src/objects.cc \ 181 v8/src/optimizing-compiler-thread.cc \ 182 v8/src/ostreams.cc \ 183 v8/src/parser.cc \ 184 v8/src/perf-jit.cc \ 185 v8/src/preparse-data.cc \ 186 v8/src/preparser.cc \ 187 v8/src/prettyprinter.cc \ 188 v8/src/profile-generator.cc \ 189 v8/src/property.cc \ 190 v8/src/regexp-macro-assembler-irregexp.cc \ 191 v8/src/regexp-macro-assembler-tracer.cc \ 192 v8/src/regexp-macro-assembler.cc \ 193 v8/src/regexp-stack.cc \ 194 v8/src/rewriter.cc \ 195 v8/src/runtime-profiler.cc \ 196 v8/src/runtime.cc \ 197 v8/src/safepoint-table.cc \ 198 v8/src/sampler.cc \ 199 v8/src/scanner-character-streams.cc \ 200 v8/src/scanner.cc \ 201 v8/src/scopeinfo.cc \ 202 v8/src/scopes.cc \ 203 v8/src/serialize.cc \ 204 v8/src/snapshot-source-sink.cc \ 205 v8/src/string-search.cc \ 206 v8/src/string-stream.cc \ 207 v8/src/strtod.cc \ 208 v8/src/ic/stub-cache.cc \ 209 v8/src/token.cc \ 210 v8/src/transitions.cc \ 211 v8/src/type-feedback-vector.cc \ 212 v8/src/type-info.cc \ 213 v8/src/types.cc \ 214 v8/src/typing.cc \ 215 v8/src/unicode.cc \ 216 v8/src/utils.cc \ 217 v8/src/v8.cc \ 218 v8/src/v8threads.cc \ 219 v8/src/variables.cc \ 220 v8/src/version.cc \ 221 v8/src/zone.cc \ 222 v8/third_party/fdlibm/fdlibm.cc \ 223 v8/src/arm64/assembler-arm64.cc \ 224 v8/src/arm64/builtins-arm64.cc \ 225 v8/src/arm64/codegen-arm64.cc \ 226 v8/src/arm64/code-stubs-arm64.cc \ 227 v8/src/arm64/cpu-arm64.cc \ 228 v8/src/arm64/debug-arm64.cc \ 229 v8/src/arm64/decoder-arm64.cc \ 230 v8/src/arm64/delayed-masm-arm64.cc \ 231 v8/src/arm64/deoptimizer-arm64.cc \ 232 v8/src/arm64/disasm-arm64.cc \ 233 v8/src/arm64/frames-arm64.cc \ 234 v8/src/arm64/full-codegen-arm64.cc \ 235 v8/src/arm64/instructions-arm64.cc \ 236 v8/src/arm64/instrument-arm64.cc \ 237 v8/src/arm64/interface-descriptors-arm64.cc \ 238 v8/src/arm64/lithium-arm64.cc \ 239 v8/src/arm64/lithium-codegen-arm64.cc \ 240 v8/src/arm64/lithium-gap-resolver-arm64.cc \ 241 v8/src/arm64/macro-assembler-arm64.cc \ 242 v8/src/arm64/regexp-macro-assembler-arm64.cc \ 243 v8/src/arm64/simulator-arm64.cc \ 244 v8/src/arm64/utils-arm64.cc \ 245 v8/src/compiler/arm64/code-generator-arm64.cc \ 246 v8/src/compiler/arm64/instruction-selector-arm64.cc \ 247 v8/src/compiler/arm64/linkage-arm64.cc \ 248 v8/src/ic/arm64/access-compiler-arm64.cc \ 249 v8/src/ic/arm64/handler-compiler-arm64.cc \ 250 v8/src/ic/arm64/ic-arm64.cc \ 251 v8/src/ic/arm64/ic-compiler-arm64.cc \ 252 v8/src/ic/arm64/stub-cache-arm64.cc 253 254 255# Flags passed to both C and C++ files. 256MY_CFLAGS_Debug := \ 257 --param=ssp-buffer-size=4 \ 258 -fno-strict-aliasing \ 259 -Wno-unused-parameter \ 260 -Wno-missing-field-initializers \ 261 -fvisibility=hidden \ 262 -pipe \ 263 -fPIC \ 264 -Wno-unused-local-typedefs \ 265 -Wno-format \ 266 -ffunction-sections \ 267 -funwind-tables \ 268 -g \ 269 -fno-short-enums \ 270 -finline-limit=64 \ 271 -Wa,--noexecstack \ 272 -U_FORTIFY_SOURCE \ 273 -Wno-extra \ 274 -Wno-ignored-qualifiers \ 275 -Wno-type-limits \ 276 -Wno-unused-but-set-variable \ 277 -Wno-address \ 278 -Wno-format-security \ 279 -Wno-return-type \ 280 -Wno-sequence-point \ 281 -Os \ 282 -g \ 283 -gdwarf-4 \ 284 -fdata-sections \ 285 -ffunction-sections \ 286 -funwind-tables 287 288MY_DEFS_Debug := \ 289 '-DV8_DEPRECATION_WARNINGS' \ 290 '-D_FILE_OFFSET_BITS=64' \ 291 '-DNO_TCMALLOC' \ 292 '-DDISABLE_NACL' \ 293 '-DCHROMIUM_BUILD' \ 294 '-DUSE_LIBJPEG_TURBO=1' \ 295 '-DENABLE_WEBRTC=1' \ 296 '-DUSE_PROPRIETARY_CODECS' \ 297 '-DENABLE_BROWSER_CDMS' \ 298 '-DENABLE_CONFIGURATION_POLICY' \ 299 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 300 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 301 '-DENABLE_EGLIMAGE=1' \ 302 '-DCLD_VERSION=1' \ 303 '-DENABLE_PRINTING=1' \ 304 '-DENABLE_MANAGED_USERS=1' \ 305 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 306 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 307 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 308 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 309 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 310 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 311 '-DVIDEO_HOLE=1' \ 312 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 313 '-DV8_TARGET_ARCH_ARM64' \ 314 '-DV8_I18N_SUPPORT' \ 315 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 316 '-DU_USING_ICU_NAMESPACE=0' \ 317 '-DU_ENABLE_DYLOAD=0' \ 318 '-DUSE_OPENSSL=1' \ 319 '-DUSE_OPENSSL_CERTS=1' \ 320 '-DANDROID' \ 321 '-D__GNU_SOURCE=1' \ 322 '-DUSE_STLPORT=1' \ 323 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 324 '-DCHROME_BUILD_ID=""' \ 325 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 326 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 327 '-D_DEBUG' \ 328 '-DENABLE_DISASSEMBLER' \ 329 '-DV8_ENABLE_CHECKS' \ 330 '-DOBJECT_PRINT' \ 331 '-DVERIFY_HEAP' \ 332 '-DENABLE_EXTRA_CHECKS' \ 333 '-DENABLE_HANDLE_ZAPPING' 334 335 336# Include paths placed before CFLAGS/CPPFLAGS 337LOCAL_C_INCLUDES_Debug := \ 338 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 339 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 340 $(LOCAL_PATH)/v8 \ 341 $(gyp_shared_intermediate_dir) \ 342 $(PWD)/external/icu/icu4c/source/common \ 343 $(PWD)/external/icu/icu4c/source/i18n \ 344 $(PWD)/frameworks/wilhelm/include \ 345 $(PWD)/bionic \ 346 $(PWD)/external/stlport/stlport 347 348 349# Flags passed to only C++ (and not C) files. 350LOCAL_CPPFLAGS_Debug := \ 351 -fno-exceptions \ 352 -fno-rtti \ 353 -fno-threadsafe-statics \ 354 -fvisibility-inlines-hidden \ 355 -Wno-deprecated \ 356 -std=gnu++11 \ 357 -Wno-narrowing \ 358 -Wno-literal-suffix \ 359 -Wno-non-virtual-dtor \ 360 -Wno-sign-promo \ 361 -Wno-non-virtual-dtor 362 363 364# Flags passed to both C and C++ files. 365MY_CFLAGS_Release := \ 366 --param=ssp-buffer-size=4 \ 367 -fno-strict-aliasing \ 368 -Wno-unused-parameter \ 369 -Wno-missing-field-initializers \ 370 -fvisibility=hidden \ 371 -pipe \ 372 -fPIC \ 373 -Wno-unused-local-typedefs \ 374 -Wno-format \ 375 -ffunction-sections \ 376 -funwind-tables \ 377 -g \ 378 -fno-short-enums \ 379 -finline-limit=64 \ 380 -Wa,--noexecstack \ 381 -U_FORTIFY_SOURCE \ 382 -Wno-extra \ 383 -Wno-ignored-qualifiers \ 384 -Wno-type-limits \ 385 -Wno-unused-but-set-variable \ 386 -Wno-address \ 387 -Wno-format-security \ 388 -Wno-return-type \ 389 -Wno-sequence-point \ 390 -fno-ident \ 391 -fdata-sections \ 392 -ffunction-sections \ 393 -funwind-tables \ 394 -fdata-sections \ 395 -ffunction-sections \ 396 -O2 397 398MY_DEFS_Release := \ 399 '-DV8_DEPRECATION_WARNINGS' \ 400 '-D_FILE_OFFSET_BITS=64' \ 401 '-DNO_TCMALLOC' \ 402 '-DDISABLE_NACL' \ 403 '-DCHROMIUM_BUILD' \ 404 '-DUSE_LIBJPEG_TURBO=1' \ 405 '-DENABLE_WEBRTC=1' \ 406 '-DUSE_PROPRIETARY_CODECS' \ 407 '-DENABLE_BROWSER_CDMS' \ 408 '-DENABLE_CONFIGURATION_POLICY' \ 409 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 410 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 411 '-DENABLE_EGLIMAGE=1' \ 412 '-DCLD_VERSION=1' \ 413 '-DENABLE_PRINTING=1' \ 414 '-DENABLE_MANAGED_USERS=1' \ 415 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 416 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 417 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 418 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 419 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 420 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 421 '-DVIDEO_HOLE=1' \ 422 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 423 '-DV8_TARGET_ARCH_ARM64' \ 424 '-DV8_I18N_SUPPORT' \ 425 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 426 '-DU_USING_ICU_NAMESPACE=0' \ 427 '-DU_ENABLE_DYLOAD=0' \ 428 '-DUSE_OPENSSL=1' \ 429 '-DUSE_OPENSSL_CERTS=1' \ 430 '-DANDROID' \ 431 '-D__GNU_SOURCE=1' \ 432 '-DUSE_STLPORT=1' \ 433 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 434 '-DCHROME_BUILD_ID=""' \ 435 '-DNDEBUG' \ 436 '-DNVALGRIND' \ 437 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 438 439 440# Include paths placed before CFLAGS/CPPFLAGS 441LOCAL_C_INCLUDES_Release := \ 442 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 443 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 444 $(LOCAL_PATH)/v8 \ 445 $(gyp_shared_intermediate_dir) \ 446 $(PWD)/external/icu/icu4c/source/common \ 447 $(PWD)/external/icu/icu4c/source/i18n \ 448 $(PWD)/frameworks/wilhelm/include \ 449 $(PWD)/bionic \ 450 $(PWD)/external/stlport/stlport 451 452 453# Flags passed to only C++ (and not C) files. 454LOCAL_CPPFLAGS_Release := \ 455 -fno-exceptions \ 456 -fno-rtti \ 457 -fno-threadsafe-statics \ 458 -fvisibility-inlines-hidden \ 459 -Wno-deprecated \ 460 -std=gnu++11 \ 461 -Wno-narrowing \ 462 -Wno-literal-suffix \ 463 -Wno-non-virtual-dtor \ 464 -Wno-sign-promo \ 465 -Wno-non-virtual-dtor 466 467 468LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 469LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 470LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 471LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 472### Rules for final target. 473 474LOCAL_SHARED_LIBRARIES := \ 475 libstlport \ 476 libdl 477 478### Set directly by aosp_build_settings. 479LOCAL_FDO_SUPPORT := true 480 481# Add target alias to "gyp_all_modules" target. 482.PHONY: gyp_all_modules 483gyp_all_modules: v8_tools_gyp_v8_base_gyp 484 485# Alias gyp target name. 486.PHONY: v8_base 487v8_base: v8_tools_gyp_v8_base_gyp 488 489include $(BUILD_STATIC_LIBRARY) 490