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