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.arm \ 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.arm $(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.arm" --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 -fno-exceptions \ 59 -fno-strict-aliasing \ 60 -Wno-unused-parameter \ 61 -Wno-missing-field-initializers \ 62 -fvisibility=hidden \ 63 -pipe \ 64 -fPIC \ 65 -Wno-format \ 66 -fno-tree-sra \ 67 -fuse-ld=gold \ 68 -Wno-psabi \ 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_ARM' \ 108 '-DENABLE_DEBUGGER_SUPPORT' \ 109 '-DV8_I18N_SUPPORT' \ 110 '-DV8_USE_DEFAULT_PLATFORM' \ 111 '-DANDROID' \ 112 '-D__GNU_SOURCE=1' \ 113 '-DUSE_STLPORT=1' \ 114 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 115 '-DCHROME_BUILD_ID=""' \ 116 '-DARM_TEST' \ 117 '-DCAN_USE_ARMV7_INSTRUCTIONS=1' \ 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-abi \ 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 -fno-exceptions \ 157 -fno-strict-aliasing \ 158 -Wno-unused-parameter \ 159 -Wno-missing-field-initializers \ 160 -fvisibility=hidden \ 161 -pipe \ 162 -fPIC \ 163 -Wno-format \ 164 -fno-tree-sra \ 165 -fuse-ld=gold \ 166 -Wno-psabi \ 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_ARM' \ 208 '-DENABLE_DEBUGGER_SUPPORT' \ 209 '-DV8_I18N_SUPPORT' \ 210 '-DV8_USE_DEFAULT_PLATFORM' \ 211 '-DANDROID' \ 212 '-D__GNU_SOURCE=1' \ 213 '-DUSE_STLPORT=1' \ 214 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 215 '-DCHROME_BUILD_ID=""' \ 216 '-DARM_TEST' \ 217 '-DCAN_USE_ARMV7_INSTRUCTIONS=1' \ 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-abi \ 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 -Wl,-z,relro \ 257 -Wl,-z,now \ 258 -fuse-ld=gold \ 259 -nostdlib \ 260 -Wl,--no-undefined \ 261 -Wl,--exclude-libs=ALL \ 262 -Wl,--icf=safe \ 263 -Wl,--fatal-warnings \ 264 -Wl,--gc-sections \ 265 -Wl,--warn-shared-textrel \ 266 -Wl,-O1 \ 267 -Wl,--as-needed 268 269 270 LOCAL_LDFLAGS_Release := \ 271 -Wl,-z,now \ 272 -Wl,-z,relro \ 273 -Wl,-z,noexecstack \ 274 -fPIC \ 275 -Wl,-z,relro \ 276 -Wl,-z,now \ 277 -fuse-ld=gold \ 278 -nostdlib \ 279 -Wl,--no-undefined \ 280 -Wl,--exclude-libs=ALL \ 281 -Wl,--icf=safe \ 282 -Wl,-O1 \ 283 -Wl,--as-needed \ 284 -Wl,--gc-sections \ 285 -Wl,--fatal-warnings \ 286 -Wl,--warn-shared-textrel 287 288 289 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 290 291 LOCAL_STATIC_LIBRARIES := 292 293 # Enable grouping to fix circular references 294 LOCAL_GROUP_STATIC_LIBRARIES := true 295 296 LOCAL_SHARED_LIBRARIES := \ 297 libstlport \ 298 libdl 299 300 # Add target alias to "gyp_all_modules" target. 301 .PHONY: gyp_all_modules 302 gyp_all_modules: v8_tools_gyp_v8_snapshot_gyp 303 304 # Alias gyp target name. 305 .PHONY: v8_snapshot 306 v8_snapshot: v8_tools_gyp_v8_snapshot_gyp 307 308 include $(BUILD_STATIC_LIBRARY) 309