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_ia32_host_gyp 7 LOCAL_MODULE_STEM := mksnapshot.ia32 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_ia32_host_gyp,true)/v8_tools_gyp_v8_base_ia32_host_gyp.a \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_nosnapshot_ia32_host_gyp,true)/v8_tools_gyp_v8_nosnapshot_ia32_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_IA32' \ 76 '-DENABLE_DEBUGGER_SUPPORT' \ 77 '-DV8_I18N_SUPPORT' \ 78 '-DV8_USE_DEFAULT_PLATFORM' \ 79 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 80 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 81 '-D_DEBUG' \ 82 '-DENABLE_DISASSEMBLER' \ 83 '-DV8_ENABLE_CHECKS' \ 84 '-DOBJECT_PRINT' \ 85 '-DVERIFY_HEAP' \ 86 '-DENABLE_EXTRA_CHECKS' \ 87 '-DENABLE_HANDLE_ZAPPING' 88 89 90 # Include paths placed before CFLAGS/CPPFLAGS 91 LOCAL_C_INCLUDES_Debug := \ 92 $(LOCAL_PATH)/v8/src 93 94 95 # Flags passed to only C++ (and not C) files. 96 LOCAL_CPPFLAGS_Debug := \ 97 -fno-rtti \ 98 -fno-threadsafe-statics \ 99 -fvisibility-inlines-hidden \ 100 -Wno-deprecated 101 102 103 # Flags passed to both C and C++ files. 104 MY_CFLAGS_Release := \ 105 -fstack-protector \ 106 --param=ssp-buffer-size=4 \ 107 -pthread \ 108 -fno-exceptions \ 109 -fno-strict-aliasing \ 110 -Wno-unused-parameter \ 111 -Wno-missing-field-initializers \ 112 -fvisibility=hidden \ 113 -pipe \ 114 -fPIC \ 115 -Wno-format \ 116 -m32 \ 117 -fno-ident \ 118 -fdata-sections \ 119 -ffunction-sections \ 120 -fomit-frame-pointer \ 121 -fno-unwind-tables \ 122 -fno-asynchronous-unwind-tables \ 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_IA32' \ 145 '-DENABLE_DEBUGGER_SUPPORT' \ 146 '-DV8_I18N_SUPPORT' \ 147 '-DV8_USE_DEFAULT_PLATFORM' \ 148 '-DNDEBUG' \ 149 '-DNVALGRIND' \ 150 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 151 152 153 # Include paths placed before CFLAGS/CPPFLAGS 154 LOCAL_C_INCLUDES_Release := \ 155 $(LOCAL_PATH)/v8/src 156 157 158 # Flags passed to only C++ (and not C) files. 159 LOCAL_CPPFLAGS_Release := \ 160 -fno-rtti \ 161 -fno-threadsafe-statics \ 162 -fvisibility-inlines-hidden \ 163 -Wno-deprecated 164 165 166 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 167 # Undefine ANDROID for host modules 168 LOCAL_CFLAGS += -UANDROID 169 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 170 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 171 ### Rules for final target. 172 173 LOCAL_LDFLAGS_Debug := \ 174 -Wl,-z,now \ 175 -Wl,-z,relro \ 176 -pthread \ 177 -fPIC \ 178 -m32 179 180 181 LOCAL_LDFLAGS_Release := \ 182 -Wl,-z,now \ 183 -Wl,-z,relro \ 184 -pthread \ 185 -fPIC \ 186 -m32 187 188 189 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 190 191 LOCAL_STATIC_LIBRARIES := \ 192 v8_tools_gyp_v8_base_ia32_host_gyp \ 193 v8_tools_gyp_v8_nosnapshot_ia32_host_gyp \ 194 third_party_icu_icui18n_host_gyp \ 195 third_party_icu_icuuc_host_gyp \ 196 third_party_icu_icudata_host_gyp 197 198 # Enable grouping to fix circular references 199 LOCAL_GROUP_STATIC_LIBRARIES := true 200 201 LOCAL_SHARED_LIBRARIES := 202 203 # Add target alias to "gyp_all_modules" target. 204 .PHONY: gyp_all_modules 205 gyp_all_modules: v8_tools_gyp_mksnapshot_ia32_host_gyp 206 207 # Alias gyp target name. 208 .PHONY: mksnapshot.ia32 209 mksnapshot.ia32: v8_tools_gyp_mksnapshot_ia32_host_gyp 210 211 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir) 212 include $(BUILD_HOST_EXECUTABLE) 213