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