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