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