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