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