Home | History | Annotate | Download | only in base
      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 := base_base_static_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 	base/base_switches.cc
     27 
     28 
     29 # Flags passed to both C and C++ files.
     30 MY_CFLAGS_Debug := \
     31 	-fstack-protector \
     32 	--param=ssp-buffer-size=4 \
     33 	 \
     34 	-fno-strict-aliasing \
     35 	-Wall \
     36 	-Wno-unused-parameter \
     37 	-Wno-missing-field-initializers \
     38 	-fvisibility=hidden \
     39 	-pipe \
     40 	-fPIC \
     41 	-Wno-unused-local-typedefs \
     42 	-ffunction-sections \
     43 	-funwind-tables \
     44 	-g \
     45 	-fstack-protector \
     46 	-fno-short-enums \
     47 	-finline-limit=64 \
     48 	-Wa,--noexecstack \
     49 	-U_FORTIFY_SOURCE \
     50 	-Wno-extra \
     51 	-Wno-ignored-qualifiers \
     52 	-Wno-type-limits \
     53 	-Wno-unused-but-set-variable \
     54 	-Os \
     55 	-g \
     56 	-gdwarf-4 \
     57 	-fdata-sections \
     58 	-ffunction-sections \
     59 	-fomit-frame-pointer \
     60 	-funwind-tables
     61 
     62 MY_DEFS_Debug := \
     63 	'-DV8_DEPRECATION_WARNINGS' \
     64 	'-D_FILE_OFFSET_BITS=64' \
     65 	'-DNO_TCMALLOC' \
     66 	'-DDISABLE_NACL' \
     67 	'-DCHROMIUM_BUILD' \
     68 	'-DUSE_LIBJPEG_TURBO=1' \
     69 	'-DENABLE_WEBRTC=1' \
     70 	'-DUSE_PROPRIETARY_CODECS' \
     71 	'-DENABLE_BROWSER_CDMS' \
     72 	'-DENABLE_CONFIGURATION_POLICY' \
     73 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     74 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     75 	'-DENABLE_EGLIMAGE=1' \
     76 	'-DCLD_VERSION=1' \
     77 	'-DENABLE_PRINTING=1' \
     78 	'-DENABLE_MANAGED_USERS=1' \
     79 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     80 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     81 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     82 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     83 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     84 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     85 	'-DVIDEO_HOLE=1' \
     86 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     87 	'-DUSE_OPENSSL=1' \
     88 	'-DUSE_OPENSSL_CERTS=1' \
     89 	'-D__STDC_CONSTANT_MACROS' \
     90 	'-D__STDC_FORMAT_MACROS' \
     91 	'-DANDROID' \
     92 	'-D__GNU_SOURCE=1' \
     93 	'-DUSE_STLPORT=1' \
     94 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     95 	'-DCHROME_BUILD_ID=""' \
     96 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     97 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     98 	'-D_DEBUG'
     99 
    100 
    101 # Include paths placed before CFLAGS/CPPFLAGS
    102 LOCAL_C_INCLUDES_Debug := \
    103 	$(gyp_shared_intermediate_dir) \
    104 	$(LOCAL_PATH) \
    105 	$(PWD)/frameworks/wilhelm/include \
    106 	$(PWD)/bionic \
    107 	$(PWD)/external/stlport/stlport
    108 
    109 
    110 # Flags passed to only C++ (and not C) files.
    111 LOCAL_CPPFLAGS_Debug := \
    112 	-fno-exceptions \
    113 	-fno-rtti \
    114 	-fno-threadsafe-statics \
    115 	-fvisibility-inlines-hidden \
    116 	-Wsign-compare \
    117 	-Wno-uninitialized \
    118 	-std=gnu++11 \
    119 	-Wno-narrowing \
    120 	-Wno-literal-suffix \
    121 	-Wno-non-virtual-dtor \
    122 	-Wno-sign-promo
    123 
    124 
    125 # Flags passed to both C and C++ files.
    126 MY_CFLAGS_Release := \
    127 	-fstack-protector \
    128 	--param=ssp-buffer-size=4 \
    129 	 \
    130 	-fno-strict-aliasing \
    131 	-Wall \
    132 	-Wno-unused-parameter \
    133 	-Wno-missing-field-initializers \
    134 	-fvisibility=hidden \
    135 	-pipe \
    136 	-fPIC \
    137 	-Wno-unused-local-typedefs \
    138 	-ffunction-sections \
    139 	-funwind-tables \
    140 	-g \
    141 	-fstack-protector \
    142 	-fno-short-enums \
    143 	-finline-limit=64 \
    144 	-Wa,--noexecstack \
    145 	-U_FORTIFY_SOURCE \
    146 	-Wno-extra \
    147 	-Wno-ignored-qualifiers \
    148 	-Wno-type-limits \
    149 	-Wno-unused-but-set-variable \
    150 	-fno-ident \
    151 	-fdata-sections \
    152 	-ffunction-sections \
    153 	-fomit-frame-pointer \
    154 	-funwind-tables \
    155 	-O2
    156 
    157 MY_DEFS_Release := \
    158 	'-DV8_DEPRECATION_WARNINGS' \
    159 	'-D_FILE_OFFSET_BITS=64' \
    160 	'-DNO_TCMALLOC' \
    161 	'-DDISABLE_NACL' \
    162 	'-DCHROMIUM_BUILD' \
    163 	'-DUSE_LIBJPEG_TURBO=1' \
    164 	'-DENABLE_WEBRTC=1' \
    165 	'-DUSE_PROPRIETARY_CODECS' \
    166 	'-DENABLE_BROWSER_CDMS' \
    167 	'-DENABLE_CONFIGURATION_POLICY' \
    168 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    169 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    170 	'-DENABLE_EGLIMAGE=1' \
    171 	'-DCLD_VERSION=1' \
    172 	'-DENABLE_PRINTING=1' \
    173 	'-DENABLE_MANAGED_USERS=1' \
    174 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    175 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    176 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    177 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    178 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    179 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    180 	'-DVIDEO_HOLE=1' \
    181 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    182 	'-DUSE_OPENSSL=1' \
    183 	'-DUSE_OPENSSL_CERTS=1' \
    184 	'-D__STDC_CONSTANT_MACROS' \
    185 	'-D__STDC_FORMAT_MACROS' \
    186 	'-DANDROID' \
    187 	'-D__GNU_SOURCE=1' \
    188 	'-DUSE_STLPORT=1' \
    189 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    190 	'-DCHROME_BUILD_ID=""' \
    191 	'-DNDEBUG' \
    192 	'-DNVALGRIND' \
    193 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    194 	'-D_FORTIFY_SOURCE=2'
    195 
    196 
    197 # Include paths placed before CFLAGS/CPPFLAGS
    198 LOCAL_C_INCLUDES_Release := \
    199 	$(gyp_shared_intermediate_dir) \
    200 	$(LOCAL_PATH) \
    201 	$(PWD)/frameworks/wilhelm/include \
    202 	$(PWD)/bionic \
    203 	$(PWD)/external/stlport/stlport
    204 
    205 
    206 # Flags passed to only C++ (and not C) files.
    207 LOCAL_CPPFLAGS_Release := \
    208 	-fno-exceptions \
    209 	-fno-rtti \
    210 	-fno-threadsafe-statics \
    211 	-fvisibility-inlines-hidden \
    212 	-Wsign-compare \
    213 	-Wno-uninitialized \
    214 	-std=gnu++11 \
    215 	-Wno-narrowing \
    216 	-Wno-literal-suffix \
    217 	-Wno-non-virtual-dtor \
    218 	-Wno-sign-promo
    219 
    220 
    221 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    222 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    223 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    224 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    225 ### Rules for final target.
    226 
    227 LOCAL_SHARED_LIBRARIES := \
    228 	libstlport \
    229 	libdl
    230 
    231 # Add target alias to "gyp_all_modules" target.
    232 .PHONY: gyp_all_modules
    233 gyp_all_modules: base_base_static_gyp
    234 
    235 # Alias gyp target name.
    236 .PHONY: base_static
    237 base_static: base_base_static_gyp
    238 
    239 include $(BUILD_STATIC_LIBRARY)
    240