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_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES :=
     14 
     15 GYP_GENERATED_OUTPUTS :=
     16 
     17 # Make sure our deps and generated files are built first.
     18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     19 
     20 LOCAL_CPP_EXTENSION := .cc
     21 LOCAL_GENERATED_SOURCES :=
     22 
     23 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     24 
     25 LOCAL_SRC_FILES := \
     26 	v8/src/base/atomicops_internals_x86_gcc.cc \
     27 	v8/src/base/bits.cc \
     28 	v8/src/base/cpu.cc \
     29 	v8/src/base/division-by-constant.cc \
     30 	v8/src/base/logging.cc \
     31 	v8/src/base/once.cc \
     32 	v8/src/base/platform/time.cc \
     33 	v8/src/base/platform/condition-variable.cc \
     34 	v8/src/base/platform/mutex.cc \
     35 	v8/src/base/platform/semaphore.cc \
     36 	v8/src/base/sys-info.cc \
     37 	v8/src/base/utils/random-number-generator.cc \
     38 	v8/src/base/platform/platform-posix.cc \
     39 	v8/src/base/platform/platform-linux.cc
     40 
     41 
     42 # Flags passed to both C and C++ files.
     43 MY_CFLAGS_Debug := \
     44 	-fstack-protector \
     45 	--param=ssp-buffer-size=4 \
     46 	-fno-strict-aliasing \
     47 	-Wno-unused-parameter \
     48 	-Wno-missing-field-initializers \
     49 	-fvisibility=hidden \
     50 	-pipe \
     51 	-fPIC \
     52 	-Wno-unused-local-typedefs \
     53 	-Wno-format \
     54 	-fno-tree-sra \
     55 	-fno-caller-saves \
     56 	-Wno-psabi \
     57 	-fno-partial-inlining \
     58 	-fno-early-inlining \
     59 	-fno-tree-copy-prop \
     60 	-fno-tree-loop-optimize \
     61 	-fno-move-loop-invariants \
     62 	-ffunction-sections \
     63 	-funwind-tables \
     64 	-g \
     65 	-fstack-protector \
     66 	-fno-short-enums \
     67 	-finline-limit=64 \
     68 	-Wa,--noexecstack \
     69 	-U_FORTIFY_SOURCE \
     70 	-Wno-extra \
     71 	-Wno-ignored-qualifiers \
     72 	-Wno-type-limits \
     73 	-Wno-unused-but-set-variable \
     74 	-Wno-address \
     75 	-Wno-format-security \
     76 	-Wno-return-type \
     77 	-Wno-sequence-point \
     78 	-Os \
     79 	-g \
     80 	-gdwarf-4 \
     81 	-fdata-sections \
     82 	-ffunction-sections \
     83 	-fomit-frame-pointer \
     84 	-funwind-tables
     85 
     86 MY_DEFS_Debug := \
     87 	'-DV8_DEPRECATION_WARNINGS' \
     88 	'-D_FILE_OFFSET_BITS=64' \
     89 	'-DNO_TCMALLOC' \
     90 	'-DDISABLE_NACL' \
     91 	'-DCHROMIUM_BUILD' \
     92 	'-DUSE_LIBJPEG_TURBO=1' \
     93 	'-DENABLE_WEBRTC=1' \
     94 	'-DUSE_PROPRIETARY_CODECS' \
     95 	'-DENABLE_BROWSER_CDMS' \
     96 	'-DENABLE_CONFIGURATION_POLICY' \
     97 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     98 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     99 	'-DENABLE_EGLIMAGE=1' \
    100 	'-DCLD_VERSION=1' \
    101 	'-DENABLE_PRINTING=1' \
    102 	'-DENABLE_MANAGED_USERS=1' \
    103 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    104 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    105 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    106 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    107 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    108 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    109 	'-DVIDEO_HOLE=1' \
    110 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    111 	'-DV8_TARGET_ARCH_ARM' \
    112 	'-DCAN_USE_ARMV7_INSTRUCTIONS' \
    113 	'-DV8_I18N_SUPPORT' \
    114 	'-DUSE_OPENSSL=1' \
    115 	'-DUSE_OPENSSL_CERTS=1' \
    116 	'-DANDROID' \
    117 	'-D__GNU_SOURCE=1' \
    118 	'-DUSE_STLPORT=1' \
    119 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    120 	'-DCHROME_BUILD_ID=""' \
    121 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    122 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    123 	'-D_DEBUG' \
    124 	'-DENABLE_DISASSEMBLER' \
    125 	'-DV8_ENABLE_CHECKS' \
    126 	'-DOBJECT_PRINT' \
    127 	'-DVERIFY_HEAP' \
    128 	'-DENABLE_EXTRA_CHECKS' \
    129 	'-DENABLE_HANDLE_ZAPPING'
    130 
    131 
    132 # Include paths placed before CFLAGS/CPPFLAGS
    133 LOCAL_C_INCLUDES_Debug := \
    134 	$(LOCAL_PATH)/v8 \
    135 	$(gyp_shared_intermediate_dir) \
    136 	$(PWD)/frameworks/wilhelm/include \
    137 	$(PWD)/bionic \
    138 	$(PWD)/external/stlport/stlport
    139 
    140 
    141 # Flags passed to only C++ (and not C) files.
    142 LOCAL_CPPFLAGS_Debug := \
    143 	-fno-exceptions \
    144 	-fno-rtti \
    145 	-fno-threadsafe-statics \
    146 	-fvisibility-inlines-hidden \
    147 	-Wno-deprecated \
    148 	-Wno-abi \
    149 	-std=gnu++11 \
    150 	-Wno-narrowing \
    151 	-Wno-literal-suffix \
    152 	-Wno-non-virtual-dtor \
    153 	-Wno-sign-promo \
    154 	-Wno-non-virtual-dtor
    155 
    156 
    157 # Flags passed to both C and C++ files.
    158 MY_CFLAGS_Release := \
    159 	-fstack-protector \
    160 	--param=ssp-buffer-size=4 \
    161 	-fno-strict-aliasing \
    162 	-Wno-unused-parameter \
    163 	-Wno-missing-field-initializers \
    164 	-fvisibility=hidden \
    165 	-pipe \
    166 	-fPIC \
    167 	-Wno-unused-local-typedefs \
    168 	-Wno-format \
    169 	-fno-tree-sra \
    170 	-fno-caller-saves \
    171 	-Wno-psabi \
    172 	-fno-partial-inlining \
    173 	-fno-early-inlining \
    174 	-fno-tree-copy-prop \
    175 	-fno-tree-loop-optimize \
    176 	-fno-move-loop-invariants \
    177 	-ffunction-sections \
    178 	-funwind-tables \
    179 	-g \
    180 	-fstack-protector \
    181 	-fno-short-enums \
    182 	-finline-limit=64 \
    183 	-Wa,--noexecstack \
    184 	-U_FORTIFY_SOURCE \
    185 	-Wno-extra \
    186 	-Wno-ignored-qualifiers \
    187 	-Wno-type-limits \
    188 	-Wno-unused-but-set-variable \
    189 	-Wno-address \
    190 	-Wno-format-security \
    191 	-Wno-return-type \
    192 	-Wno-sequence-point \
    193 	-fno-ident \
    194 	-fdata-sections \
    195 	-ffunction-sections \
    196 	-fomit-frame-pointer \
    197 	-funwind-tables \
    198 	-fdata-sections \
    199 	-ffunction-sections \
    200 	-O2
    201 
    202 MY_DEFS_Release := \
    203 	'-DV8_DEPRECATION_WARNINGS' \
    204 	'-D_FILE_OFFSET_BITS=64' \
    205 	'-DNO_TCMALLOC' \
    206 	'-DDISABLE_NACL' \
    207 	'-DCHROMIUM_BUILD' \
    208 	'-DUSE_LIBJPEG_TURBO=1' \
    209 	'-DENABLE_WEBRTC=1' \
    210 	'-DUSE_PROPRIETARY_CODECS' \
    211 	'-DENABLE_BROWSER_CDMS' \
    212 	'-DENABLE_CONFIGURATION_POLICY' \
    213 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    214 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    215 	'-DENABLE_EGLIMAGE=1' \
    216 	'-DCLD_VERSION=1' \
    217 	'-DENABLE_PRINTING=1' \
    218 	'-DENABLE_MANAGED_USERS=1' \
    219 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    220 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    221 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    222 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    223 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    224 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    225 	'-DVIDEO_HOLE=1' \
    226 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    227 	'-DV8_TARGET_ARCH_ARM' \
    228 	'-DCAN_USE_ARMV7_INSTRUCTIONS' \
    229 	'-DV8_I18N_SUPPORT' \
    230 	'-DUSE_OPENSSL=1' \
    231 	'-DUSE_OPENSSL_CERTS=1' \
    232 	'-DANDROID' \
    233 	'-D__GNU_SOURCE=1' \
    234 	'-DUSE_STLPORT=1' \
    235 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    236 	'-DCHROME_BUILD_ID=""' \
    237 	'-DNDEBUG' \
    238 	'-DNVALGRIND' \
    239 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    240 
    241 
    242 # Include paths placed before CFLAGS/CPPFLAGS
    243 LOCAL_C_INCLUDES_Release := \
    244 	$(LOCAL_PATH)/v8 \
    245 	$(gyp_shared_intermediate_dir) \
    246 	$(PWD)/frameworks/wilhelm/include \
    247 	$(PWD)/bionic \
    248 	$(PWD)/external/stlport/stlport
    249 
    250 
    251 # Flags passed to only C++ (and not C) files.
    252 LOCAL_CPPFLAGS_Release := \
    253 	-fno-exceptions \
    254 	-fno-rtti \
    255 	-fno-threadsafe-statics \
    256 	-fvisibility-inlines-hidden \
    257 	-Wno-deprecated \
    258 	-Wno-abi \
    259 	-std=gnu++11 \
    260 	-Wno-narrowing \
    261 	-Wno-literal-suffix \
    262 	-Wno-non-virtual-dtor \
    263 	-Wno-sign-promo \
    264 	-Wno-non-virtual-dtor
    265 
    266 
    267 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    268 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    269 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    270 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    271 ### Rules for final target.
    272 
    273 LOCAL_SHARED_LIBRARIES := \
    274 	libstlport \
    275 	libdl
    276 
    277 ### Set directly by aosp_build_settings.
    278 LOCAL_FDO_SUPPORT := true
    279 
    280 # Add target alias to "gyp_all_modules" target.
    281 .PHONY: gyp_all_modules
    282 gyp_all_modules: v8_tools_gyp_v8_libbase_gyp
    283 
    284 # Alias gyp target name.
    285 .PHONY: v8_libbase
    286 v8_libbase: v8_tools_gyp_v8_libbase_gyp
    287 
    288 include $(BUILD_STATIC_LIBRARY)
    289