Home | History | Annotate | Download | only in ui
      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 := ui_ui_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,GYP,skia_skia_gyp)/skia.stamp \
     15 	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \
     16 	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \
     17 	$(call intermediates-dir-for,GYP,ui_base_strings_ui_strings_gyp)/ui_strings.stamp \
     18 	$(call intermediates-dir-for,GYP,ui_resources_ui_resources_gyp)/ui_resources.stamp \
     19 	$(call intermediates-dir-for,GYP,ui_ui_base_jni_headers_gyp)/ui_base_jni_headers.stamp
     20 
     21 GYP_GENERATED_OUTPUTS :=
     22 
     23 # Make sure our deps and generated files are built first.
     24 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     25 
     26 LOCAL_CPP_EXTENSION := .cc
     27 LOCAL_GENERATED_SOURCES :=
     28 
     29 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     30 
     31 LOCAL_SRC_FILES := \
     32 	ui/base/accelerators/accelerator.cc \
     33 	ui/base/accelerators/accelerator_manager.cc \
     34 	ui/base/android/ui_base_jni_registrar.cc \
     35 	ui/base/android/view_android.cc \
     36 	ui/base/android/window_android.cc \
     37 	ui/base/base_window.cc \
     38 	ui/base/clipboard/clipboard.cc \
     39 	ui/base/clipboard/clipboard_android.cc \
     40 	ui/base/clipboard/clipboard_constants.cc \
     41 	ui/base/clipboard/custom_data_helper.cc \
     42 	ui/base/clipboard/scoped_clipboard_writer.cc \
     43 	ui/base/device_form_factor_android.cc \
     44 	ui/base/l10n/l10n_util.cc \
     45 	ui/base/l10n/l10n_util_android.cc \
     46 	ui/base/l10n/l10n_util_plurals.cc \
     47 	ui/base/l10n/l10n_util_posix.cc \
     48 	ui/base/l10n/time_format.cc \
     49 	ui/base/layout.cc \
     50 	ui/base/models/combobox_model.cc \
     51 	ui/base/models/list_selection_model.cc \
     52 	ui/base/models/menu_model.cc \
     53 	ui/base/models/simple_menu_model.cc \
     54 	ui/base/models/table_model.cc \
     55 	ui/base/models/tree_model.cc \
     56 	ui/base/resource/data_pack.cc \
     57 	ui/base/resource/resource_bundle.cc \
     58 	ui/base/resource/resource_bundle_android.cc \
     59 	ui/base/text/bytes_formatting.cc \
     60 	ui/base/touch/touch_device_android.cc \
     61 	ui/base/touch/touch_enabled.cc \
     62 	ui/base/ui_base_exports.cc \
     63 	ui/base/ui_base_paths.cc \
     64 	ui/base/ui_base_switches.cc \
     65 	ui/base/ui_base_switches_util.cc \
     66 	ui/base/webui/jstemplate_builder.cc \
     67 	ui/base/webui/web_ui_util.cc \
     68 	ui/base/window_open_disposition.cc \
     69 	ui/base/ime/composition_text.cc \
     70 	ui/base/ime/dummy_input_method_delegate.cc \
     71 	ui/base/ime/input_method_base.cc \
     72 	ui/base/ime/input_method_initializer.cc \
     73 	ui/base/ime/mock_input_method.cc \
     74 	ui/base/ime/text_input_client.cc
     75 
     76 
     77 # Flags passed to both C and C++ files.
     78 MY_CFLAGS_Debug := \
     79 	--param=ssp-buffer-size=4 \
     80 	-Werror \
     81 	-fno-exceptions \
     82 	-fno-strict-aliasing \
     83 	-Wall \
     84 	-Wno-unused-parameter \
     85 	-Wno-missing-field-initializers \
     86 	-fvisibility=hidden \
     87 	-pipe \
     88 	-fPIC \
     89 	-m32 \
     90 	-mmmx \
     91 	-march=pentium4 \
     92 	-msse2 \
     93 	-mfpmath=sse \
     94 	-fuse-ld=gold \
     95 	-ffunction-sections \
     96 	-funwind-tables \
     97 	-g \
     98 	-fno-short-enums \
     99 	-finline-limit=64 \
    100 	-Wa,--noexecstack \
    101 	-U_FORTIFY_SOURCE \
    102 	-Wno-extra \
    103 	-Wno-ignored-qualifiers \
    104 	-Wno-type-limits \
    105 	-fno-stack-protector \
    106 	-Os \
    107 	-g \
    108 	-fomit-frame-pointer \
    109 	-fdata-sections \
    110 	-ffunction-sections
    111 
    112 MY_DEFS_Debug := \
    113 	'-DV8_DEPRECATION_WARNINGS' \
    114 	'-D_FILE_OFFSET_BITS=64' \
    115 	'-DNO_TCMALLOC' \
    116 	'-DDISABLE_NACL' \
    117 	'-DCHROMIUM_BUILD' \
    118 	'-DUSE_LIBJPEG_TURBO=1' \
    119 	'-DUSE_PROPRIETARY_CODECS' \
    120 	'-DENABLE_CONFIGURATION_POLICY' \
    121 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    122 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    123 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    124 	'-DUSE_OPENSSL=1' \
    125 	'-DENABLE_EGLIMAGE=1' \
    126 	'-DCLD_VERSION=1' \
    127 	'-DENABLE_PRINTING=1' \
    128 	'-DENABLE_MANAGED_USERS=1' \
    129 	'-DUI_IMPLEMENTATION' \
    130 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    131 	'-DU_USING_ICU_NAMESPACE=0' \
    132 	'-DCHROME_PNG_WRITE_SUPPORT' \
    133 	'-DPNG_USER_CONFIG' \
    134 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
    135 	'-D__STDC_CONSTANT_MACROS' \
    136 	'-D__STDC_FORMAT_MACROS' \
    137 	'-DANDROID' \
    138 	'-D__GNU_SOURCE=1' \
    139 	'-DUSE_STLPORT=1' \
    140 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    141 	'-DCHROME_BUILD_ID=""' \
    142 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    143 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    144 	'-D_DEBUG'
    145 
    146 
    147 # Include paths placed before CFLAGS/CPPFLAGS
    148 LOCAL_C_INCLUDES_Debug := \
    149 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    150 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    151 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    152 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    153 	$(gyp_shared_intermediate_dir)/ui \
    154 	$(LOCAL_PATH) \
    155 	$(LOCAL_PATH)/skia/config \
    156 	$(PWD)/external/skia/include \
    157 	$(PWD)/external/skia/include/core \
    158 	$(LOCAL_PATH)/third_party/skia/src/core \
    159 	$(LOCAL_PATH)/skia/ext \
    160 	$(PWD)/external/icu4c/common \
    161 	$(PWD)/external/icu4c/i18n \
    162 	$(LOCAL_PATH)/third_party/libpng \
    163 	$(LOCAL_PATH)/third_party/zlib \
    164 	$(gyp_shared_intermediate_dir)/ui/app_locale_settings \
    165 	$(gyp_shared_intermediate_dir)/ui/ui_strings \
    166 	$(gyp_shared_intermediate_dir)/ui/ui_resources \
    167 	$(PWD)/frameworks/wilhelm/include \
    168 	$(PWD)/bionic \
    169 	$(PWD)/external/stlport/stlport
    170 
    171 
    172 # Flags passed to only C++ (and not C) files.
    173 LOCAL_CPPFLAGS_Debug := \
    174 	-fno-rtti \
    175 	-fno-threadsafe-statics \
    176 	-fvisibility-inlines-hidden \
    177 	-Wsign-compare \
    178 	-Wno-error=c++0x-compat \
    179 	-Wno-non-virtual-dtor \
    180 	-Wno-sign-promo
    181 
    182 
    183 # Flags passed to both C and C++ files.
    184 MY_CFLAGS_Release := \
    185 	--param=ssp-buffer-size=4 \
    186 	-Werror \
    187 	-fno-exceptions \
    188 	-fno-strict-aliasing \
    189 	-Wall \
    190 	-Wno-unused-parameter \
    191 	-Wno-missing-field-initializers \
    192 	-fvisibility=hidden \
    193 	-pipe \
    194 	-fPIC \
    195 	-m32 \
    196 	-mmmx \
    197 	-march=pentium4 \
    198 	-msse2 \
    199 	-mfpmath=sse \
    200 	-fuse-ld=gold \
    201 	-ffunction-sections \
    202 	-funwind-tables \
    203 	-g \
    204 	-fno-short-enums \
    205 	-finline-limit=64 \
    206 	-Wa,--noexecstack \
    207 	-U_FORTIFY_SOURCE \
    208 	-Wno-extra \
    209 	-Wno-ignored-qualifiers \
    210 	-Wno-type-limits \
    211 	-fno-stack-protector \
    212 	-Os \
    213 	-fno-ident \
    214 	-fdata-sections \
    215 	-ffunction-sections \
    216 	-fomit-frame-pointer \
    217 	-fno-unwind-tables \
    218 	-fno-asynchronous-unwind-tables
    219 
    220 MY_DEFS_Release := \
    221 	'-DV8_DEPRECATION_WARNINGS' \
    222 	'-D_FILE_OFFSET_BITS=64' \
    223 	'-DNO_TCMALLOC' \
    224 	'-DDISABLE_NACL' \
    225 	'-DCHROMIUM_BUILD' \
    226 	'-DUSE_LIBJPEG_TURBO=1' \
    227 	'-DUSE_PROPRIETARY_CODECS' \
    228 	'-DENABLE_CONFIGURATION_POLICY' \
    229 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    230 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    231 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    232 	'-DUSE_OPENSSL=1' \
    233 	'-DENABLE_EGLIMAGE=1' \
    234 	'-DCLD_VERSION=1' \
    235 	'-DENABLE_PRINTING=1' \
    236 	'-DENABLE_MANAGED_USERS=1' \
    237 	'-DUI_IMPLEMENTATION' \
    238 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    239 	'-DU_USING_ICU_NAMESPACE=0' \
    240 	'-DCHROME_PNG_WRITE_SUPPORT' \
    241 	'-DPNG_USER_CONFIG' \
    242 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
    243 	'-D__STDC_CONSTANT_MACROS' \
    244 	'-D__STDC_FORMAT_MACROS' \
    245 	'-DANDROID' \
    246 	'-D__GNU_SOURCE=1' \
    247 	'-DUSE_STLPORT=1' \
    248 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    249 	'-DCHROME_BUILD_ID=""' \
    250 	'-DNDEBUG' \
    251 	'-DNVALGRIND' \
    252 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    253 	'-D_FORTIFY_SOURCE=2'
    254 
    255 
    256 # Include paths placed before CFLAGS/CPPFLAGS
    257 LOCAL_C_INCLUDES_Release := \
    258 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    259 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    260 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    261 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    262 	$(gyp_shared_intermediate_dir)/ui \
    263 	$(LOCAL_PATH) \
    264 	$(LOCAL_PATH)/skia/config \
    265 	$(PWD)/external/skia/include \
    266 	$(PWD)/external/skia/include/core \
    267 	$(LOCAL_PATH)/third_party/skia/src/core \
    268 	$(LOCAL_PATH)/skia/ext \
    269 	$(PWD)/external/icu4c/common \
    270 	$(PWD)/external/icu4c/i18n \
    271 	$(LOCAL_PATH)/third_party/libpng \
    272 	$(LOCAL_PATH)/third_party/zlib \
    273 	$(gyp_shared_intermediate_dir)/ui/app_locale_settings \
    274 	$(gyp_shared_intermediate_dir)/ui/ui_strings \
    275 	$(gyp_shared_intermediate_dir)/ui/ui_resources \
    276 	$(PWD)/frameworks/wilhelm/include \
    277 	$(PWD)/bionic \
    278 	$(PWD)/external/stlport/stlport
    279 
    280 
    281 # Flags passed to only C++ (and not C) files.
    282 LOCAL_CPPFLAGS_Release := \
    283 	-fno-rtti \
    284 	-fno-threadsafe-statics \
    285 	-fvisibility-inlines-hidden \
    286 	-Wsign-compare \
    287 	-Wno-error=c++0x-compat \
    288 	-Wno-non-virtual-dtor \
    289 	-Wno-sign-promo
    290 
    291 
    292 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    293 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    294 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    295 ### Rules for final target.
    296 
    297 LOCAL_LDFLAGS_Debug := \
    298 	-Wl,-z,now \
    299 	-Wl,-z,relro \
    300 	-Wl,-z,noexecstack \
    301 	-fPIC \
    302 	-m32 \
    303 	-fuse-ld=gold \
    304 	-nostdlib \
    305 	-Wl,--no-undefined \
    306 	-Wl,--exclude-libs=ALL \
    307 	-Wl,--fatal-warnings \
    308 	-Wl,--gc-sections \
    309 	-Wl,--warn-shared-textrel \
    310 	-Wl,-O1 \
    311 	-Wl,--as-needed
    312 
    313 
    314 LOCAL_LDFLAGS_Release := \
    315 	-Wl,-z,now \
    316 	-Wl,-z,relro \
    317 	-Wl,-z,noexecstack \
    318 	-fPIC \
    319 	-m32 \
    320 	-fuse-ld=gold \
    321 	-nostdlib \
    322 	-Wl,--no-undefined \
    323 	-Wl,--exclude-libs=ALL \
    324 	-Wl,-O1 \
    325 	-Wl,--as-needed \
    326 	-Wl,--gc-sections \
    327 	-Wl,--fatal-warnings \
    328 	-Wl,--warn-shared-textrel
    329 
    330 
    331 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    332 
    333 LOCAL_STATIC_LIBRARIES :=
    334 
    335 # Enable grouping to fix circular references
    336 LOCAL_GROUP_STATIC_LIBRARIES := true
    337 
    338 LOCAL_SHARED_LIBRARIES := \
    339 	libskia \
    340 	libstlport \
    341 	libdl
    342 
    343 # Add target alias to "gyp_all_modules" target.
    344 .PHONY: gyp_all_modules
    345 gyp_all_modules: ui_ui_gyp
    346 
    347 # Alias gyp target name.
    348 .PHONY: ui
    349 ui: ui_ui_gyp
    350 
    351 include $(BUILD_STATIC_LIBRARY)
    352