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_host_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_IS_HOST_MODULE := true 10 gyp_intermediate_dir := $(call local-intermediates-dir) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 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_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_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/ast.cc \ 35 v8/src/atomicops_internals_x86_gcc.cc \ 36 v8/src/bignum-dtoa.cc \ 37 v8/src/bignum.cc \ 38 v8/src/bootstrapper.cc \ 39 v8/src/builtins.cc \ 40 v8/src/cached-powers.cc \ 41 v8/src/checks.cc \ 42 v8/src/code-stubs.cc \ 43 v8/src/code-stubs-hydrogen.cc \ 44 v8/src/codegen.cc \ 45 v8/src/compilation-cache.cc \ 46 v8/src/compiler.cc \ 47 v8/src/contexts.cc \ 48 v8/src/conversions.cc \ 49 v8/src/counters.cc \ 50 v8/src/cpu-profiler.cc \ 51 v8/src/cpu.cc \ 52 v8/src/data-flow.cc \ 53 v8/src/date.cc \ 54 v8/src/dateparser.cc \ 55 v8/src/debug-agent.cc \ 56 v8/src/debug.cc \ 57 v8/src/default-platform.cc \ 58 v8/src/deoptimizer.cc \ 59 v8/src/disassembler.cc \ 60 v8/src/diy-fp.cc \ 61 v8/src/dtoa.cc \ 62 v8/src/elements-kind.cc \ 63 v8/src/elements.cc \ 64 v8/src/execution.cc \ 65 v8/src/extensions/externalize-string-extension.cc \ 66 v8/src/extensions/free-buffer-extension.cc \ 67 v8/src/extensions/gc-extension.cc \ 68 v8/src/extensions/statistics-extension.cc \ 69 v8/src/factory.cc \ 70 v8/src/fast-dtoa.cc \ 71 v8/src/fixed-dtoa.cc \ 72 v8/src/flags.cc \ 73 v8/src/frames.cc \ 74 v8/src/full-codegen.cc \ 75 v8/src/func-name-inferrer.cc \ 76 v8/src/gdb-jit.cc \ 77 v8/src/global-handles.cc \ 78 v8/src/handles.cc \ 79 v8/src/heap-profiler.cc \ 80 v8/src/heap-snapshot-generator.cc \ 81 v8/src/heap.cc \ 82 v8/src/hydrogen-bce.cc \ 83 v8/src/hydrogen-bch.cc \ 84 v8/src/hydrogen-canonicalize.cc \ 85 v8/src/hydrogen-check-elimination.cc \ 86 v8/src/hydrogen-dce.cc \ 87 v8/src/hydrogen-dehoist.cc \ 88 v8/src/hydrogen-environment-liveness.cc \ 89 v8/src/hydrogen-escape-analysis.cc \ 90 v8/src/hydrogen-instructions.cc \ 91 v8/src/hydrogen.cc \ 92 v8/src/hydrogen-gvn.cc \ 93 v8/src/hydrogen-infer-representation.cc \ 94 v8/src/hydrogen-infer-types.cc \ 95 v8/src/hydrogen-load-elimination.cc \ 96 v8/src/hydrogen-mark-deoptimize.cc \ 97 v8/src/hydrogen-mark-unreachable.cc \ 98 v8/src/hydrogen-minus-zero.cc \ 99 v8/src/hydrogen-osr.cc \ 100 v8/src/hydrogen-range-analysis.cc \ 101 v8/src/hydrogen-redundant-phi.cc \ 102 v8/src/hydrogen-removable-simulates.cc \ 103 v8/src/hydrogen-representation-changes.cc \ 104 v8/src/hydrogen-sce.cc \ 105 v8/src/hydrogen-uint32-analysis.cc \ 106 v8/src/i18n.cc \ 107 v8/src/icu_util.cc \ 108 v8/src/ic.cc \ 109 v8/src/incremental-marking.cc \ 110 v8/src/interface.cc \ 111 v8/src/interpreter-irregexp.cc \ 112 v8/src/isolate.cc \ 113 v8/src/jsregexp.cc \ 114 v8/src/lithium-allocator.cc \ 115 v8/src/lithium-codegen.cc \ 116 v8/src/lithium.cc \ 117 v8/src/liveedit.cc \ 118 v8/src/log-utils.cc \ 119 v8/src/log.cc \ 120 v8/src/mark-compact.cc \ 121 v8/src/messages.cc \ 122 v8/src/objects-debug.cc \ 123 v8/src/objects-printer.cc \ 124 v8/src/objects-visiting.cc \ 125 v8/src/objects.cc \ 126 v8/src/once.cc \ 127 v8/src/optimizing-compiler-thread.cc \ 128 v8/src/parser.cc \ 129 v8/src/platform/time.cc \ 130 v8/src/platform/condition-variable.cc \ 131 v8/src/platform/mutex.cc \ 132 v8/src/platform/semaphore.cc \ 133 v8/src/platform/socket.cc \ 134 v8/src/preparse-data.cc \ 135 v8/src/preparser.cc \ 136 v8/src/prettyprinter.cc \ 137 v8/src/profile-generator.cc \ 138 v8/src/property.cc \ 139 v8/src/regexp-macro-assembler-irregexp.cc \ 140 v8/src/regexp-macro-assembler-tracer.cc \ 141 v8/src/regexp-macro-assembler.cc \ 142 v8/src/regexp-stack.cc \ 143 v8/src/rewriter.cc \ 144 v8/src/runtime-profiler.cc \ 145 v8/src/runtime.cc \ 146 v8/src/safepoint-table.cc \ 147 v8/src/sampler.cc \ 148 v8/src/scanner-character-streams.cc \ 149 v8/src/scanner.cc \ 150 v8/src/scopeinfo.cc \ 151 v8/src/scopes.cc \ 152 v8/src/serialize.cc \ 153 v8/src/snapshot-common.cc \ 154 v8/src/spaces.cc \ 155 v8/src/store-buffer.cc \ 156 v8/src/string-search.cc \ 157 v8/src/string-stream.cc \ 158 v8/src/strtod.cc \ 159 v8/src/stub-cache.cc \ 160 v8/src/sweeper-thread.cc \ 161 v8/src/token.cc \ 162 v8/src/transitions.cc \ 163 v8/src/type-info.cc \ 164 v8/src/types.cc \ 165 v8/src/typing.cc \ 166 v8/src/unicode.cc \ 167 v8/src/utils.cc \ 168 v8/src/utils/random-number-generator.cc \ 169 v8/src/v8-counters.cc \ 170 v8/src/v8.cc \ 171 v8/src/v8conversions.cc \ 172 v8/src/v8threads.cc \ 173 v8/src/v8utils.cc \ 174 v8/src/variables.cc \ 175 v8/src/version.cc \ 176 v8/src/zone.cc \ 177 v8/src/mips/assembler-mips.cc \ 178 v8/src/mips/builtins-mips.cc \ 179 v8/src/mips/codegen-mips.cc \ 180 v8/src/mips/code-stubs-mips.cc \ 181 v8/src/mips/constants-mips.cc \ 182 v8/src/mips/cpu-mips.cc \ 183 v8/src/mips/debug-mips.cc \ 184 v8/src/mips/deoptimizer-mips.cc \ 185 v8/src/mips/disasm-mips.cc \ 186 v8/src/mips/frames-mips.cc \ 187 v8/src/mips/full-codegen-mips.cc \ 188 v8/src/mips/ic-mips.cc \ 189 v8/src/mips/lithium-codegen-mips.cc \ 190 v8/src/mips/lithium-gap-resolver-mips.cc \ 191 v8/src/mips/lithium-mips.cc \ 192 v8/src/mips/macro-assembler-mips.cc \ 193 v8/src/mips/regexp-macro-assembler-mips.cc \ 194 v8/src/mips/simulator-mips.cc \ 195 v8/src/mips/stub-cache-mips.cc \ 196 v8/src/platform-posix.cc \ 197 v8/src/platform-macos.cc 198 199 200 # Flags passed to both C and C++ files. 201 MY_CFLAGS_Debug := \ 202 -fstack-protector \ 203 --param=ssp-buffer-size=4 \ 204 \ 205 -pthread \ 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 -m32 \ 215 -Os \ 216 -g \ 217 -fomit-frame-pointer \ 218 -fdata-sections \ 219 -ffunction-sections 220 221 MY_DEFS_Debug := \ 222 '-DV8_DEPRECATION_WARNINGS' \ 223 '-D_FILE_OFFSET_BITS=64' \ 224 '-DNO_TCMALLOC' \ 225 '-DDISABLE_NACL' \ 226 '-DCHROMIUM_BUILD' \ 227 '-DUSE_LIBJPEG_TURBO=1' \ 228 '-DUSE_PROPRIETARY_CODECS' \ 229 '-DENABLE_CONFIGURATION_POLICY' \ 230 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 231 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 232 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 233 '-DUSE_OPENSSL=1' \ 234 '-DENABLE_EGLIMAGE=1' \ 235 '-DCLD_VERSION=1' \ 236 '-DENABLE_PRINTING=1' \ 237 '-DENABLE_MANAGED_USERS=1' \ 238 '-DV8_TARGET_ARCH_MIPS' \ 239 '-DCAN_USE_FPU_INSTRUCTIONS' \ 240 '-D__mips_hard_float=1' \ 241 '-DENABLE_DEBUGGER_SUPPORT' \ 242 '-DV8_I18N_SUPPORT' \ 243 '-DV8_USE_DEFAULT_PLATFORM' \ 244 '-DCAN_USE_VFP_INSTRUCTIONS' \ 245 '-DU_USING_ICU_NAMESPACE=0' \ 246 '-DU_STATIC_IMPLEMENTATION' \ 247 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 248 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 249 '-D_DEBUG' \ 250 '-DENABLE_DISASSEMBLER' \ 251 '-DV8_ENABLE_CHECKS' \ 252 '-DOBJECT_PRINT' \ 253 '-DVERIFY_HEAP' \ 254 '-DENABLE_EXTRA_CHECKS' \ 255 '-DENABLE_HANDLE_ZAPPING' 256 257 258 # Include paths placed before CFLAGS/CPPFLAGS 259 LOCAL_C_INCLUDES_Debug := \ 260 $(LOCAL_PATH)/v8/src \ 261 $(LOCAL_PATH)/third_party/icu/source/i18n \ 262 $(LOCAL_PATH)/third_party/icu/source/common 263 264 265 # Flags passed to only C++ (and not C) files. 266 LOCAL_CPPFLAGS_Debug := \ 267 -fno-rtti \ 268 -fno-threadsafe-statics \ 269 -fvisibility-inlines-hidden \ 270 -Wno-deprecated 271 272 273 # Flags passed to both C and C++ files. 274 MY_CFLAGS_Release := \ 275 -fstack-protector \ 276 --param=ssp-buffer-size=4 \ 277 \ 278 -pthread \ 279 -fno-exceptions \ 280 -fno-strict-aliasing \ 281 -Wno-unused-parameter \ 282 -Wno-missing-field-initializers \ 283 -fvisibility=hidden \ 284 -pipe \ 285 -fPIC \ 286 -Wno-format \ 287 -m32 \ 288 -fno-ident \ 289 -fdata-sections \ 290 -ffunction-sections \ 291 -fomit-frame-pointer \ 292 -fdata-sections \ 293 -ffunction-sections \ 294 -O2 295 296 MY_DEFS_Release := \ 297 '-DV8_DEPRECATION_WARNINGS' \ 298 '-D_FILE_OFFSET_BITS=64' \ 299 '-DNO_TCMALLOC' \ 300 '-DDISABLE_NACL' \ 301 '-DCHROMIUM_BUILD' \ 302 '-DUSE_LIBJPEG_TURBO=1' \ 303 '-DUSE_PROPRIETARY_CODECS' \ 304 '-DENABLE_CONFIGURATION_POLICY' \ 305 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 306 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 307 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 308 '-DUSE_OPENSSL=1' \ 309 '-DENABLE_EGLIMAGE=1' \ 310 '-DCLD_VERSION=1' \ 311 '-DENABLE_PRINTING=1' \ 312 '-DENABLE_MANAGED_USERS=1' \ 313 '-DV8_TARGET_ARCH_MIPS' \ 314 '-DCAN_USE_FPU_INSTRUCTIONS' \ 315 '-D__mips_hard_float=1' \ 316 '-DENABLE_DEBUGGER_SUPPORT' \ 317 '-DV8_I18N_SUPPORT' \ 318 '-DV8_USE_DEFAULT_PLATFORM' \ 319 '-DCAN_USE_VFP_INSTRUCTIONS' \ 320 '-DU_USING_ICU_NAMESPACE=0' \ 321 '-DU_STATIC_IMPLEMENTATION' \ 322 '-DNDEBUG' \ 323 '-DNVALGRIND' \ 324 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 325 326 327 # Include paths placed before CFLAGS/CPPFLAGS 328 LOCAL_C_INCLUDES_Release := \ 329 $(LOCAL_PATH)/v8/src \ 330 $(LOCAL_PATH)/third_party/icu/source/i18n \ 331 $(LOCAL_PATH)/third_party/icu/source/common 332 333 334 # Flags passed to only C++ (and not C) files. 335 LOCAL_CPPFLAGS_Release := \ 336 -fno-rtti \ 337 -fno-threadsafe-statics \ 338 -fvisibility-inlines-hidden \ 339 -Wno-deprecated 340 341 342 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 343 # Undefine ANDROID for host modules 344 LOCAL_CFLAGS += -UANDROID 345 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 346 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 347 ### Rules for final target. 348 349 LOCAL_LDFLAGS_Debug := \ 350 -pthread \ 351 -fPIC \ 352 -m32 353 354 355 LOCAL_LDFLAGS_Release := \ 356 -pthread \ 357 -fPIC \ 358 -m32 359 360 361 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 362 363 LOCAL_STATIC_LIBRARIES := 364 365 # Enable grouping to fix circular references 366 LOCAL_GROUP_STATIC_LIBRARIES := true 367 368 LOCAL_SHARED_LIBRARIES := 369 370 # Add target alias to "gyp_all_modules" target. 371 .PHONY: gyp_all_modules 372 gyp_all_modules: v8_tools_gyp_v8_base_mipsel_host_gyp 373 374 # Alias gyp target name. 375 .PHONY: v8_base.mipsel 376 v8_base.mipsel: v8_tools_gyp_v8_base_mipsel_host_gyp 377 378 include $(BUILD_HOST_STATIC_LIBRARY) 379