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