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_mipsel_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 \ 47 -pthread \ 48 -fno-exceptions \ 49 -fno-strict-aliasing \ 50 -Wno-unused-parameter \ 51 -Wno-missing-field-initializers \ 52 -fvisibility=hidden \ 53 -pipe \ 54 -fPIC \ 55 -Wno-format \ 56 -m32 \ 57 -Os \ 58 -g \ 59 -fomit-frame-pointer \ 60 -fdata-sections \ 61 -ffunction-sections 62 63 MY_DEFS_Debug := \ 64 '-DV8_DEPRECATION_WARNINGS' \ 65 '-D_FILE_OFFSET_BITS=64' \ 66 '-DNO_TCMALLOC' \ 67 '-DDISABLE_NACL' \ 68 '-DCHROMIUM_BUILD' \ 69 '-DUSE_LIBJPEG_TURBO=1' \ 70 '-DUSE_PROPRIETARY_CODECS' \ 71 '-DENABLE_CONFIGURATION_POLICY' \ 72 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 73 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 74 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 75 '-DUSE_OPENSSL=1' \ 76 '-DENABLE_EGLIMAGE=1' \ 77 '-DCLD_VERSION=1' \ 78 '-DENABLE_PRINTING=1' \ 79 '-DENABLE_MANAGED_USERS=1' \ 80 '-DV8_TARGET_ARCH_MIPS' \ 81 '-DCAN_USE_FPU_INSTRUCTIONS' \ 82 '-D__mips_hard_float=1' \ 83 '-DENABLE_DEBUGGER_SUPPORT' \ 84 '-DV8_I18N_SUPPORT' \ 85 '-DV8_USE_DEFAULT_PLATFORM' \ 86 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 87 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 88 '-D_DEBUG' \ 89 '-DENABLE_DISASSEMBLER' \ 90 '-DV8_ENABLE_CHECKS' \ 91 '-DOBJECT_PRINT' \ 92 '-DVERIFY_HEAP' \ 93 '-DENABLE_EXTRA_CHECKS' \ 94 '-DENABLE_HANDLE_ZAPPING' 95 96 97 # Include paths placed before CFLAGS/CPPFLAGS 98 LOCAL_C_INCLUDES_Debug := \ 99 $(LOCAL_PATH)/v8/src 100 101 102 # Flags passed to only C++ (and not C) files. 103 LOCAL_CPPFLAGS_Debug := \ 104 -fno-rtti \ 105 -fno-threadsafe-statics \ 106 -fvisibility-inlines-hidden \ 107 -Wno-deprecated 108 109 110 # Flags passed to both C and C++ files. 111 MY_CFLAGS_Release := \ 112 -fstack-protector \ 113 --param=ssp-buffer-size=4 \ 114 \ 115 -pthread \ 116 -fno-exceptions \ 117 -fno-strict-aliasing \ 118 -Wno-unused-parameter \ 119 -Wno-missing-field-initializers \ 120 -fvisibility=hidden \ 121 -pipe \ 122 -fPIC \ 123 -Wno-format \ 124 -m32 \ 125 -fno-ident \ 126 -fdata-sections \ 127 -ffunction-sections \ 128 -fomit-frame-pointer \ 129 -fdata-sections \ 130 -ffunction-sections \ 131 -O2 132 133 MY_DEFS_Release := \ 134 '-DV8_DEPRECATION_WARNINGS' \ 135 '-D_FILE_OFFSET_BITS=64' \ 136 '-DNO_TCMALLOC' \ 137 '-DDISABLE_NACL' \ 138 '-DCHROMIUM_BUILD' \ 139 '-DUSE_LIBJPEG_TURBO=1' \ 140 '-DUSE_PROPRIETARY_CODECS' \ 141 '-DENABLE_CONFIGURATION_POLICY' \ 142 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 143 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 144 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 145 '-DUSE_OPENSSL=1' \ 146 '-DENABLE_EGLIMAGE=1' \ 147 '-DCLD_VERSION=1' \ 148 '-DENABLE_PRINTING=1' \ 149 '-DENABLE_MANAGED_USERS=1' \ 150 '-DV8_TARGET_ARCH_MIPS' \ 151 '-DCAN_USE_FPU_INSTRUCTIONS' \ 152 '-D__mips_hard_float=1' \ 153 '-DENABLE_DEBUGGER_SUPPORT' \ 154 '-DV8_I18N_SUPPORT' \ 155 '-DV8_USE_DEFAULT_PLATFORM' \ 156 '-DNDEBUG' \ 157 '-DNVALGRIND' \ 158 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 159 160 161 # Include paths placed before CFLAGS/CPPFLAGS 162 LOCAL_C_INCLUDES_Release := \ 163 $(LOCAL_PATH)/v8/src 164 165 166 # Flags passed to only C++ (and not C) files. 167 LOCAL_CPPFLAGS_Release := \ 168 -fno-rtti \ 169 -fno-threadsafe-statics \ 170 -fvisibility-inlines-hidden \ 171 -Wno-deprecated 172 173 174 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 175 # Undefine ANDROID for host modules 176 LOCAL_CFLAGS += -UANDROID 177 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 178 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 179 ### Rules for final target. 180 181 LOCAL_LDFLAGS_Debug := \ 182 -Wl,-z,now \ 183 -Wl,-z,relro \ 184 -pthread \ 185 -fPIC \ 186 -m32 187 188 189 LOCAL_LDFLAGS_Release := \ 190 -Wl,-z,now \ 191 -Wl,-z,relro \ 192 -pthread \ 193 -fPIC \ 194 -m32 195 196 197 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 198 199 LOCAL_STATIC_LIBRARIES := 200 201 # Enable grouping to fix circular references 202 LOCAL_GROUP_STATIC_LIBRARIES := true 203 204 LOCAL_SHARED_LIBRARIES := 205 206 # Add target alias to "gyp_all_modules" target. 207 .PHONY: gyp_all_modules 208 gyp_all_modules: v8_tools_gyp_v8_nosnapshot_mipsel_host_gyp 209 210 # Alias gyp target name. 211 .PHONY: v8_nosnapshot.mipsel 212 v8_nosnapshot.mipsel: v8_tools_gyp_v8_nosnapshot_mipsel_host_gyp 213 214 include $(BUILD_HOST_STATIC_LIBRARY) 215