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_TAGS := optional
      9 gyp_intermediate_dir := $(call local-intermediates-dir)
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     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 	--param=ssp-buffer-size=4 \
     32 	-Werror \
     33 	-fno-exceptions \
     34 	-fno-strict-aliasing \
     35 	-Wall \
     36 	-Wno-unused-parameter \
     37 	-Wno-missing-field-initializers \
     38 	-fvisibility=hidden \
     39 	-pipe \
     40 	-fPIC \
     41 	-m32 \
     42 	-mmmx \
     43 	-march=pentium4 \
     44 	-msse2 \
     45 	-mfpmath=sse \
     46 	-fuse-ld=gold \
     47 	-ffunction-sections \
     48 	-funwind-tables \
     49 	-g \
     50 	-fno-short-enums \
     51 	-finline-limit=64 \
     52 	-Wa,--noexecstack \
     53 	-U_FORTIFY_SOURCE \
     54 	-Wno-extra \
     55 	-Wno-ignored-qualifiers \
     56 	-Wno-type-limits \
     57 	-fno-stack-protector \
     58 	-Os \
     59 	-g \
     60 	-fomit-frame-pointer \
     61 	-fdata-sections \
     62 	-ffunction-sections
     63 
     64 MY_DEFS_Debug := \
     65 	'-DV8_DEPRECATION_WARNINGS' \
     66 	'-D_FILE_OFFSET_BITS=64' \
     67 	'-DNO_TCMALLOC' \
     68 	'-DDISABLE_NACL' \
     69 	'-DCHROMIUM_BUILD' \
     70 	'-DUSE_LIBJPEG_TURBO=1' \
     71 	'-DUSE_PROPRIETARY_CODECS' \
     72 	'-DENABLE_CONFIGURATION_POLICY' \
     73 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     74 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     75 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     76 	'-DUSE_OPENSSL=1' \
     77 	'-DENABLE_EGLIMAGE=1' \
     78 	'-DCLD_VERSION=1' \
     79 	'-DENABLE_PRINTING=1' \
     80 	'-DENABLE_MANAGED_USERS=1' \
     81 	'-D__STDC_CONSTANT_MACROS' \
     82 	'-D__STDC_FORMAT_MACROS' \
     83 	'-DANDROID' \
     84 	'-D__GNU_SOURCE=1' \
     85 	'-DUSE_STLPORT=1' \
     86 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     87 	'-DCHROME_BUILD_ID=""' \
     88 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     89 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     90 	'-D_DEBUG'
     91 
     92 
     93 # Include paths placed before CFLAGS/CPPFLAGS
     94 LOCAL_C_INCLUDES_Debug := \
     95 	$(LOCAL_PATH) \
     96 	$(PWD)/frameworks/wilhelm/include \
     97 	$(PWD)/bionic \
     98 	$(PWD)/external/stlport/stlport
     99 
    100 
    101 # Flags passed to only C++ (and not C) files.
    102 LOCAL_CPPFLAGS_Debug := \
    103 	-fno-rtti \
    104 	-fno-threadsafe-statics \
    105 	-fvisibility-inlines-hidden \
    106 	-Wsign-compare \
    107 	-Wno-error=c++0x-compat \
    108 	-Wno-non-virtual-dtor \
    109 	-Wno-sign-promo
    110 
    111 
    112 # Flags passed to both C and C++ files.
    113 MY_CFLAGS_Release := \
    114 	--param=ssp-buffer-size=4 \
    115 	-Werror \
    116 	-fno-exceptions \
    117 	-fno-strict-aliasing \
    118 	-Wall \
    119 	-Wno-unused-parameter \
    120 	-Wno-missing-field-initializers \
    121 	-fvisibility=hidden \
    122 	-pipe \
    123 	-fPIC \
    124 	-m32 \
    125 	-mmmx \
    126 	-march=pentium4 \
    127 	-msse2 \
    128 	-mfpmath=sse \
    129 	-fuse-ld=gold \
    130 	-ffunction-sections \
    131 	-funwind-tables \
    132 	-g \
    133 	-fno-short-enums \
    134 	-finline-limit=64 \
    135 	-Wa,--noexecstack \
    136 	-U_FORTIFY_SOURCE \
    137 	-Wno-extra \
    138 	-Wno-ignored-qualifiers \
    139 	-Wno-type-limits \
    140 	-fno-stack-protector \
    141 	-Os \
    142 	-fno-ident \
    143 	-fdata-sections \
    144 	-ffunction-sections \
    145 	-fomit-frame-pointer \
    146 	-fno-unwind-tables \
    147 	-fno-asynchronous-unwind-tables
    148 
    149 MY_DEFS_Release := \
    150 	'-DV8_DEPRECATION_WARNINGS' \
    151 	'-D_FILE_OFFSET_BITS=64' \
    152 	'-DNO_TCMALLOC' \
    153 	'-DDISABLE_NACL' \
    154 	'-DCHROMIUM_BUILD' \
    155 	'-DUSE_LIBJPEG_TURBO=1' \
    156 	'-DUSE_PROPRIETARY_CODECS' \
    157 	'-DENABLE_CONFIGURATION_POLICY' \
    158 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    159 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    160 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    161 	'-DUSE_OPENSSL=1' \
    162 	'-DENABLE_EGLIMAGE=1' \
    163 	'-DCLD_VERSION=1' \
    164 	'-DENABLE_PRINTING=1' \
    165 	'-DENABLE_MANAGED_USERS=1' \
    166 	'-D__STDC_CONSTANT_MACROS' \
    167 	'-D__STDC_FORMAT_MACROS' \
    168 	'-DANDROID' \
    169 	'-D__GNU_SOURCE=1' \
    170 	'-DUSE_STLPORT=1' \
    171 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    172 	'-DCHROME_BUILD_ID=""' \
    173 	'-DNDEBUG' \
    174 	'-DNVALGRIND' \
    175 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    176 	'-D_FORTIFY_SOURCE=2'
    177 
    178 
    179 # Include paths placed before CFLAGS/CPPFLAGS
    180 LOCAL_C_INCLUDES_Release := \
    181 	$(LOCAL_PATH) \
    182 	$(PWD)/frameworks/wilhelm/include \
    183 	$(PWD)/bionic \
    184 	$(PWD)/external/stlport/stlport
    185 
    186 
    187 # Flags passed to only C++ (and not C) files.
    188 LOCAL_CPPFLAGS_Release := \
    189 	-fno-rtti \
    190 	-fno-threadsafe-statics \
    191 	-fvisibility-inlines-hidden \
    192 	-Wsign-compare \
    193 	-Wno-error=c++0x-compat \
    194 	-Wno-non-virtual-dtor \
    195 	-Wno-sign-promo
    196 
    197 
    198 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    199 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    200 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    201 ### Rules for final target.
    202 
    203 LOCAL_LDFLAGS_Debug := \
    204 	-Wl,-z,now \
    205 	-Wl,-z,relro \
    206 	-Wl,-z,noexecstack \
    207 	-fPIC \
    208 	-m32 \
    209 	-fuse-ld=gold \
    210 	-nostdlib \
    211 	-Wl,--no-undefined \
    212 	-Wl,--exclude-libs=ALL \
    213 	-Wl,--fatal-warnings \
    214 	-Wl,--gc-sections \
    215 	-Wl,--warn-shared-textrel \
    216 	-Wl,-O1 \
    217 	-Wl,--as-needed
    218 
    219 
    220 LOCAL_LDFLAGS_Release := \
    221 	-Wl,-z,now \
    222 	-Wl,-z,relro \
    223 	-Wl,-z,noexecstack \
    224 	-fPIC \
    225 	-m32 \
    226 	-fuse-ld=gold \
    227 	-nostdlib \
    228 	-Wl,--no-undefined \
    229 	-Wl,--exclude-libs=ALL \
    230 	-Wl,-O1 \
    231 	-Wl,--as-needed \
    232 	-Wl,--gc-sections \
    233 	-Wl,--fatal-warnings \
    234 	-Wl,--warn-shared-textrel
    235 
    236 
    237 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    238 
    239 LOCAL_STATIC_LIBRARIES :=
    240 
    241 # Enable grouping to fix circular references
    242 LOCAL_GROUP_STATIC_LIBRARIES := true
    243 
    244 LOCAL_SHARED_LIBRARIES := \
    245 	libstlport \
    246 	libdl
    247 
    248 # Add target alias to "gyp_all_modules" target.
    249 .PHONY: gyp_all_modules
    250 gyp_all_modules: base_base_static_gyp
    251 
    252 # Alias gyp target name.
    253 .PHONY: base_static
    254 base_static: base_base_static_gyp
    255 
    256 include $(BUILD_STATIC_LIBRARY)
    257