Home | History | Annotate | Download | only in components
      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 := components_user_prefs_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 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a
     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 	components/user_prefs/pref_registry_syncable.cc \
     28 	components/user_prefs/user_prefs.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 	-Werror \
     36 	-fno-exceptions \
     37 	-fno-strict-aliasing \
     38 	-Wall \
     39 	-Wno-unused-parameter \
     40 	-Wno-missing-field-initializers \
     41 	-fvisibility=hidden \
     42 	-pipe \
     43 	-fPIC \
     44 	-fno-tree-sra \
     45 	-fuse-ld=gold \
     46 	-Wno-psabi \
     47 	-ffunction-sections \
     48 	-funwind-tables \
     49 	-g \
     50 	-fstack-protector \
     51 	-fno-short-enums \
     52 	-finline-limit=64 \
     53 	-Wa,--noexecstack \
     54 	-U_FORTIFY_SOURCE \
     55 	-Wno-extra \
     56 	-Wno-ignored-qualifiers \
     57 	-Wno-type-limits \
     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 	'-DUSER_PREFS_IMPLEMENTATION' \
     82 	'-DPOSIX_AVOID_MMAP' \
     83 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
     84 	'-DU_USING_ICU_NAMESPACE=0' \
     85 	'-D__STDC_CONSTANT_MACROS' \
     86 	'-D__STDC_FORMAT_MACROS' \
     87 	'-DANDROID' \
     88 	'-D__GNU_SOURCE=1' \
     89 	'-DUSE_STLPORT=1' \
     90 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     91 	'-DCHROME_BUILD_ID=""' \
     92 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     93 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     94 	'-D_DEBUG'
     95 
     96 
     97 # Include paths placed before CFLAGS/CPPFLAGS
     98 LOCAL_C_INCLUDES_Debug := \
     99 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    100 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    101 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    102 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    103 	$(LOCAL_PATH) \
    104 	$(LOCAL_PATH)/skia/config \
    105 	$(LOCAL_PATH)/third_party/khronos \
    106 	$(LOCAL_PATH)/gpu \
    107 	$(LOCAL_PATH)/third_party/WebKit/Source \
    108 	$(PWD)/external/skia/include \
    109 	$(PWD)/external/skia/include/core \
    110 	$(LOCAL_PATH)/third_party/skia/src/core \
    111 	$(LOCAL_PATH)/skia/ext \
    112 	$(PWD)/external/icu4c/common \
    113 	$(PWD)/external/icu4c/i18n \
    114 	$(PWD)/frameworks/wilhelm/include \
    115 	$(PWD)/bionic \
    116 	$(PWD)/external/stlport/stlport
    117 
    118 
    119 # Flags passed to only C++ (and not C) files.
    120 LOCAL_CPPFLAGS_Debug := \
    121 	-fno-rtti \
    122 	-fno-threadsafe-statics \
    123 	-fvisibility-inlines-hidden \
    124 	-Wsign-compare \
    125 	-Wno-abi \
    126 	-Wno-error=c++0x-compat \
    127 	-Wno-non-virtual-dtor \
    128 	-Wno-sign-promo
    129 
    130 
    131 # Flags passed to both C and C++ files.
    132 MY_CFLAGS_Release := \
    133 	-fstack-protector \
    134 	--param=ssp-buffer-size=4 \
    135 	-Werror \
    136 	-fno-exceptions \
    137 	-fno-strict-aliasing \
    138 	-Wall \
    139 	-Wno-unused-parameter \
    140 	-Wno-missing-field-initializers \
    141 	-fvisibility=hidden \
    142 	-pipe \
    143 	-fPIC \
    144 	-fno-tree-sra \
    145 	-fuse-ld=gold \
    146 	-Wno-psabi \
    147 	-ffunction-sections \
    148 	-funwind-tables \
    149 	-g \
    150 	-fstack-protector \
    151 	-fno-short-enums \
    152 	-finline-limit=64 \
    153 	-Wa,--noexecstack \
    154 	-U_FORTIFY_SOURCE \
    155 	-Wno-extra \
    156 	-Wno-ignored-qualifiers \
    157 	-Wno-type-limits \
    158 	-Os \
    159 	-fno-ident \
    160 	-fdata-sections \
    161 	-ffunction-sections \
    162 	-fomit-frame-pointer
    163 
    164 MY_DEFS_Release := \
    165 	'-DV8_DEPRECATION_WARNINGS' \
    166 	'-D_FILE_OFFSET_BITS=64' \
    167 	'-DNO_TCMALLOC' \
    168 	'-DDISABLE_NACL' \
    169 	'-DCHROMIUM_BUILD' \
    170 	'-DUSE_LIBJPEG_TURBO=1' \
    171 	'-DUSE_PROPRIETARY_CODECS' \
    172 	'-DENABLE_CONFIGURATION_POLICY' \
    173 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    174 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    175 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    176 	'-DUSE_OPENSSL=1' \
    177 	'-DENABLE_EGLIMAGE=1' \
    178 	'-DCLD_VERSION=1' \
    179 	'-DENABLE_PRINTING=1' \
    180 	'-DENABLE_MANAGED_USERS=1' \
    181 	'-DUSER_PREFS_IMPLEMENTATION' \
    182 	'-DPOSIX_AVOID_MMAP' \
    183 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    184 	'-DU_USING_ICU_NAMESPACE=0' \
    185 	'-D__STDC_CONSTANT_MACROS' \
    186 	'-D__STDC_FORMAT_MACROS' \
    187 	'-DANDROID' \
    188 	'-D__GNU_SOURCE=1' \
    189 	'-DUSE_STLPORT=1' \
    190 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    191 	'-DCHROME_BUILD_ID=""' \
    192 	'-DNDEBUG' \
    193 	'-DNVALGRIND' \
    194 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    195 	'-D_FORTIFY_SOURCE=2'
    196 
    197 
    198 # Include paths placed before CFLAGS/CPPFLAGS
    199 LOCAL_C_INCLUDES_Release := \
    200 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    201 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    202 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    203 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    204 	$(LOCAL_PATH) \
    205 	$(LOCAL_PATH)/skia/config \
    206 	$(LOCAL_PATH)/third_party/khronos \
    207 	$(LOCAL_PATH)/gpu \
    208 	$(LOCAL_PATH)/third_party/WebKit/Source \
    209 	$(PWD)/external/skia/include \
    210 	$(PWD)/external/skia/include/core \
    211 	$(LOCAL_PATH)/third_party/skia/src/core \
    212 	$(LOCAL_PATH)/skia/ext \
    213 	$(PWD)/external/icu4c/common \
    214 	$(PWD)/external/icu4c/i18n \
    215 	$(PWD)/frameworks/wilhelm/include \
    216 	$(PWD)/bionic \
    217 	$(PWD)/external/stlport/stlport
    218 
    219 
    220 # Flags passed to only C++ (and not C) files.
    221 LOCAL_CPPFLAGS_Release := \
    222 	-fno-rtti \
    223 	-fno-threadsafe-statics \
    224 	-fvisibility-inlines-hidden \
    225 	-Wsign-compare \
    226 	-Wno-abi \
    227 	-Wno-error=c++0x-compat \
    228 	-Wno-non-virtual-dtor \
    229 	-Wno-sign-promo
    230 
    231 
    232 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    233 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    234 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    235 ### Rules for final target.
    236 
    237 LOCAL_LDFLAGS_Debug := \
    238 	-Wl,-z,now \
    239 	-Wl,-z,relro \
    240 	-Wl,-z,noexecstack \
    241 	-fPIC \
    242 	-Wl,-z,relro \
    243 	-Wl,-z,now \
    244 	-fuse-ld=gold \
    245 	-nostdlib \
    246 	-Wl,--no-undefined \
    247 	-Wl,--exclude-libs=ALL \
    248 	-Wl,--icf=safe \
    249 	-Wl,--fatal-warnings \
    250 	-Wl,--gc-sections \
    251 	-Wl,--warn-shared-textrel \
    252 	-Wl,-O1 \
    253 	-Wl,--as-needed
    254 
    255 
    256 LOCAL_LDFLAGS_Release := \
    257 	-Wl,-z,now \
    258 	-Wl,-z,relro \
    259 	-Wl,-z,noexecstack \
    260 	-fPIC \
    261 	-Wl,-z,relro \
    262 	-Wl,-z,now \
    263 	-fuse-ld=gold \
    264 	-nostdlib \
    265 	-Wl,--no-undefined \
    266 	-Wl,--exclude-libs=ALL \
    267 	-Wl,--icf=safe \
    268 	-Wl,-O1 \
    269 	-Wl,--as-needed \
    270 	-Wl,--gc-sections \
    271 	-Wl,--fatal-warnings \
    272 	-Wl,--warn-shared-textrel
    273 
    274 
    275 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    276 
    277 LOCAL_STATIC_LIBRARIES := \
    278 	ui_ui_gyp
    279 
    280 # Enable grouping to fix circular references
    281 LOCAL_GROUP_STATIC_LIBRARIES := true
    282 
    283 LOCAL_SHARED_LIBRARIES := \
    284 	libskia \
    285 	libstlport \
    286 	libdl
    287 
    288 # Add target alias to "gyp_all_modules" target.
    289 .PHONY: gyp_all_modules
    290 gyp_all_modules: components_user_prefs_gyp
    291 
    292 # Alias gyp target name.
    293 .PHONY: user_prefs
    294 user_prefs: components_user_prefs_gyp
    295 
    296 include $(BUILD_STATIC_LIBRARY)
    297