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