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.ia32 \ 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.ia32 $(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.ia32" --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 --param=ssp-buffer-size=4 \ 57 -fno-exceptions \ 58 -fno-strict-aliasing \ 59 -Wno-unused-parameter \ 60 -Wno-missing-field-initializers \ 61 -fvisibility=hidden \ 62 -pipe \ 63 -fPIC \ 64 -Wno-format \ 65 -m32 \ 66 -mmmx \ 67 -march=pentium4 \ 68 -msse2 \ 69 -mfpmath=sse \ 70 -fuse-ld=gold \ 71 -ffunction-sections \ 72 -funwind-tables \ 73 -g \ 74 -fno-short-enums \ 75 -finline-limit=64 \ 76 -Wa,--noexecstack \ 77 -U_FORTIFY_SOURCE \ 78 -Wno-extra \ 79 -Wno-ignored-qualifiers \ 80 -Wno-type-limits \ 81 -fno-stack-protector \ 82 -Wno-address \ 83 -Wno-format-security \ 84 -Wno-return-type \ 85 -Wno-sequence-point \ 86 -Os \ 87 -g \ 88 -fomit-frame-pointer \ 89 -fdata-sections \ 90 -ffunction-sections 91 92 MY_DEFS_Debug := \ 93 '-DV8_DEPRECATION_WARNINGS' \ 94 '-D_FILE_OFFSET_BITS=64' \ 95 '-DNO_TCMALLOC' \ 96 '-DDISABLE_NACL' \ 97 '-DCHROMIUM_BUILD' \ 98 '-DUSE_LIBJPEG_TURBO=1' \ 99 '-DUSE_PROPRIETARY_CODECS' \ 100 '-DENABLE_CONFIGURATION_POLICY' \ 101 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 102 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 103 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 104 '-DUSE_OPENSSL=1' \ 105 '-DENABLE_EGLIMAGE=1' \ 106 '-DCLD_VERSION=1' \ 107 '-DENABLE_PRINTING=1' \ 108 '-DENABLE_MANAGED_USERS=1' \ 109 '-DV8_TARGET_ARCH_IA32' \ 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-error=c++0x-compat \ 146 -Wno-non-virtual-dtor \ 147 -Wno-sign-promo \ 148 -Wno-non-virtual-dtor 149 150 151 # Flags passed to both C and C++ files. 152 MY_CFLAGS_Release := \ 153 --param=ssp-buffer-size=4 \ 154 -fno-exceptions \ 155 -fno-strict-aliasing \ 156 -Wno-unused-parameter \ 157 -Wno-missing-field-initializers \ 158 -fvisibility=hidden \ 159 -pipe \ 160 -fPIC \ 161 -Wno-format \ 162 -m32 \ 163 -mmmx \ 164 -march=pentium4 \ 165 -msse2 \ 166 -mfpmath=sse \ 167 -fuse-ld=gold \ 168 -ffunction-sections \ 169 -funwind-tables \ 170 -g \ 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 -fno-stack-protector \ 179 -Wno-address \ 180 -Wno-format-security \ 181 -Wno-return-type \ 182 -Wno-sequence-point \ 183 -fno-ident \ 184 -fdata-sections \ 185 -ffunction-sections \ 186 -fomit-frame-pointer \ 187 -fno-unwind-tables \ 188 -fno-asynchronous-unwind-tables \ 189 -fdata-sections \ 190 -ffunction-sections \ 191 -O2 192 193 MY_DEFS_Release := \ 194 '-DV8_DEPRECATION_WARNINGS' \ 195 '-D_FILE_OFFSET_BITS=64' \ 196 '-DNO_TCMALLOC' \ 197 '-DDISABLE_NACL' \ 198 '-DCHROMIUM_BUILD' \ 199 '-DUSE_LIBJPEG_TURBO=1' \ 200 '-DUSE_PROPRIETARY_CODECS' \ 201 '-DENABLE_CONFIGURATION_POLICY' \ 202 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 203 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 204 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 205 '-DUSE_OPENSSL=1' \ 206 '-DENABLE_EGLIMAGE=1' \ 207 '-DCLD_VERSION=1' \ 208 '-DENABLE_PRINTING=1' \ 209 '-DENABLE_MANAGED_USERS=1' \ 210 '-DV8_TARGET_ARCH_IA32' \ 211 '-DENABLE_DEBUGGER_SUPPORT' \ 212 '-DV8_I18N_SUPPORT' \ 213 '-DV8_USE_DEFAULT_PLATFORM' \ 214 '-DANDROID' \ 215 '-D__GNU_SOURCE=1' \ 216 '-DUSE_STLPORT=1' \ 217 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 218 '-DCHROME_BUILD_ID=""' \ 219 '-DNDEBUG' \ 220 '-DNVALGRIND' \ 221 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 222 223 224 # Include paths placed before CFLAGS/CPPFLAGS 225 LOCAL_C_INCLUDES_Release := \ 226 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 227 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 228 $(LOCAL_PATH)/v8/src \ 229 $(PWD)/frameworks/wilhelm/include \ 230 $(PWD)/bionic \ 231 $(PWD)/external/stlport/stlport 232 233 234 # Flags passed to only C++ (and not C) files. 235 LOCAL_CPPFLAGS_Release := \ 236 -fno-rtti \ 237 -fno-threadsafe-statics \ 238 -fvisibility-inlines-hidden \ 239 -Wno-deprecated \ 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 -m32 \ 257 -fuse-ld=gold \ 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 -m32 \ 274 -fuse-ld=gold \ 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