Home | History | Annotate | Download | only in gyp
      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 := v8_tools_gyp_v8_base_mipsel_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TAGS := optional
      9 gyp_intermediate_dir := $(call local-intermediates-dir)
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES := \
     14 	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \
     15 	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp
     16 
     17 GYP_GENERATED_OUTPUTS :=
     18 
     19 # Make sure our deps and generated files are built first.
     20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     21 
     22 LOCAL_CPP_EXTENSION := .cc
     23 LOCAL_GENERATED_SOURCES :=
     24 
     25 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     26 
     27 LOCAL_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/ast.cc \
     36 	v8/src/atomicops_internals_x86_gcc.cc \
     37 	v8/src/bignum-dtoa.cc \
     38 	v8/src/bignum.cc \
     39 	v8/src/bootstrapper.cc \
     40 	v8/src/builtins.cc \
     41 	v8/src/cached-powers.cc \
     42 	v8/src/checks.cc \
     43 	v8/src/code-stubs.cc \
     44 	v8/src/code-stubs-hydrogen.cc \
     45 	v8/src/codegen.cc \
     46 	v8/src/compilation-cache.cc \
     47 	v8/src/compiler.cc \
     48 	v8/src/contexts.cc \
     49 	v8/src/conversions.cc \
     50 	v8/src/counters.cc \
     51 	v8/src/cpu-profiler.cc \
     52 	v8/src/cpu.cc \
     53 	v8/src/data-flow.cc \
     54 	v8/src/date.cc \
     55 	v8/src/dateparser.cc \
     56 	v8/src/debug-agent.cc \
     57 	v8/src/debug.cc \
     58 	v8/src/default-platform.cc \
     59 	v8/src/deoptimizer.cc \
     60 	v8/src/disassembler.cc \
     61 	v8/src/diy-fp.cc \
     62 	v8/src/dtoa.cc \
     63 	v8/src/elements-kind.cc \
     64 	v8/src/elements.cc \
     65 	v8/src/execution.cc \
     66 	v8/src/extensions/externalize-string-extension.cc \
     67 	v8/src/extensions/free-buffer-extension.cc \
     68 	v8/src/extensions/gc-extension.cc \
     69 	v8/src/extensions/statistics-extension.cc \
     70 	v8/src/factory.cc \
     71 	v8/src/fast-dtoa.cc \
     72 	v8/src/fixed-dtoa.cc \
     73 	v8/src/flags.cc \
     74 	v8/src/frames.cc \
     75 	v8/src/full-codegen.cc \
     76 	v8/src/func-name-inferrer.cc \
     77 	v8/src/gdb-jit.cc \
     78 	v8/src/global-handles.cc \
     79 	v8/src/handles.cc \
     80 	v8/src/heap-profiler.cc \
     81 	v8/src/heap-snapshot-generator.cc \
     82 	v8/src/heap.cc \
     83 	v8/src/hydrogen-bce.cc \
     84 	v8/src/hydrogen-bch.cc \
     85 	v8/src/hydrogen-canonicalize.cc \
     86 	v8/src/hydrogen-check-elimination.cc \
     87 	v8/src/hydrogen-dce.cc \
     88 	v8/src/hydrogen-dehoist.cc \
     89 	v8/src/hydrogen-environment-liveness.cc \
     90 	v8/src/hydrogen-escape-analysis.cc \
     91 	v8/src/hydrogen-instructions.cc \
     92 	v8/src/hydrogen.cc \
     93 	v8/src/hydrogen-gvn.cc \
     94 	v8/src/hydrogen-infer-representation.cc \
     95 	v8/src/hydrogen-infer-types.cc \
     96 	v8/src/hydrogen-load-elimination.cc \
     97 	v8/src/hydrogen-mark-deoptimize.cc \
     98 	v8/src/hydrogen-mark-unreachable.cc \
     99 	v8/src/hydrogen-minus-zero.cc \
    100 	v8/src/hydrogen-osr.cc \
    101 	v8/src/hydrogen-range-analysis.cc \
    102 	v8/src/hydrogen-redundant-phi.cc \
    103 	v8/src/hydrogen-removable-simulates.cc \
    104 	v8/src/hydrogen-representation-changes.cc \
    105 	v8/src/hydrogen-sce.cc \
    106 	v8/src/hydrogen-uint32-analysis.cc \
    107 	v8/src/i18n.cc \
    108 	v8/src/icu_util.cc \
    109 	v8/src/ic.cc \
    110 	v8/src/incremental-marking.cc \
    111 	v8/src/interface.cc \
    112 	v8/src/interpreter-irregexp.cc \
    113 	v8/src/isolate.cc \
    114 	v8/src/jsregexp.cc \
    115 	v8/src/lithium-allocator.cc \
    116 	v8/src/lithium-codegen.cc \
    117 	v8/src/lithium.cc \
    118 	v8/src/liveedit.cc \
    119 	v8/src/log-utils.cc \
    120 	v8/src/log.cc \
    121 	v8/src/mark-compact.cc \
    122 	v8/src/messages.cc \
    123 	v8/src/objects-debug.cc \
    124 	v8/src/objects-printer.cc \
    125 	v8/src/objects-visiting.cc \
    126 	v8/src/objects.cc \
    127 	v8/src/once.cc \
    128 	v8/src/optimizing-compiler-thread.cc \
    129 	v8/src/parser.cc \
    130 	v8/src/platform/time.cc \
    131 	v8/src/platform/condition-variable.cc \
    132 	v8/src/platform/mutex.cc \
    133 	v8/src/platform/semaphore.cc \
    134 	v8/src/platform/socket.cc \
    135 	v8/src/preparse-data.cc \
    136 	v8/src/preparser.cc \
    137 	v8/src/prettyprinter.cc \
    138 	v8/src/profile-generator.cc \
    139 	v8/src/property.cc \
    140 	v8/src/regexp-macro-assembler-irregexp.cc \
    141 	v8/src/regexp-macro-assembler-tracer.cc \
    142 	v8/src/regexp-macro-assembler.cc \
    143 	v8/src/regexp-stack.cc \
    144 	v8/src/rewriter.cc \
    145 	v8/src/runtime-profiler.cc \
    146 	v8/src/runtime.cc \
    147 	v8/src/safepoint-table.cc \
    148 	v8/src/sampler.cc \
    149 	v8/src/scanner-character-streams.cc \
    150 	v8/src/scanner.cc \
    151 	v8/src/scopeinfo.cc \
    152 	v8/src/scopes.cc \
    153 	v8/src/serialize.cc \
    154 	v8/src/snapshot-common.cc \
    155 	v8/src/spaces.cc \
    156 	v8/src/store-buffer.cc \
    157 	v8/src/string-search.cc \
    158 	v8/src/string-stream.cc \
    159 	v8/src/strtod.cc \
    160 	v8/src/stub-cache.cc \
    161 	v8/src/sweeper-thread.cc \
    162 	v8/src/token.cc \
    163 	v8/src/transitions.cc \
    164 	v8/src/type-info.cc \
    165 	v8/src/types.cc \
    166 	v8/src/typing.cc \
    167 	v8/src/unicode.cc \
    168 	v8/src/utils.cc \
    169 	v8/src/utils/random-number-generator.cc \
    170 	v8/src/v8-counters.cc \
    171 	v8/src/v8.cc \
    172 	v8/src/v8conversions.cc \
    173 	v8/src/v8threads.cc \
    174 	v8/src/v8utils.cc \
    175 	v8/src/variables.cc \
    176 	v8/src/version.cc \
    177 	v8/src/zone.cc \
    178 	v8/src/mips/assembler-mips.cc \
    179 	v8/src/mips/builtins-mips.cc \
    180 	v8/src/mips/codegen-mips.cc \
    181 	v8/src/mips/code-stubs-mips.cc \
    182 	v8/src/mips/constants-mips.cc \
    183 	v8/src/mips/cpu-mips.cc \
    184 	v8/src/mips/debug-mips.cc \
    185 	v8/src/mips/deoptimizer-mips.cc \
    186 	v8/src/mips/disasm-mips.cc \
    187 	v8/src/mips/frames-mips.cc \
    188 	v8/src/mips/full-codegen-mips.cc \
    189 	v8/src/mips/ic-mips.cc \
    190 	v8/src/mips/lithium-codegen-mips.cc \
    191 	v8/src/mips/lithium-gap-resolver-mips.cc \
    192 	v8/src/mips/lithium-mips.cc \
    193 	v8/src/mips/macro-assembler-mips.cc \
    194 	v8/src/mips/regexp-macro-assembler-mips.cc \
    195 	v8/src/mips/simulator-mips.cc \
    196 	v8/src/mips/stub-cache-mips.cc \
    197 	v8/src/platform-posix.cc \
    198 	v8/src/platform-linux.cc
    199 
    200 
    201 # Flags passed to both C and C++ files.
    202 MY_CFLAGS_Debug := \
    203 	-fstack-protector \
    204 	--param=ssp-buffer-size=4 \
    205 	 \
    206 	-fno-exceptions \
    207 	-fno-strict-aliasing \
    208 	-Wno-unused-parameter \
    209 	-Wno-missing-field-initializers \
    210 	-fvisibility=hidden \
    211 	-pipe \
    212 	-fPIC \
    213 	-Wno-format \
    214 	-EL \
    215 	-mhard-float \
    216 	-ffunction-sections \
    217 	-funwind-tables \
    218 	-g \
    219 	-fstack-protector \
    220 	-fno-short-enums \
    221 	-finline-limit=64 \
    222 	-Wa,--noexecstack \
    223 	-U_FORTIFY_SOURCE \
    224 	-Wno-extra \
    225 	-Wno-ignored-qualifiers \
    226 	-Wno-type-limits \
    227 	-Wno-address \
    228 	-Wno-format-security \
    229 	-Wno-return-type \
    230 	-Wno-sequence-point \
    231 	-Os \
    232 	-g \
    233 	-fomit-frame-pointer \
    234 	-fdata-sections \
    235 	-ffunction-sections
    236 
    237 MY_DEFS_Debug := \
    238 	'-DV8_DEPRECATION_WARNINGS' \
    239 	'-D_FILE_OFFSET_BITS=64' \
    240 	'-DNO_TCMALLOC' \
    241 	'-DDISABLE_NACL' \
    242 	'-DCHROMIUM_BUILD' \
    243 	'-DUSE_LIBJPEG_TURBO=1' \
    244 	'-DUSE_PROPRIETARY_CODECS' \
    245 	'-DENABLE_CONFIGURATION_POLICY' \
    246 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    247 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    248 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    249 	'-DUSE_OPENSSL=1' \
    250 	'-DENABLE_EGLIMAGE=1' \
    251 	'-DCLD_VERSION=1' \
    252 	'-DENABLE_PRINTING=1' \
    253 	'-DENABLE_MANAGED_USERS=1' \
    254 	'-DV8_TARGET_ARCH_MIPS' \
    255 	'-DCAN_USE_FPU_INSTRUCTIONS' \
    256 	'-D__mips_hard_float=1' \
    257 	'-DENABLE_DEBUGGER_SUPPORT' \
    258 	'-DV8_I18N_SUPPORT' \
    259 	'-DV8_USE_DEFAULT_PLATFORM' \
    260 	'-DCAN_USE_VFP_INSTRUCTIONS' \
    261 	'-DU_USING_ICU_NAMESPACE=0' \
    262 	'-DANDROID' \
    263 	'-D__GNU_SOURCE=1' \
    264 	'-DUSE_STLPORT=1' \
    265 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    266 	'-DCHROME_BUILD_ID=""' \
    267 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    268 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    269 	'-D_DEBUG' \
    270 	'-DENABLE_DISASSEMBLER' \
    271 	'-DV8_ENABLE_CHECKS' \
    272 	'-DOBJECT_PRINT' \
    273 	'-DVERIFY_HEAP' \
    274 	'-DENABLE_EXTRA_CHECKS' \
    275 	'-DENABLE_HANDLE_ZAPPING'
    276 
    277 
    278 # Include paths placed before CFLAGS/CPPFLAGS
    279 LOCAL_C_INCLUDES_Debug := \
    280 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    281 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    282 	$(LOCAL_PATH)/v8/src \
    283 	$(PWD)/external/icu4c/common \
    284 	$(PWD)/external/icu4c/i18n \
    285 	$(PWD)/frameworks/wilhelm/include \
    286 	$(PWD)/bionic \
    287 	$(PWD)/external/stlport/stlport
    288 
    289 
    290 # Flags passed to only C++ (and not C) files.
    291 LOCAL_CPPFLAGS_Debug := \
    292 	-fno-rtti \
    293 	-fno-threadsafe-statics \
    294 	-fvisibility-inlines-hidden \
    295 	-Wno-deprecated \
    296 	-Wno-uninitialized \
    297 	-Wno-error=c++0x-compat \
    298 	-Wno-non-virtual-dtor \
    299 	-Wno-sign-promo \
    300 	-Wno-non-virtual-dtor
    301 
    302 
    303 # Flags passed to both C and C++ files.
    304 MY_CFLAGS_Release := \
    305 	-fstack-protector \
    306 	--param=ssp-buffer-size=4 \
    307 	 \
    308 	-fno-exceptions \
    309 	-fno-strict-aliasing \
    310 	-Wno-unused-parameter \
    311 	-Wno-missing-field-initializers \
    312 	-fvisibility=hidden \
    313 	-pipe \
    314 	-fPIC \
    315 	-Wno-format \
    316 	-EL \
    317 	-mhard-float \
    318 	-ffunction-sections \
    319 	-funwind-tables \
    320 	-g \
    321 	-fstack-protector \
    322 	-fno-short-enums \
    323 	-finline-limit=64 \
    324 	-Wa,--noexecstack \
    325 	-U_FORTIFY_SOURCE \
    326 	-Wno-extra \
    327 	-Wno-ignored-qualifiers \
    328 	-Wno-type-limits \
    329 	-Wno-address \
    330 	-Wno-format-security \
    331 	-Wno-return-type \
    332 	-Wno-sequence-point \
    333 	-fno-ident \
    334 	-fdata-sections \
    335 	-ffunction-sections \
    336 	-fomit-frame-pointer \
    337 	-fdata-sections \
    338 	-ffunction-sections \
    339 	-O2
    340 
    341 MY_DEFS_Release := \
    342 	'-DV8_DEPRECATION_WARNINGS' \
    343 	'-D_FILE_OFFSET_BITS=64' \
    344 	'-DNO_TCMALLOC' \
    345 	'-DDISABLE_NACL' \
    346 	'-DCHROMIUM_BUILD' \
    347 	'-DUSE_LIBJPEG_TURBO=1' \
    348 	'-DUSE_PROPRIETARY_CODECS' \
    349 	'-DENABLE_CONFIGURATION_POLICY' \
    350 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    351 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    352 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    353 	'-DUSE_OPENSSL=1' \
    354 	'-DENABLE_EGLIMAGE=1' \
    355 	'-DCLD_VERSION=1' \
    356 	'-DENABLE_PRINTING=1' \
    357 	'-DENABLE_MANAGED_USERS=1' \
    358 	'-DV8_TARGET_ARCH_MIPS' \
    359 	'-DCAN_USE_FPU_INSTRUCTIONS' \
    360 	'-D__mips_hard_float=1' \
    361 	'-DENABLE_DEBUGGER_SUPPORT' \
    362 	'-DV8_I18N_SUPPORT' \
    363 	'-DV8_USE_DEFAULT_PLATFORM' \
    364 	'-DCAN_USE_VFP_INSTRUCTIONS' \
    365 	'-DU_USING_ICU_NAMESPACE=0' \
    366 	'-DANDROID' \
    367 	'-D__GNU_SOURCE=1' \
    368 	'-DUSE_STLPORT=1' \
    369 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    370 	'-DCHROME_BUILD_ID=""' \
    371 	'-DNDEBUG' \
    372 	'-DNVALGRIND' \
    373 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    374 
    375 
    376 # Include paths placed before CFLAGS/CPPFLAGS
    377 LOCAL_C_INCLUDES_Release := \
    378 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    379 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    380 	$(LOCAL_PATH)/v8/src \
    381 	$(PWD)/external/icu4c/common \
    382 	$(PWD)/external/icu4c/i18n \
    383 	$(PWD)/frameworks/wilhelm/include \
    384 	$(PWD)/bionic \
    385 	$(PWD)/external/stlport/stlport
    386 
    387 
    388 # Flags passed to only C++ (and not C) files.
    389 LOCAL_CPPFLAGS_Release := \
    390 	-fno-rtti \
    391 	-fno-threadsafe-statics \
    392 	-fvisibility-inlines-hidden \
    393 	-Wno-deprecated \
    394 	-Wno-uninitialized \
    395 	-Wno-error=c++0x-compat \
    396 	-Wno-non-virtual-dtor \
    397 	-Wno-sign-promo \
    398 	-Wno-non-virtual-dtor
    399 
    400 
    401 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    402 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    403 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    404 ### Rules for final target.
    405 
    406 LOCAL_LDFLAGS_Debug := \
    407 	-Wl,-z,now \
    408 	-Wl,-z,relro \
    409 	-Wl,-z,noexecstack \
    410 	-fPIC \
    411 	-EL \
    412 	-Wl,--no-keep-memory \
    413 	-nostdlib \
    414 	-Wl,--no-undefined \
    415 	-Wl,--exclude-libs=ALL \
    416 	-Wl,--fatal-warnings \
    417 	-Wl,--gc-sections \
    418 	-Wl,--warn-shared-textrel \
    419 	-Wl,-O1 \
    420 	-Wl,--as-needed
    421 
    422 
    423 LOCAL_LDFLAGS_Release := \
    424 	-Wl,-z,now \
    425 	-Wl,-z,relro \
    426 	-Wl,-z,noexecstack \
    427 	-fPIC \
    428 	-EL \
    429 	-Wl,--no-keep-memory \
    430 	-nostdlib \
    431 	-Wl,--no-undefined \
    432 	-Wl,--exclude-libs=ALL \
    433 	-Wl,-O1 \
    434 	-Wl,--as-needed \
    435 	-Wl,--gc-sections \
    436 	-Wl,--fatal-warnings \
    437 	-Wl,--warn-shared-textrel
    438 
    439 
    440 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    441 
    442 LOCAL_STATIC_LIBRARIES :=
    443 
    444 # Enable grouping to fix circular references
    445 LOCAL_GROUP_STATIC_LIBRARIES := true
    446 
    447 LOCAL_SHARED_LIBRARIES := \
    448 	libstlport \
    449 	libdl
    450 
    451 # Add target alias to "gyp_all_modules" target.
    452 .PHONY: gyp_all_modules
    453 gyp_all_modules: v8_tools_gyp_v8_base_mipsel_gyp
    454 
    455 # Alias gyp target name.
    456 .PHONY: v8_base.mipsel
    457 v8_base.mipsel: v8_tools_gyp_v8_base_mipsel_gyp
    458 
    459 include $(BUILD_STATIC_LIBRARY)
    460