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_TAGS := optional
      9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
     10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_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/once.cc
     29 
     30 
     31 # Flags passed to both C and C++ files.
     32 MY_CFLAGS_Debug := \
     33 	-fstack-protector \
     34 	--param=ssp-buffer-size=4 \
     35 	-fno-exceptions \
     36 	-fno-strict-aliasing \
     37 	-Wno-unused-parameter \
     38 	-Wno-missing-field-initializers \
     39 	-fvisibility=hidden \
     40 	-pipe \
     41 	-fPIC \
     42 	-Wno-unused-local-typedefs \
     43 	-Wno-format \
     44 	-fno-tree-sra \
     45 	-fno-partial-inlining \
     46 	-fno-early-inlining \
     47 	-fno-tree-copy-prop \
     48 	-fno-tree-loop-optimize \
     49 	-fno-move-loop-invariants \
     50 	-fno-caller-saves \
     51 	-Wno-psabi \
     52 	-ffunction-sections \
     53 	-funwind-tables \
     54 	-g \
     55 	-fstack-protector \
     56 	-fno-short-enums \
     57 	-finline-limit=64 \
     58 	-Wa,--noexecstack \
     59 	-U_FORTIFY_SOURCE \
     60 	-Wno-extra \
     61 	-Wno-ignored-qualifiers \
     62 	-Wno-type-limits \
     63 	-Wno-unused-but-set-variable \
     64 	-Wno-address \
     65 	-Wno-format-security \
     66 	-Wno-return-type \
     67 	-Wno-sequence-point \
     68 	-Os \
     69 	-g \
     70 	-fdata-sections \
     71 	-ffunction-sections \
     72 	-fomit-frame-pointer \
     73 	-funwind-tables
     74 
     75 MY_DEFS_Debug := \
     76 	'-DV8_DEPRECATION_WARNINGS' \
     77 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
     78 	'-D_FILE_OFFSET_BITS=64' \
     79 	'-DNO_TCMALLOC' \
     80 	'-DDISABLE_NACL' \
     81 	'-DCHROMIUM_BUILD' \
     82 	'-DUSE_LIBJPEG_TURBO=1' \
     83 	'-DENABLE_WEBRTC=1' \
     84 	'-DUSE_PROPRIETARY_CODECS' \
     85 	'-DENABLE_BROWSER_CDMS' \
     86 	'-DENABLE_CONFIGURATION_POLICY' \
     87 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     88 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     89 	'-DENABLE_EGLIMAGE=1' \
     90 	'-DCLD_VERSION=1' \
     91 	'-DENABLE_PRINTING=1' \
     92 	'-DENABLE_MANAGED_USERS=1' \
     93 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     94 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
     95 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     96 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     97 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     98 	'-DVIDEO_HOLE=1' \
     99 	'-DV8_TARGET_ARCH_ARM' \
    100 	'-DV8_I18N_SUPPORT' \
    101 	'-DUSE_OPENSSL=1' \
    102 	'-DUSE_OPENSSL_CERTS=1' \
    103 	'-DANDROID' \
    104 	'-D__GNU_SOURCE=1' \
    105 	'-DUSE_STLPORT=1' \
    106 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    107 	'-DCHROME_BUILD_ID=""' \
    108 	'-DARM_TEST' \
    109 	'-DCAN_USE_ARMV7_INSTRUCTIONS=1' \
    110 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    111 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    112 	'-D_DEBUG' \
    113 	'-DENABLE_DISASSEMBLER' \
    114 	'-DV8_ENABLE_CHECKS' \
    115 	'-DOBJECT_PRINT' \
    116 	'-DVERIFY_HEAP' \
    117 	'-DENABLE_EXTRA_CHECKS' \
    118 	'-DENABLE_HANDLE_ZAPPING'
    119 
    120 
    121 # Include paths placed before CFLAGS/CPPFLAGS
    122 LOCAL_C_INCLUDES_Debug := \
    123 	$(LOCAL_PATH)/v8 \
    124 	$(gyp_shared_intermediate_dir) \
    125 	$(PWD)/frameworks/wilhelm/include \
    126 	$(PWD)/bionic \
    127 	$(PWD)/external/stlport/stlport
    128 
    129 
    130 # Flags passed to only C++ (and not C) files.
    131 LOCAL_CPPFLAGS_Debug := \
    132 	-fno-rtti \
    133 	-fno-threadsafe-statics \
    134 	-fvisibility-inlines-hidden \
    135 	-Wno-deprecated \
    136 	-Wno-abi \
    137 	-Wno-non-virtual-dtor \
    138 	-Wno-sign-promo \
    139 	-Wno-non-virtual-dtor
    140 
    141 
    142 LOCAL_FDO_SUPPORT_Debug := false
    143 
    144 # Flags passed to both C and C++ files.
    145 MY_CFLAGS_Release := \
    146 	-fstack-protector \
    147 	--param=ssp-buffer-size=4 \
    148 	-fno-exceptions \
    149 	-fno-strict-aliasing \
    150 	-Wno-unused-parameter \
    151 	-Wno-missing-field-initializers \
    152 	-fvisibility=hidden \
    153 	-pipe \
    154 	-fPIC \
    155 	-Wno-unused-local-typedefs \
    156 	-Wno-format \
    157 	-fno-tree-sra \
    158 	-fno-partial-inlining \
    159 	-fno-early-inlining \
    160 	-fno-tree-copy-prop \
    161 	-fno-tree-loop-optimize \
    162 	-fno-move-loop-invariants \
    163 	-fno-caller-saves \
    164 	-Wno-psabi \
    165 	-ffunction-sections \
    166 	-funwind-tables \
    167 	-g \
    168 	-fstack-protector \
    169 	-fno-short-enums \
    170 	-finline-limit=64 \
    171 	-Wa,--noexecstack \
    172 	-U_FORTIFY_SOURCE \
    173 	-Wno-extra \
    174 	-Wno-ignored-qualifiers \
    175 	-Wno-type-limits \
    176 	-Wno-unused-but-set-variable \
    177 	-Wno-address \
    178 	-Wno-format-security \
    179 	-Wno-return-type \
    180 	-Wno-sequence-point \
    181 	-fno-ident \
    182 	-fdata-sections \
    183 	-ffunction-sections \
    184 	-fomit-frame-pointer \
    185 	-funwind-tables \
    186 	-fdata-sections \
    187 	-ffunction-sections \
    188 	-O2
    189 
    190 MY_DEFS_Release := \
    191 	'-DV8_DEPRECATION_WARNINGS' \
    192 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    193 	'-D_FILE_OFFSET_BITS=64' \
    194 	'-DNO_TCMALLOC' \
    195 	'-DDISABLE_NACL' \
    196 	'-DCHROMIUM_BUILD' \
    197 	'-DUSE_LIBJPEG_TURBO=1' \
    198 	'-DENABLE_WEBRTC=1' \
    199 	'-DUSE_PROPRIETARY_CODECS' \
    200 	'-DENABLE_BROWSER_CDMS' \
    201 	'-DENABLE_CONFIGURATION_POLICY' \
    202 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    203 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    204 	'-DENABLE_EGLIMAGE=1' \
    205 	'-DCLD_VERSION=1' \
    206 	'-DENABLE_PRINTING=1' \
    207 	'-DENABLE_MANAGED_USERS=1' \
    208 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    209 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    210 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    211 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    212 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    213 	'-DVIDEO_HOLE=1' \
    214 	'-DV8_TARGET_ARCH_ARM' \
    215 	'-DV8_I18N_SUPPORT' \
    216 	'-DUSE_OPENSSL=1' \
    217 	'-DUSE_OPENSSL_CERTS=1' \
    218 	'-DANDROID' \
    219 	'-D__GNU_SOURCE=1' \
    220 	'-DUSE_STLPORT=1' \
    221 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    222 	'-DCHROME_BUILD_ID=""' \
    223 	'-DARM_TEST' \
    224 	'-DCAN_USE_ARMV7_INSTRUCTIONS=1' \
    225 	'-DNDEBUG' \
    226 	'-DNVALGRIND' \
    227 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    228 
    229 
    230 # Include paths placed before CFLAGS/CPPFLAGS
    231 LOCAL_C_INCLUDES_Release := \
    232 	$(LOCAL_PATH)/v8 \
    233 	$(gyp_shared_intermediate_dir) \
    234 	$(PWD)/frameworks/wilhelm/include \
    235 	$(PWD)/bionic \
    236 	$(PWD)/external/stlport/stlport
    237 
    238 
    239 # Flags passed to only C++ (and not C) files.
    240 LOCAL_CPPFLAGS_Release := \
    241 	-fno-rtti \
    242 	-fno-threadsafe-statics \
    243 	-fvisibility-inlines-hidden \
    244 	-Wno-deprecated \
    245 	-Wno-abi \
    246 	-Wno-non-virtual-dtor \
    247 	-Wno-sign-promo \
    248 	-Wno-non-virtual-dtor
    249 
    250 
    251 LOCAL_FDO_SUPPORT_Release := true
    252 
    253 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    254 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    255 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    256 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    257 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    258 ### Rules for final target.
    259 
    260 LOCAL_LDFLAGS_Debug := \
    261 	-Wl,-z,now \
    262 	-Wl,-z,relro \
    263 	-Wl,--fatal-warnings \
    264 	-Wl,-z,noexecstack \
    265 	-fPIC \
    266 	-Wl,-z,relro \
    267 	-Wl,-z,now \
    268 	-fuse-ld=gold \
    269 	-nostdlib \
    270 	-Wl,--no-undefined \
    271 	-Wl,--exclude-libs=ALL \
    272 	-Wl,--icf=safe \
    273 	-Wl,--warn-shared-textrel \
    274 	-Wl,-O1 \
    275 	-Wl,--as-needed
    276 
    277 
    278 LOCAL_LDFLAGS_Release := \
    279 	-Wl,-z,now \
    280 	-Wl,-z,relro \
    281 	-Wl,--fatal-warnings \
    282 	-Wl,-z,noexecstack \
    283 	-fPIC \
    284 	-Wl,-z,relro \
    285 	-Wl,-z,now \
    286 	-fuse-ld=gold \
    287 	-nostdlib \
    288 	-Wl,--no-undefined \
    289 	-Wl,--exclude-libs=ALL \
    290 	-Wl,--icf=safe \
    291 	-Wl,-O1 \
    292 	-Wl,--as-needed \
    293 	-Wl,--gc-sections \
    294 	-Wl,--warn-shared-textrel
    295 
    296 
    297 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    298 
    299 LOCAL_STATIC_LIBRARIES :=
    300 
    301 # Enable grouping to fix circular references
    302 LOCAL_GROUP_STATIC_LIBRARIES := true
    303 
    304 LOCAL_SHARED_LIBRARIES := \
    305 	libstlport \
    306 	libdl
    307 
    308 # Add target alias to "gyp_all_modules" target.
    309 .PHONY: gyp_all_modules
    310 gyp_all_modules: v8_tools_gyp_v8_libbase_gyp
    311 
    312 # Alias gyp target name.
    313 .PHONY: v8_libbase
    314 v8_libbase: v8_tools_gyp_v8_libbase_gyp
    315 
    316 include $(BUILD_STATIC_LIBRARY)
    317