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