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/mips64/assembler-mips64.cc \ 223 v8/src/mips64/builtins-mips64.cc \ 224 v8/src/mips64/codegen-mips64.cc \ 225 v8/src/mips64/code-stubs-mips64.cc \ 226 v8/src/mips64/constants-mips64.cc \ 227 v8/src/mips64/cpu-mips64.cc \ 228 v8/src/mips64/debug-mips64.cc \ 229 v8/src/mips64/deoptimizer-mips64.cc \ 230 v8/src/mips64/disasm-mips64.cc \ 231 v8/src/mips64/frames-mips64.cc \ 232 v8/src/mips64/full-codegen-mips64.cc \ 233 v8/src/mips64/interface-descriptors-mips64.cc \ 234 v8/src/mips64/lithium-codegen-mips64.cc \ 235 v8/src/mips64/lithium-gap-resolver-mips64.cc \ 236 v8/src/mips64/lithium-mips64.cc \ 237 v8/src/mips64/macro-assembler-mips64.cc \ 238 v8/src/mips64/regexp-macro-assembler-mips64.cc \ 239 v8/src/mips64/simulator-mips64.cc \ 240 v8/src/ic/mips64/access-compiler-mips64.cc \ 241 v8/src/ic/mips64/handler-compiler-mips64.cc \ 242 v8/src/ic/mips64/ic-mips64.cc \ 243 v8/src/ic/mips64/ic-compiler-mips64.cc \ 244 v8/src/ic/mips64/stub-cache-mips64.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 -Os \ 269 -g \ 270 -gdwarf-4 \ 271 -fdata-sections \ 272 -ffunction-sections \ 273 -fomit-frame-pointer \ 274 -funwind-tables 275 276MY_DEFS_Debug := \ 277 '-DV8_DEPRECATION_WARNINGS' \ 278 '-D_FILE_OFFSET_BITS=64' \ 279 '-DNO_TCMALLOC' \ 280 '-DDISABLE_NACL' \ 281 '-DCHROMIUM_BUILD' \ 282 '-DUSE_LIBJPEG_TURBO=1' \ 283 '-DENABLE_WEBRTC=1' \ 284 '-DUSE_PROPRIETARY_CODECS' \ 285 '-DENABLE_BROWSER_CDMS' \ 286 '-DENABLE_CONFIGURATION_POLICY' \ 287 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 288 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 289 '-DENABLE_EGLIMAGE=1' \ 290 '-DCLD_VERSION=1' \ 291 '-DENABLE_PRINTING=1' \ 292 '-DENABLE_MANAGED_USERS=1' \ 293 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 294 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 295 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 296 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 297 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 298 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 299 '-DVIDEO_HOLE=1' \ 300 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 301 '-DV8_TARGET_ARCH_MIPS64' \ 302 '-DCAN_USE_FPU_INSTRUCTIONS' \ 303 '-D__mips_hard_float=1' \ 304 '-D_MIPS_ARCH_MIPS64R2' \ 305 '-DV8_I18N_SUPPORT' \ 306 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 307 '-DU_USING_ICU_NAMESPACE=0' \ 308 '-DU_ENABLE_DYLOAD=0' \ 309 '-DU_STATIC_IMPLEMENTATION' \ 310 '-DUSE_OPENSSL=1' \ 311 '-DUSE_OPENSSL_CERTS=1' \ 312 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 313 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 314 '-D_DEBUG' \ 315 '-DENABLE_DISASSEMBLER' \ 316 '-DV8_ENABLE_CHECKS' \ 317 '-DOBJECT_PRINT' \ 318 '-DVERIFY_HEAP' \ 319 '-DENABLE_EXTRA_CHECKS' \ 320 '-DENABLE_HANDLE_ZAPPING' 321 322 323# Include paths placed before CFLAGS/CPPFLAGS 324LOCAL_C_INCLUDES_Debug := \ 325 $(LOCAL_PATH)/v8 \ 326 $(gyp_shared_intermediate_dir) \ 327 $(LOCAL_PATH)/third_party/icu/source/i18n \ 328 $(LOCAL_PATH)/third_party/icu/source/common 329 330 331# Flags passed to only C++ (and not C) files. 332LOCAL_CPPFLAGS_Debug := \ 333 -fno-exceptions \ 334 -fno-rtti \ 335 -fno-threadsafe-statics \ 336 -fvisibility-inlines-hidden \ 337 -Wno-deprecated \ 338 -std=gnu++11 339 340 341# Flags passed to both C and C++ files. 342MY_CFLAGS_Release := \ 343 -fstack-protector \ 344 --param=ssp-buffer-size=4 \ 345 \ 346 -pthread \ 347 -fno-strict-aliasing \ 348 -Wno-unused-parameter \ 349 -Wno-missing-field-initializers \ 350 -fvisibility=hidden \ 351 -pipe \ 352 -fPIC \ 353 -Wno-format \ 354 -Wheader-hygiene \ 355 -Wno-char-subscripts \ 356 -Wno-unneeded-internal-declaration \ 357 -Wno-covered-switch-default \ 358 -Wstring-conversion \ 359 -Wno-c++11-narrowing \ 360 -Wno-deprecated-register \ 361 -Wno-unused-local-typedef \ 362 -fno-ident \ 363 -fdata-sections \ 364 -ffunction-sections \ 365 -fomit-frame-pointer \ 366 -funwind-tables \ 367 -fdata-sections \ 368 -ffunction-sections \ 369 -O2 370 371MY_DEFS_Release := \ 372 '-DV8_DEPRECATION_WARNINGS' \ 373 '-D_FILE_OFFSET_BITS=64' \ 374 '-DNO_TCMALLOC' \ 375 '-DDISABLE_NACL' \ 376 '-DCHROMIUM_BUILD' \ 377 '-DUSE_LIBJPEG_TURBO=1' \ 378 '-DENABLE_WEBRTC=1' \ 379 '-DUSE_PROPRIETARY_CODECS' \ 380 '-DENABLE_BROWSER_CDMS' \ 381 '-DENABLE_CONFIGURATION_POLICY' \ 382 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 383 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 384 '-DENABLE_EGLIMAGE=1' \ 385 '-DCLD_VERSION=1' \ 386 '-DENABLE_PRINTING=1' \ 387 '-DENABLE_MANAGED_USERS=1' \ 388 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 389 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 390 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 391 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 392 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 393 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 394 '-DVIDEO_HOLE=1' \ 395 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 396 '-DV8_TARGET_ARCH_MIPS64' \ 397 '-DCAN_USE_FPU_INSTRUCTIONS' \ 398 '-D__mips_hard_float=1' \ 399 '-D_MIPS_ARCH_MIPS64R2' \ 400 '-DV8_I18N_SUPPORT' \ 401 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 402 '-DU_USING_ICU_NAMESPACE=0' \ 403 '-DU_ENABLE_DYLOAD=0' \ 404 '-DU_STATIC_IMPLEMENTATION' \ 405 '-DUSE_OPENSSL=1' \ 406 '-DUSE_OPENSSL_CERTS=1' \ 407 '-DNDEBUG' \ 408 '-DNVALGRIND' \ 409 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 410 411 412# Include paths placed before CFLAGS/CPPFLAGS 413LOCAL_C_INCLUDES_Release := \ 414 $(LOCAL_PATH)/v8 \ 415 $(gyp_shared_intermediate_dir) \ 416 $(LOCAL_PATH)/third_party/icu/source/i18n \ 417 $(LOCAL_PATH)/third_party/icu/source/common 418 419 420# Flags passed to only C++ (and not C) files. 421LOCAL_CPPFLAGS_Release := \ 422 -fno-exceptions \ 423 -fno-rtti \ 424 -fno-threadsafe-statics \ 425 -fvisibility-inlines-hidden \ 426 -Wno-deprecated \ 427 -std=gnu++11 428 429 430LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 431# Undefine ANDROID for host modules 432LOCAL_CFLAGS += -UANDROID 433LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 434LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 435LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 436### Rules for final target. 437### Set directly by aosp_build_settings. 438LOCAL_CLANG := true 439 440# Add target alias to "gyp_all_modules" target. 441.PHONY: gyp_all_modules 442gyp_all_modules: v8_tools_gyp_v8_base_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 443 444# Alias gyp target name. 445.PHONY: v8_base 446v8_base: v8_tools_gyp_v8_base_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 447 448include $(BUILD_HOST_STATIC_LIBRARY) 449