1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := EXECUTABLES 6 LOCAL_MODULE := v8_tools_gyp_mksnapshot_arm_host_gyp 7 LOCAL_MODULE_STEM := mksnapshot.arm 8 LOCAL_MODULE_SUFFIX := 9 LOCAL_MODULE_TAGS := optional 10 LOCAL_IS_HOST_MODULE := true 11 gyp_intermediate_dir := $(call local-intermediates-dir) 12 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 13 14 # Make sure our deps are built first. 15 GYP_TARGET_DEPENDENCIES := \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_base_arm_host_gyp,true)/v8_tools_gyp_v8_base_arm_host_gyp.a \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_nosnapshot_arm_host_gyp,true)/v8_tools_gyp_v8_nosnapshot_arm_host_gyp.a \ 18 $(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icui18n_host_gyp,true)/third_party_icu_icui18n_host_gyp.a \ 19 $(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icuuc_host_gyp,true)/third_party_icu_icuuc_host_gyp.a \ 20 $(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icudata_host_gyp,true)/third_party_icu_icudata_host_gyp.a \ 21 $(call intermediates-dir-for,GYP,v8_tools_gyp_js2c_host_gyp,true)/js2c.stamp \ 22 $(call intermediates-dir-for,GYP,v8_tools_gyp_generate_trig_table_host_gyp,true)/generate_trig_table.stamp 23 24 GYP_GENERATED_OUTPUTS := 25 26 # Make sure our deps and generated files are built first. 27 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 28 29 LOCAL_CPP_EXTENSION := .cc 30 LOCAL_GENERATED_SOURCES := 31 32 GYP_COPIED_SOURCE_ORIGIN_DIRS := 33 34 LOCAL_SRC_FILES := \ 35 v8/src/mksnapshot.cc 36 37 38 # Flags passed to both C and C++ files. 39 MY_CFLAGS_Debug := \ 40 -fstack-protector \ 41 --param=ssp-buffer-size=4 \ 42 -pthread \ 43 -fno-exceptions \ 44 -fno-strict-aliasing \ 45 -Wno-unused-parameter \ 46 -Wno-missing-field-initializers \ 47 -fvisibility=hidden \ 48 -pipe \ 49 -fPIC \ 50 -Wno-format \ 51 -m32 \ 52 -Os \ 53 -g \ 54 -fomit-frame-pointer \ 55 -fdata-sections \ 56 -ffunction-sections 57 58 MY_DEFS_Debug := \ 59 '-DV8_DEPRECATION_WARNINGS' \ 60 '-D_FILE_OFFSET_BITS=64' \ 61 '-DNO_TCMALLOC' \ 62 '-DDISABLE_NACL' \ 63 '-DCHROMIUM_BUILD' \ 64 '-DUSE_LIBJPEG_TURBO=1' \ 65 '-DUSE_PROPRIETARY_CODECS' \ 66 '-DENABLE_CONFIGURATION_POLICY' \ 67 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 68 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 69 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 70 '-DUSE_OPENSSL=1' \ 71 '-DENABLE_EGLIMAGE=1' \ 72 '-DCLD_VERSION=1' \ 73 '-DENABLE_PRINTING=1' \ 74 '-DENABLE_MANAGED_USERS=1' \ 75 '-DV8_TARGET_ARCH_ARM' \ 76 '-DENABLE_DEBUGGER_SUPPORT' \ 77 '-DV8_I18N_SUPPORT' \ 78 '-DV8_USE_DEFAULT_PLATFORM' \ 79 '-DARM_TEST' \ 80 '-DCAN_USE_ARMV7_INSTRUCTIONS=1' \ 81 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 82 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 83 '-D_DEBUG' \ 84 '-DENABLE_DISASSEMBLER' \ 85 '-DV8_ENABLE_CHECKS' \ 86 '-DOBJECT_PRINT' \ 87 '-DVERIFY_HEAP' \ 88 '-DENABLE_EXTRA_CHECKS' \ 89 '-DENABLE_HANDLE_ZAPPING' 90 91 92 # Include paths placed before CFLAGS/CPPFLAGS 93 LOCAL_C_INCLUDES_Debug := \ 94 $(LOCAL_PATH)/v8/src 95 96 97 # Flags passed to only C++ (and not C) files. 98 LOCAL_CPPFLAGS_Debug := \ 99 -fno-rtti \ 100 -fno-threadsafe-statics \ 101 -fvisibility-inlines-hidden \ 102 -Wno-deprecated 103 104 105 # Flags passed to both C and C++ files. 106 MY_CFLAGS_Release := \ 107 -fstack-protector \ 108 --param=ssp-buffer-size=4 \ 109 -pthread \ 110 -fno-exceptions \ 111 -fno-strict-aliasing \ 112 -Wno-unused-parameter \ 113 -Wno-missing-field-initializers \ 114 -fvisibility=hidden \ 115 -pipe \ 116 -fPIC \ 117 -Wno-format \ 118 -m32 \ 119 -fno-ident \ 120 -fdata-sections \ 121 -ffunction-sections \ 122 -fomit-frame-pointer \ 123 -fdata-sections \ 124 -ffunction-sections \ 125 -O2 126 127 MY_DEFS_Release := \ 128 '-DV8_DEPRECATION_WARNINGS' \ 129 '-D_FILE_OFFSET_BITS=64' \ 130 '-DNO_TCMALLOC' \ 131 '-DDISABLE_NACL' \ 132 '-DCHROMIUM_BUILD' \ 133 '-DUSE_LIBJPEG_TURBO=1' \ 134 '-DUSE_PROPRIETARY_CODECS' \ 135 '-DENABLE_CONFIGURATION_POLICY' \ 136 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 137 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 138 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 139 '-DUSE_OPENSSL=1' \ 140 '-DENABLE_EGLIMAGE=1' \ 141 '-DCLD_VERSION=1' \ 142 '-DENABLE_PRINTING=1' \ 143 '-DENABLE_MANAGED_USERS=1' \ 144 '-DV8_TARGET_ARCH_ARM' \ 145 '-DENABLE_DEBUGGER_SUPPORT' \ 146 '-DV8_I18N_SUPPORT' \ 147 '-DV8_USE_DEFAULT_PLATFORM' \ 148 '-DARM_TEST' \ 149 '-DCAN_USE_ARMV7_INSTRUCTIONS=1' \ 150 '-DNDEBUG' \ 151 '-DNVALGRIND' \ 152 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 153 154 155 # Include paths placed before CFLAGS/CPPFLAGS 156 LOCAL_C_INCLUDES_Release := \ 157 $(LOCAL_PATH)/v8/src 158 159 160 # Flags passed to only C++ (and not C) files. 161 LOCAL_CPPFLAGS_Release := \ 162 -fno-rtti \ 163 -fno-threadsafe-statics \ 164 -fvisibility-inlines-hidden \ 165 -Wno-deprecated 166 167 168 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 169 # Undefine ANDROID for host modules 170 LOCAL_CFLAGS += -UANDROID 171 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 172 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 173 ### Rules for final target. 174 175 LOCAL_LDFLAGS_Debug := \ 176 -Wl,-z,now \ 177 -Wl,-z,relro \ 178 -pthread \ 179 -fPIC \ 180 -m32 181 182 183 LOCAL_LDFLAGS_Release := \ 184 -Wl,-z,now \ 185 -Wl,-z,relro \ 186 -pthread \ 187 -fPIC \ 188 -m32 189 190 191 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 192 193 LOCAL_STATIC_LIBRARIES := \ 194 v8_tools_gyp_v8_base_arm_host_gyp \ 195 v8_tools_gyp_v8_nosnapshot_arm_host_gyp \ 196 third_party_icu_icui18n_host_gyp \ 197 third_party_icu_icuuc_host_gyp \ 198 third_party_icu_icudata_host_gyp 199 200 # Enable grouping to fix circular references 201 LOCAL_GROUP_STATIC_LIBRARIES := true 202 203 LOCAL_SHARED_LIBRARIES := 204 205 # Add target alias to "gyp_all_modules" target. 206 .PHONY: gyp_all_modules 207 gyp_all_modules: v8_tools_gyp_mksnapshot_arm_host_gyp 208 209 # Alias gyp target name. 210 .PHONY: mksnapshot.arm 211 mksnapshot.arm: v8_tools_gyp_mksnapshot_arm_host_gyp 212 213 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir) 214 include $(BUILD_HOST_EXECUTABLE) 215