Home | History | Annotate | Download | only in gyp
      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_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
      7 LOCAL_MODULE_STEM := mksnapshot
      8 LOCAL_MODULE_SUFFIX := 
      9 LOCAL_IS_HOST_MODULE := true
     10 LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)
     11 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX))
     12 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     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_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/v8_tools_gyp_v8_base_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
     17 	$(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
     18 	$(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/v8_tools_gyp_v8_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
     19 	$(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
     20 	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icui18n_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/third_party_icu_icui18n_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
     21 	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icuuc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/third_party_icu_icuuc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
     22 	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icudata_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/third_party_icu_icudata_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
     23 	$(call intermediates-dir-for,GYP,v8_tools_gyp_js2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/js2c.stamp
     24 
     25 GYP_GENERATED_OUTPUTS :=
     26 
     27 # Make sure our deps and generated files are built first.
     28 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     29 
     30 LOCAL_CPP_EXTENSION := .cc
     31 LOCAL_GENERATED_SOURCES :=
     32 
     33 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     34 
     35 LOCAL_SRC_FILES := \
     36 	v8/src/mksnapshot.cc
     37 
     38 
     39 # Flags passed to both C and C++ files.
     40 MY_CFLAGS_Debug := \
     41 	-fstack-protector \
     42 	--param=ssp-buffer-size=4 \
     43 	 \
     44 	-pthread \
     45 	-fno-strict-aliasing \
     46 	-Wno-unused-parameter \
     47 	-Wno-missing-field-initializers \
     48 	-fvisibility=hidden \
     49 	-pipe \
     50 	-fPIC \
     51 	-Wno-format \
     52 	-Wheader-hygiene \
     53 	-Wno-char-subscripts \
     54 	-Wno-unneeded-internal-declaration \
     55 	-Wno-covered-switch-default \
     56 	-Wstring-conversion \
     57 	-Wno-c++11-narrowing \
     58 	-Wno-deprecated-register \
     59 	-Wno-unused-local-typedef \
     60 	-m32 \
     61 	-Os \
     62 	-g \
     63 	-gdwarf-4 \
     64 	-fdata-sections \
     65 	-ffunction-sections \
     66 	-fomit-frame-pointer \
     67 	-funwind-tables
     68 
     69 MY_DEFS_Debug := \
     70 	'-DV8_DEPRECATION_WARNINGS' \
     71 	'-D_FILE_OFFSET_BITS=64' \
     72 	'-DNO_TCMALLOC' \
     73 	'-DDISABLE_NACL' \
     74 	'-DCHROMIUM_BUILD' \
     75 	'-DUSE_LIBJPEG_TURBO=1' \
     76 	'-DENABLE_WEBRTC=1' \
     77 	'-DUSE_PROPRIETARY_CODECS' \
     78 	'-DENABLE_BROWSER_CDMS' \
     79 	'-DENABLE_CONFIGURATION_POLICY' \
     80 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     81 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     82 	'-DENABLE_EGLIMAGE=1' \
     83 	'-DCLD_VERSION=1' \
     84 	'-DENABLE_PRINTING=1' \
     85 	'-DENABLE_MANAGED_USERS=1' \
     86 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     87 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     88 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     89 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     90 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     91 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     92 	'-DVIDEO_HOLE=1' \
     93 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     94 	'-DV8_TARGET_ARCH_MIPS' \
     95 	'-DCAN_USE_FPU_INSTRUCTIONS' \
     96 	'-D__mips_hard_float=1' \
     97 	'-D_MIPS_ARCH_MIPS32R2' \
     98 	'-DV8_I18N_SUPPORT' \
     99 	'-DUSE_OPENSSL=1' \
    100 	'-DUSE_OPENSSL_CERTS=1' \
    101 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    102 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    103 	'-D_DEBUG' \
    104 	'-DENABLE_DISASSEMBLER' \
    105 	'-DV8_ENABLE_CHECKS' \
    106 	'-DOBJECT_PRINT' \
    107 	'-DVERIFY_HEAP' \
    108 	'-DENABLE_EXTRA_CHECKS' \
    109 	'-DENABLE_HANDLE_ZAPPING'
    110 
    111 
    112 # Include paths placed before CFLAGS/CPPFLAGS
    113 LOCAL_C_INCLUDES_Debug := \
    114 	$(LOCAL_PATH)/v8 \
    115 	$(gyp_shared_intermediate_dir)
    116 
    117 
    118 # Flags passed to only C++ (and not C) files.
    119 LOCAL_CPPFLAGS_Debug := \
    120 	-fno-exceptions \
    121 	-fno-rtti \
    122 	-fno-threadsafe-statics \
    123 	-fvisibility-inlines-hidden \
    124 	-Wno-deprecated \
    125 	-std=gnu++11
    126 
    127 
    128 # Flags passed to both C and C++ files.
    129 MY_CFLAGS_Release := \
    130 	-fstack-protector \
    131 	--param=ssp-buffer-size=4 \
    132 	 \
    133 	-pthread \
    134 	-fno-strict-aliasing \
    135 	-Wno-unused-parameter \
    136 	-Wno-missing-field-initializers \
    137 	-fvisibility=hidden \
    138 	-pipe \
    139 	-fPIC \
    140 	-Wno-format \
    141 	-Wheader-hygiene \
    142 	-Wno-char-subscripts \
    143 	-Wno-unneeded-internal-declaration \
    144 	-Wno-covered-switch-default \
    145 	-Wstring-conversion \
    146 	-Wno-c++11-narrowing \
    147 	-Wno-deprecated-register \
    148 	-Wno-unused-local-typedef \
    149 	-m32 \
    150 	-fno-ident \
    151 	-fdata-sections \
    152 	-ffunction-sections \
    153 	-fomit-frame-pointer \
    154 	-funwind-tables \
    155 	-fdata-sections \
    156 	-ffunction-sections \
    157 	-O2
    158 
    159 MY_DEFS_Release := \
    160 	'-DV8_DEPRECATION_WARNINGS' \
    161 	'-D_FILE_OFFSET_BITS=64' \
    162 	'-DNO_TCMALLOC' \
    163 	'-DDISABLE_NACL' \
    164 	'-DCHROMIUM_BUILD' \
    165 	'-DUSE_LIBJPEG_TURBO=1' \
    166 	'-DENABLE_WEBRTC=1' \
    167 	'-DUSE_PROPRIETARY_CODECS' \
    168 	'-DENABLE_BROWSER_CDMS' \
    169 	'-DENABLE_CONFIGURATION_POLICY' \
    170 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    171 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    172 	'-DENABLE_EGLIMAGE=1' \
    173 	'-DCLD_VERSION=1' \
    174 	'-DENABLE_PRINTING=1' \
    175 	'-DENABLE_MANAGED_USERS=1' \
    176 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    177 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    178 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    179 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    180 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    181 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    182 	'-DVIDEO_HOLE=1' \
    183 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    184 	'-DV8_TARGET_ARCH_MIPS' \
    185 	'-DCAN_USE_FPU_INSTRUCTIONS' \
    186 	'-D__mips_hard_float=1' \
    187 	'-D_MIPS_ARCH_MIPS32R2' \
    188 	'-DV8_I18N_SUPPORT' \
    189 	'-DUSE_OPENSSL=1' \
    190 	'-DUSE_OPENSSL_CERTS=1' \
    191 	'-DNDEBUG' \
    192 	'-DNVALGRIND' \
    193 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    194 
    195 
    196 # Include paths placed before CFLAGS/CPPFLAGS
    197 LOCAL_C_INCLUDES_Release := \
    198 	$(LOCAL_PATH)/v8 \
    199 	$(gyp_shared_intermediate_dir)
    200 
    201 
    202 # Flags passed to only C++ (and not C) files.
    203 LOCAL_CPPFLAGS_Release := \
    204 	-fno-exceptions \
    205 	-fno-rtti \
    206 	-fno-threadsafe-statics \
    207 	-fvisibility-inlines-hidden \
    208 	-Wno-deprecated \
    209 	-std=gnu++11
    210 
    211 
    212 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    213 # Undefine ANDROID for host modules
    214 LOCAL_CFLAGS += -UANDROID
    215 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    216 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    217 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    218 ### Rules for final target.
    219 
    220 LOCAL_LDFLAGS_Debug := \
    221 	-pthread \
    222 	-fPIC \
    223 	-m32
    224 
    225 
    226 LOCAL_LDFLAGS_Release := \
    227 	-pthread \
    228 	-fPIC \
    229 	-m32
    230 
    231 
    232 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    233 
    234 LOCAL_STATIC_LIBRARIES := \
    235 	v8_tools_gyp_v8_base_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \
    236 	v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \
    237 	v8_tools_gyp_v8_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \
    238 	v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \
    239 	third_party_icu_icui18n_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \
    240 	third_party_icu_icuuc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \
    241 	third_party_icu_icudata_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    242 
    243 # Enable grouping to fix circular references
    244 LOCAL_GROUP_STATIC_LIBRARIES := true
    245 ### Set directly by aosp_build_settings.
    246 LOCAL_CLANG := true
    247 
    248 # Add target alias to "gyp_all_modules" target.
    249 .PHONY: gyp_all_modules
    250 gyp_all_modules: v8_tools_gyp_mksnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    251 
    252 # Alias gyp target name.
    253 .PHONY: mksnapshot
    254 mksnapshot: v8_tools_gyp_mksnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    255 
    256 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)
    257 include $(BUILD_HOST_EXECUTABLE)
    258