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_IS_HOST_MODULE := true
      9 LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)
     10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX))
     11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     12 
     13 # Make sure our deps are built first.
     14 GYP_TARGET_DEPENDENCIES := \
     15 	$(call intermediates-dir-for,GYP,v8_tools_gyp_js2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/js2c.stamp
     16 
     17 GYP_GENERATED_OUTPUTS :=
     18 
     19 # Make sure our deps and generated files are built first.
     20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     21 
     22 LOCAL_CPP_EXTENSION := .cc
     23 $(gyp_intermediate_dir)/libraries.cc: $(gyp_shared_intermediate_dir)/libraries.cc
     24 	mkdir -p $(@D); cp $< $@
     25 $(gyp_intermediate_dir)/experimental-libraries.cc: $(gyp_shared_intermediate_dir)/experimental-libraries.cc
     26 	mkdir -p $(@D); cp $< $@
     27 LOCAL_GENERATED_SOURCES := \
     28 	$(gyp_intermediate_dir)/libraries.cc \
     29 	$(gyp_intermediate_dir)/experimental-libraries.cc
     30 
     31 GYP_COPIED_SOURCE_ORIGIN_DIRS := \
     32 	$(gyp_shared_intermediate_dir)
     33 
     34 LOCAL_SRC_FILES := \
     35 	v8/src/snapshot-common.cc \
     36 	v8/src/snapshot-empty.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 	-funwind-tables
     66 
     67 MY_DEFS_Debug := \
     68 	'-DV8_DEPRECATION_WARNINGS' \
     69 	'-D_FILE_OFFSET_BITS=64' \
     70 	'-DNO_TCMALLOC' \
     71 	'-DDISABLE_NACL' \
     72 	'-DCHROMIUM_BUILD' \
     73 	'-DUSE_LIBJPEG_TURBO=1' \
     74 	'-DENABLE_WEBRTC=1' \
     75 	'-DUSE_PROPRIETARY_CODECS' \
     76 	'-DENABLE_BROWSER_CDMS' \
     77 	'-DENABLE_CONFIGURATION_POLICY' \
     78 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     79 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     80 	'-DENABLE_EGLIMAGE=1' \
     81 	'-DCLD_VERSION=1' \
     82 	'-DENABLE_PRINTING=1' \
     83 	'-DENABLE_MANAGED_USERS=1' \
     84 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     85 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     86 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     87 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     88 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     89 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     90 	'-DVIDEO_HOLE=1' \
     91 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     92 	'-DV8_TARGET_ARCH_ARM64' \
     93 	'-DV8_I18N_SUPPORT' \
     94 	'-DUSE_OPENSSL=1' \
     95 	'-DUSE_OPENSSL_CERTS=1' \
     96 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     97 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     98 	'-D_DEBUG' \
     99 	'-DENABLE_DISASSEMBLER' \
    100 	'-DV8_ENABLE_CHECKS' \
    101 	'-DOBJECT_PRINT' \
    102 	'-DVERIFY_HEAP' \
    103 	'-DENABLE_EXTRA_CHECKS' \
    104 	'-DENABLE_HANDLE_ZAPPING'
    105 
    106 
    107 # Include paths placed before CFLAGS/CPPFLAGS
    108 LOCAL_C_INCLUDES_Debug := \
    109 	$(LOCAL_PATH)/v8 \
    110 	$(gyp_shared_intermediate_dir)
    111 
    112 
    113 # Flags passed to only C++ (and not C) files.
    114 LOCAL_CPPFLAGS_Debug := \
    115 	-fno-exceptions \
    116 	-fno-rtti \
    117 	-fno-threadsafe-statics \
    118 	-fvisibility-inlines-hidden \
    119 	-Wno-deprecated \
    120 	-std=gnu++11
    121 
    122 
    123 # Flags passed to both C and C++ files.
    124 MY_CFLAGS_Release := \
    125 	-fstack-protector \
    126 	--param=ssp-buffer-size=4 \
    127 	-pthread \
    128 	-fno-strict-aliasing \
    129 	-Wno-unused-parameter \
    130 	-Wno-missing-field-initializers \
    131 	-fvisibility=hidden \
    132 	-pipe \
    133 	-fPIC \
    134 	-Wno-format \
    135 	-Wheader-hygiene \
    136 	-Wno-char-subscripts \
    137 	-Wno-unneeded-internal-declaration \
    138 	-Wno-covered-switch-default \
    139 	-Wstring-conversion \
    140 	-Wno-c++11-narrowing \
    141 	-Wno-deprecated-register \
    142 	-Wno-unused-local-typedef \
    143 	-m64 \
    144 	-fno-ident \
    145 	-fdata-sections \
    146 	-ffunction-sections \
    147 	-funwind-tables \
    148 	-fdata-sections \
    149 	-ffunction-sections \
    150 	-O2
    151 
    152 MY_DEFS_Release := \
    153 	'-DV8_DEPRECATION_WARNINGS' \
    154 	'-D_FILE_OFFSET_BITS=64' \
    155 	'-DNO_TCMALLOC' \
    156 	'-DDISABLE_NACL' \
    157 	'-DCHROMIUM_BUILD' \
    158 	'-DUSE_LIBJPEG_TURBO=1' \
    159 	'-DENABLE_WEBRTC=1' \
    160 	'-DUSE_PROPRIETARY_CODECS' \
    161 	'-DENABLE_BROWSER_CDMS' \
    162 	'-DENABLE_CONFIGURATION_POLICY' \
    163 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    164 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    165 	'-DENABLE_EGLIMAGE=1' \
    166 	'-DCLD_VERSION=1' \
    167 	'-DENABLE_PRINTING=1' \
    168 	'-DENABLE_MANAGED_USERS=1' \
    169 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    170 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    171 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    172 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    173 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    174 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    175 	'-DVIDEO_HOLE=1' \
    176 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    177 	'-DV8_TARGET_ARCH_ARM64' \
    178 	'-DV8_I18N_SUPPORT' \
    179 	'-DUSE_OPENSSL=1' \
    180 	'-DUSE_OPENSSL_CERTS=1' \
    181 	'-DNDEBUG' \
    182 	'-DNVALGRIND' \
    183 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    184 
    185 
    186 # Include paths placed before CFLAGS/CPPFLAGS
    187 LOCAL_C_INCLUDES_Release := \
    188 	$(LOCAL_PATH)/v8 \
    189 	$(gyp_shared_intermediate_dir)
    190 
    191 
    192 # Flags passed to only C++ (and not C) files.
    193 LOCAL_CPPFLAGS_Release := \
    194 	-fno-exceptions \
    195 	-fno-rtti \
    196 	-fno-threadsafe-statics \
    197 	-fvisibility-inlines-hidden \
    198 	-Wno-deprecated \
    199 	-std=gnu++11
    200 
    201 
    202 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    203 # Undefine ANDROID for host modules
    204 LOCAL_CFLAGS += -UANDROID
    205 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    206 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    207 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    208 ### Rules for final target.
    209 ### Set directly by aosp_build_settings.
    210 LOCAL_CLANG := true
    211 
    212 # Add target alias to "gyp_all_modules" target.
    213 .PHONY: gyp_all_modules
    214 gyp_all_modules: v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    215 
    216 # Alias gyp target name.
    217 .PHONY: v8_nosnapshot
    218 v8_nosnapshot: v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    219 
    220 include $(BUILD_HOST_STATIC_LIBRARY)
    221