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