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 	-fstack-protector \
     32 	--param=ssp-buffer-size=4 \
     33 	-Werror \
     34 	-fno-exceptions \
     35 	-fno-strict-aliasing \
     36 	-Wall \
     37 	-Wno-unused-parameter \
     38 	-Wno-missing-field-initializers \
     39 	-fvisibility=hidden \
     40 	-pipe \
     41 	-fPIC \
     42 	-fno-tree-sra \
     43 	-fuse-ld=gold \
     44 	-Wno-psabi \
     45 	-ffunction-sections \
     46 	-funwind-tables \
     47 	-g \
     48 	-fstack-protector \
     49 	-fno-short-enums \
     50 	-finline-limit=64 \
     51 	-Wa,--noexecstack \
     52 	-U_FORTIFY_SOURCE \
     53 	-Wno-extra \
     54 	-Wno-ignored-qualifiers \
     55 	-Wno-type-limits \
     56 	-Os \
     57 	-g \
     58 	-fomit-frame-pointer \
     59 	-fdata-sections \
     60 	-ffunction-sections
     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 	'-DUSE_PROPRIETARY_CODECS' \
     70 	'-DENABLE_CONFIGURATION_POLICY' \
     71 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     72 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     73 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     74 	'-DUSE_OPENSSL=1' \
     75 	'-DENABLE_EGLIMAGE=1' \
     76 	'-DCLD_VERSION=1' \
     77 	'-DENABLE_PRINTING=1' \
     78 	'-DENABLE_MANAGED_USERS=1' \
     79 	'-D__STDC_CONSTANT_MACROS' \
     80 	'-D__STDC_FORMAT_MACROS' \
     81 	'-DANDROID' \
     82 	'-D__GNU_SOURCE=1' \
     83 	'-DUSE_STLPORT=1' \
     84 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     85 	'-DCHROME_BUILD_ID=""' \
     86 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     87 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     88 	'-D_DEBUG'
     89 
     90 
     91 # Include paths placed before CFLAGS/CPPFLAGS
     92 LOCAL_C_INCLUDES_Debug := \
     93 	$(LOCAL_PATH) \
     94 	$(PWD)/frameworks/wilhelm/include \
     95 	$(PWD)/bionic \
     96 	$(PWD)/external/stlport/stlport
     97 
     98 
     99 # Flags passed to only C++ (and not C) files.
    100 LOCAL_CPPFLAGS_Debug := \
    101 	-fno-rtti \
    102 	-fno-threadsafe-statics \
    103 	-fvisibility-inlines-hidden \
    104 	-Wsign-compare \
    105 	-Wno-abi \
    106 	-Wno-error=c++0x-compat \
    107 	-Wno-non-virtual-dtor \
    108 	-Wno-sign-promo
    109 
    110 
    111 # Flags passed to both C and C++ files.
    112 MY_CFLAGS_Release := \
    113 	-fstack-protector \
    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 	-fno-tree-sra \
    125 	-fuse-ld=gold \
    126 	-Wno-psabi \
    127 	-ffunction-sections \
    128 	-funwind-tables \
    129 	-g \
    130 	-fstack-protector \
    131 	-fno-short-enums \
    132 	-finline-limit=64 \
    133 	-Wa,--noexecstack \
    134 	-U_FORTIFY_SOURCE \
    135 	-Wno-extra \
    136 	-Wno-ignored-qualifiers \
    137 	-Wno-type-limits \
    138 	-Os \
    139 	-fno-ident \
    140 	-fdata-sections \
    141 	-ffunction-sections \
    142 	-fomit-frame-pointer
    143 
    144 MY_DEFS_Release := \
    145 	'-DV8_DEPRECATION_WARNINGS' \
    146 	'-D_FILE_OFFSET_BITS=64' \
    147 	'-DNO_TCMALLOC' \
    148 	'-DDISABLE_NACL' \
    149 	'-DCHROMIUM_BUILD' \
    150 	'-DUSE_LIBJPEG_TURBO=1' \
    151 	'-DUSE_PROPRIETARY_CODECS' \
    152 	'-DENABLE_CONFIGURATION_POLICY' \
    153 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    154 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    155 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    156 	'-DUSE_OPENSSL=1' \
    157 	'-DENABLE_EGLIMAGE=1' \
    158 	'-DCLD_VERSION=1' \
    159 	'-DENABLE_PRINTING=1' \
    160 	'-DENABLE_MANAGED_USERS=1' \
    161 	'-D__STDC_CONSTANT_MACROS' \
    162 	'-D__STDC_FORMAT_MACROS' \
    163 	'-DANDROID' \
    164 	'-D__GNU_SOURCE=1' \
    165 	'-DUSE_STLPORT=1' \
    166 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    167 	'-DCHROME_BUILD_ID=""' \
    168 	'-DNDEBUG' \
    169 	'-DNVALGRIND' \
    170 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    171 	'-D_FORTIFY_SOURCE=2'
    172 
    173 
    174 # Include paths placed before CFLAGS/CPPFLAGS
    175 LOCAL_C_INCLUDES_Release := \
    176 	$(LOCAL_PATH) \
    177 	$(PWD)/frameworks/wilhelm/include \
    178 	$(PWD)/bionic \
    179 	$(PWD)/external/stlport/stlport
    180 
    181 
    182 # Flags passed to only C++ (and not C) files.
    183 LOCAL_CPPFLAGS_Release := \
    184 	-fno-rtti \
    185 	-fno-threadsafe-statics \
    186 	-fvisibility-inlines-hidden \
    187 	-Wsign-compare \
    188 	-Wno-abi \
    189 	-Wno-error=c++0x-compat \
    190 	-Wno-non-virtual-dtor \
    191 	-Wno-sign-promo
    192 
    193 
    194 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    195 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    196 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    197 ### Rules for final target.
    198 
    199 LOCAL_LDFLAGS_Debug := \
    200 	-Wl,-z,now \
    201 	-Wl,-z,relro \
    202 	-Wl,-z,noexecstack \
    203 	-fPIC \
    204 	-Wl,-z,relro \
    205 	-Wl,-z,now \
    206 	-fuse-ld=gold \
    207 	-nostdlib \
    208 	-Wl,--no-undefined \
    209 	-Wl,--exclude-libs=ALL \
    210 	-Wl,--icf=safe \
    211 	-Wl,--fatal-warnings \
    212 	-Wl,--gc-sections \
    213 	-Wl,--warn-shared-textrel \
    214 	-Wl,-O1 \
    215 	-Wl,--as-needed
    216 
    217 
    218 LOCAL_LDFLAGS_Release := \
    219 	-Wl,-z,now \
    220 	-Wl,-z,relro \
    221 	-Wl,-z,noexecstack \
    222 	-fPIC \
    223 	-Wl,-z,relro \
    224 	-Wl,-z,now \
    225 	-fuse-ld=gold \
    226 	-nostdlib \
    227 	-Wl,--no-undefined \
    228 	-Wl,--exclude-libs=ALL \
    229 	-Wl,--icf=safe \
    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