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_snapshot_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 	$(gyp_shared_intermediate_dir)/mksnapshot.mipsel \
     15 	$(call intermediates-dir-for,GYP,v8_tools_gyp_js2c_host_gyp,true)/js2c.stamp \
     16 	$(call intermediates-dir-for,GYP,v8_tools_gyp_generate_trig_table_host_gyp,true)/generate_trig_table.stamp
     17 
     18 ### Rules for action "run_mksnapshot":
     19 $(gyp_intermediate_dir)/snapshot.cc: gyp_local_path := $(LOCAL_PATH)
     20 $(gyp_intermediate_dir)/snapshot.cc: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
     21 $(gyp_intermediate_dir)/snapshot.cc: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
     22 $(gyp_intermediate_dir)/snapshot.cc: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
     23 $(gyp_intermediate_dir)/snapshot.cc: $(gyp_shared_intermediate_dir)/mksnapshot.mipsel $(GYP_TARGET_DEPENDENCIES)
     24 	@echo "Gyp action: v8_tools_gyp_v8_gyp_v8_snapshot_target_run_mksnapshot ($@)"
     25 	$(hide)cd $(gyp_local_path)/v8/tools/gyp; mkdir -p $(gyp_intermediate_dir); "$(gyp_shared_intermediate_dir)/mksnapshot.mipsel" --log-snapshot-positions --logfile "$(gyp_intermediate_dir)/snapshot.log" --random-seed 314159265 "$(gyp_intermediate_dir)/snapshot.cc"
     26 
     27 
     28 
     29 GYP_GENERATED_OUTPUTS := \
     30 	$(gyp_intermediate_dir)/snapshot.cc
     31 
     32 # Make sure our deps and generated files are built first.
     33 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     34 
     35 LOCAL_CPP_EXTENSION := .cc
     36 $(gyp_intermediate_dir)/libraries.cc: $(gyp_shared_intermediate_dir)/libraries.cc
     37 	mkdir -p $(@D); cp $< $@
     38 $(gyp_intermediate_dir)/experimental-libraries.cc: $(gyp_shared_intermediate_dir)/experimental-libraries.cc
     39 	mkdir -p $(@D); cp $< $@
     40 $(gyp_intermediate_dir)/trig-table.cc: $(gyp_shared_intermediate_dir)/trig-table.cc
     41 	mkdir -p $(@D); cp $< $@
     42 LOCAL_GENERATED_SOURCES := \
     43 	$(gyp_intermediate_dir)/libraries.cc \
     44 	$(gyp_intermediate_dir)/experimental-libraries.cc \
     45 	$(gyp_intermediate_dir)/trig-table.cc \
     46 	$(gyp_intermediate_dir)/snapshot.cc
     47 
     48 GYP_COPIED_SOURCE_ORIGIN_DIRS := \
     49 	$(gyp_shared_intermediate_dir)
     50 
     51 LOCAL_SRC_FILES :=
     52 
     53 
     54 # Flags passed to both C and C++ files.
     55 MY_CFLAGS_Debug := \
     56 	-fstack-protector \
     57 	--param=ssp-buffer-size=4 \
     58 	 \
     59 	-fno-exceptions \
     60 	-fno-strict-aliasing \
     61 	-Wno-unused-parameter \
     62 	-Wno-missing-field-initializers \
     63 	-fvisibility=hidden \
     64 	-pipe \
     65 	-fPIC \
     66 	-Wno-format \
     67 	-EL \
     68 	-mhard-float \
     69 	-ffunction-sections \
     70 	-funwind-tables \
     71 	-g \
     72 	-fstack-protector \
     73 	-fno-short-enums \
     74 	-finline-limit=64 \
     75 	-Wa,--noexecstack \
     76 	-U_FORTIFY_SOURCE \
     77 	-Wno-extra \
     78 	-Wno-ignored-qualifiers \
     79 	-Wno-type-limits \
     80 	-Wno-address \
     81 	-Wno-format-security \
     82 	-Wno-return-type \
     83 	-Wno-sequence-point \
     84 	-Os \
     85 	-g \
     86 	-fomit-frame-pointer \
     87 	-fdata-sections \
     88 	-ffunction-sections
     89 
     90 MY_DEFS_Debug := \
     91 	'-DV8_DEPRECATION_WARNINGS' \
     92 	'-D_FILE_OFFSET_BITS=64' \
     93 	'-DNO_TCMALLOC' \
     94 	'-DDISABLE_NACL' \
     95 	'-DCHROMIUM_BUILD' \
     96 	'-DUSE_LIBJPEG_TURBO=1' \
     97 	'-DUSE_PROPRIETARY_CODECS' \
     98 	'-DENABLE_CONFIGURATION_POLICY' \
     99 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    100 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    101 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    102 	'-DUSE_OPENSSL=1' \
    103 	'-DENABLE_EGLIMAGE=1' \
    104 	'-DCLD_VERSION=1' \
    105 	'-DENABLE_PRINTING=1' \
    106 	'-DENABLE_MANAGED_USERS=1' \
    107 	'-DV8_TARGET_ARCH_MIPS' \
    108 	'-DCAN_USE_FPU_INSTRUCTIONS' \
    109 	'-D__mips_hard_float=1' \
    110 	'-DENABLE_DEBUGGER_SUPPORT' \
    111 	'-DV8_I18N_SUPPORT' \
    112 	'-DV8_USE_DEFAULT_PLATFORM' \
    113 	'-DANDROID' \
    114 	'-D__GNU_SOURCE=1' \
    115 	'-DUSE_STLPORT=1' \
    116 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    117 	'-DCHROME_BUILD_ID=""' \
    118 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    119 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    120 	'-D_DEBUG' \
    121 	'-DENABLE_DISASSEMBLER' \
    122 	'-DV8_ENABLE_CHECKS' \
    123 	'-DOBJECT_PRINT' \
    124 	'-DVERIFY_HEAP' \
    125 	'-DENABLE_EXTRA_CHECKS' \
    126 	'-DENABLE_HANDLE_ZAPPING'
    127 
    128 
    129 # Include paths placed before CFLAGS/CPPFLAGS
    130 LOCAL_C_INCLUDES_Debug := \
    131 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    132 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    133 	$(LOCAL_PATH)/v8/src \
    134 	$(PWD)/frameworks/wilhelm/include \
    135 	$(PWD)/bionic \
    136 	$(PWD)/external/stlport/stlport
    137 
    138 
    139 # Flags passed to only C++ (and not C) files.
    140 LOCAL_CPPFLAGS_Debug := \
    141 	-fno-rtti \
    142 	-fno-threadsafe-statics \
    143 	-fvisibility-inlines-hidden \
    144 	-Wno-deprecated \
    145 	-Wno-uninitialized \
    146 	-Wno-error=c++0x-compat \
    147 	-Wno-non-virtual-dtor \
    148 	-Wno-sign-promo \
    149 	-Wno-non-virtual-dtor
    150 
    151 
    152 # Flags passed to both C and C++ files.
    153 MY_CFLAGS_Release := \
    154 	-fstack-protector \
    155 	--param=ssp-buffer-size=4 \
    156 	 \
    157 	-fno-exceptions \
    158 	-fno-strict-aliasing \
    159 	-Wno-unused-parameter \
    160 	-Wno-missing-field-initializers \
    161 	-fvisibility=hidden \
    162 	-pipe \
    163 	-fPIC \
    164 	-Wno-format \
    165 	-EL \
    166 	-mhard-float \
    167 	-ffunction-sections \
    168 	-funwind-tables \
    169 	-g \
    170 	-fstack-protector \
    171 	-fno-short-enums \
    172 	-finline-limit=64 \
    173 	-Wa,--noexecstack \
    174 	-U_FORTIFY_SOURCE \
    175 	-Wno-extra \
    176 	-Wno-ignored-qualifiers \
    177 	-Wno-type-limits \
    178 	-Wno-address \
    179 	-Wno-format-security \
    180 	-Wno-return-type \
    181 	-Wno-sequence-point \
    182 	-fno-ident \
    183 	-fdata-sections \
    184 	-ffunction-sections \
    185 	-fomit-frame-pointer \
    186 	-fdata-sections \
    187 	-ffunction-sections \
    188 	-O2
    189 
    190 MY_DEFS_Release := \
    191 	'-DV8_DEPRECATION_WARNINGS' \
    192 	'-D_FILE_OFFSET_BITS=64' \
    193 	'-DNO_TCMALLOC' \
    194 	'-DDISABLE_NACL' \
    195 	'-DCHROMIUM_BUILD' \
    196 	'-DUSE_LIBJPEG_TURBO=1' \
    197 	'-DUSE_PROPRIETARY_CODECS' \
    198 	'-DENABLE_CONFIGURATION_POLICY' \
    199 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    200 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    201 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    202 	'-DUSE_OPENSSL=1' \
    203 	'-DENABLE_EGLIMAGE=1' \
    204 	'-DCLD_VERSION=1' \
    205 	'-DENABLE_PRINTING=1' \
    206 	'-DENABLE_MANAGED_USERS=1' \
    207 	'-DV8_TARGET_ARCH_MIPS' \
    208 	'-DCAN_USE_FPU_INSTRUCTIONS' \
    209 	'-D__mips_hard_float=1' \
    210 	'-DENABLE_DEBUGGER_SUPPORT' \
    211 	'-DV8_I18N_SUPPORT' \
    212 	'-DV8_USE_DEFAULT_PLATFORM' \
    213 	'-DANDROID' \
    214 	'-D__GNU_SOURCE=1' \
    215 	'-DUSE_STLPORT=1' \
    216 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    217 	'-DCHROME_BUILD_ID=""' \
    218 	'-DNDEBUG' \
    219 	'-DNVALGRIND' \
    220 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    221 
    222 
    223 # Include paths placed before CFLAGS/CPPFLAGS
    224 LOCAL_C_INCLUDES_Release := \
    225 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    226 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    227 	$(LOCAL_PATH)/v8/src \
    228 	$(PWD)/frameworks/wilhelm/include \
    229 	$(PWD)/bionic \
    230 	$(PWD)/external/stlport/stlport
    231 
    232 
    233 # Flags passed to only C++ (and not C) files.
    234 LOCAL_CPPFLAGS_Release := \
    235 	-fno-rtti \
    236 	-fno-threadsafe-statics \
    237 	-fvisibility-inlines-hidden \
    238 	-Wno-deprecated \
    239 	-Wno-uninitialized \
    240 	-Wno-error=c++0x-compat \
    241 	-Wno-non-virtual-dtor \
    242 	-Wno-sign-promo \
    243 	-Wno-non-virtual-dtor
    244 
    245 
    246 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    247 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    248 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    249 ### Rules for final target.
    250 
    251 LOCAL_LDFLAGS_Debug := \
    252 	-Wl,-z,now \
    253 	-Wl,-z,relro \
    254 	-Wl,-z,noexecstack \
    255 	-fPIC \
    256 	-EL \
    257 	-Wl,--no-keep-memory \
    258 	-nostdlib \
    259 	-Wl,--no-undefined \
    260 	-Wl,--exclude-libs=ALL \
    261 	-Wl,--fatal-warnings \
    262 	-Wl,--gc-sections \
    263 	-Wl,--warn-shared-textrel \
    264 	-Wl,-O1 \
    265 	-Wl,--as-needed
    266 
    267 
    268 LOCAL_LDFLAGS_Release := \
    269 	-Wl,-z,now \
    270 	-Wl,-z,relro \
    271 	-Wl,-z,noexecstack \
    272 	-fPIC \
    273 	-EL \
    274 	-Wl,--no-keep-memory \
    275 	-nostdlib \
    276 	-Wl,--no-undefined \
    277 	-Wl,--exclude-libs=ALL \
    278 	-Wl,-O1 \
    279 	-Wl,--as-needed \
    280 	-Wl,--gc-sections \
    281 	-Wl,--fatal-warnings \
    282 	-Wl,--warn-shared-textrel
    283 
    284 
    285 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    286 
    287 LOCAL_STATIC_LIBRARIES :=
    288 
    289 # Enable grouping to fix circular references
    290 LOCAL_GROUP_STATIC_LIBRARIES := true
    291 
    292 LOCAL_SHARED_LIBRARIES := \
    293 	libstlport \
    294 	libdl
    295 
    296 # Add target alias to "gyp_all_modules" target.
    297 .PHONY: gyp_all_modules
    298 gyp_all_modules: v8_tools_gyp_v8_snapshot_gyp
    299 
    300 # Alias gyp target name.
    301 .PHONY: v8_snapshot
    302 v8_snapshot: v8_tools_gyp_v8_snapshot_gyp
    303 
    304 include $(BUILD_STATIC_LIBRARY)
    305