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