1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := ui_gfx_gfx_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12# Make sure our deps are built first. 13GYP_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,third_party_libjpeg_libjpeg_gyp)/libjpeg.stamp \ 18 $(call intermediates-dir-for,GYP,ui_gfx_gfx_jni_headers_gyp)/gfx_jni_headers.stamp 19 20GYP_GENERATED_OUTPUTS := 21 22# Make sure our deps and generated files are built first. 23LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 24 25LOCAL_CPP_EXTENSION := .cc 26LOCAL_GENERATED_SOURCES := 27 28GYP_COPIED_SOURCE_ORIGIN_DIRS := 29 30LOCAL_SRC_FILES := \ 31 ui/gfx/android/device_display_info.cc \ 32 ui/gfx/android/gfx_jni_registrar.cc \ 33 ui/gfx/android/java_bitmap.cc \ 34 ui/gfx/android/shared_device_display_info.cc \ 35 ui/gfx/android/view_configuration.cc \ 36 ui/gfx/animation/animation.cc \ 37 ui/gfx/animation/animation_container.cc \ 38 ui/gfx/animation/linear_animation.cc \ 39 ui/gfx/animation/multi_animation.cc \ 40 ui/gfx/animation/slide_animation.cc \ 41 ui/gfx/animation/tween.cc \ 42 ui/gfx/blit.cc \ 43 ui/gfx/box_f.cc \ 44 ui/gfx/canvas.cc \ 45 ui/gfx/canvas_android.cc \ 46 ui/gfx/codec/jpeg_codec.cc \ 47 ui/gfx/codec/png_codec.cc \ 48 ui/gfx/color_analysis.cc \ 49 ui/gfx/color_profile.cc \ 50 ui/gfx/color_utils.cc \ 51 ui/gfx/display.cc \ 52 ui/gfx/favicon_size.cc \ 53 ui/gfx/font.cc \ 54 ui/gfx/font_list.cc \ 55 ui/gfx/font_render_params_android.cc \ 56 ui/gfx/gfx_paths.cc \ 57 ui/gfx/gpu_memory_buffer.cc \ 58 ui/gfx/image/canvas_image_source.cc \ 59 ui/gfx/image/image.cc \ 60 ui/gfx/image/image_family.cc \ 61 ui/gfx/image/image_png_rep.cc \ 62 ui/gfx/image/image_skia.cc \ 63 ui/gfx/image/image_skia_operations.cc \ 64 ui/gfx/image/image_skia_rep.cc \ 65 ui/gfx/image/image_util.cc \ 66 ui/gfx/insets.cc \ 67 ui/gfx/insets_f.cc \ 68 ui/gfx/interpolated_transform.cc \ 69 ui/gfx/matrix3_f.cc \ 70 ui/gfx/platform_font_android.cc \ 71 ui/gfx/point.cc \ 72 ui/gfx/point3_f.cc \ 73 ui/gfx/point_conversions.cc \ 74 ui/gfx/point_f.cc \ 75 ui/gfx/quad_f.cc \ 76 ui/gfx/range/range.cc \ 77 ui/gfx/rect.cc \ 78 ui/gfx/rect_conversions.cc \ 79 ui/gfx/rect_f.cc \ 80 ui/gfx/screen.cc \ 81 ui/gfx/screen_android.cc \ 82 ui/gfx/scrollbar_size.cc \ 83 ui/gfx/sequential_id_generator.cc \ 84 ui/gfx/shadow_value.cc \ 85 ui/gfx/size.cc \ 86 ui/gfx/size_conversions.cc \ 87 ui/gfx/size_f.cc \ 88 ui/gfx/skbitmap_operations.cc \ 89 ui/gfx/skia_util.cc \ 90 ui/gfx/switches.cc \ 91 ui/gfx/sys_color_change_listener.cc \ 92 ui/gfx/text_elider.cc \ 93 ui/gfx/text_utils.cc \ 94 ui/gfx/text_utils_android.cc \ 95 ui/gfx/transform.cc \ 96 ui/gfx/transform_util.cc \ 97 ui/gfx/ui_gfx_exports.cc \ 98 ui/gfx/utf16_indexing.cc \ 99 ui/gfx/vector2d.cc \ 100 ui/gfx/vector2d_conversions.cc \ 101 ui/gfx/vector2d_f.cc \ 102 ui/gfx/vector3d_f.cc 103 104 105# Flags passed to both C and C++ files. 106MY_CFLAGS_Debug := \ 107 -fstack-protector \ 108 --param=ssp-buffer-size=4 \ 109 -Werror \ 110 -fno-exceptions \ 111 -fno-strict-aliasing \ 112 -Wall \ 113 -Wno-unused-parameter \ 114 -Wno-missing-field-initializers \ 115 -fvisibility=hidden \ 116 -pipe \ 117 -fPIC \ 118 -fno-tree-sra \ 119 -fuse-ld=gold \ 120 -Wno-psabi \ 121 -ffunction-sections \ 122 -funwind-tables \ 123 -g \ 124 -fstack-protector \ 125 -fno-short-enums \ 126 -finline-limit=64 \ 127 -Wa,--noexecstack \ 128 -U_FORTIFY_SOURCE \ 129 -Wno-extra \ 130 -Wno-ignored-qualifiers \ 131 -Wno-type-limits \ 132 -Os \ 133 -g \ 134 -fomit-frame-pointer \ 135 -fdata-sections \ 136 -ffunction-sections 137 138MY_DEFS_Debug := \ 139 '-DV8_DEPRECATION_WARNINGS' \ 140 '-D_FILE_OFFSET_BITS=64' \ 141 '-DNO_TCMALLOC' \ 142 '-DDISABLE_NACL' \ 143 '-DCHROMIUM_BUILD' \ 144 '-DUSE_LIBJPEG_TURBO=1' \ 145 '-DUSE_PROPRIETARY_CODECS' \ 146 '-DENABLE_CONFIGURATION_POLICY' \ 147 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 148 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 149 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 150 '-DUSE_OPENSSL=1' \ 151 '-DENABLE_EGLIMAGE=1' \ 152 '-DCLD_VERSION=1' \ 153 '-DENABLE_PRINTING=1' \ 154 '-DENABLE_MANAGED_USERS=1' \ 155 '-DGFX_IMPLEMENTATION' \ 156 '-DPOSIX_AVOID_MMAP' \ 157 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 158 '-DU_USING_ICU_NAMESPACE=0' \ 159 '-DCHROME_PNG_WRITE_SUPPORT' \ 160 '-DPNG_USER_CONFIG' \ 161 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 162 '-DUSE_SYSTEM_LIBJPEG' \ 163 '-D__STDC_CONSTANT_MACROS' \ 164 '-D__STDC_FORMAT_MACROS' \ 165 '-DANDROID' \ 166 '-D__GNU_SOURCE=1' \ 167 '-DUSE_STLPORT=1' \ 168 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 169 '-DCHROME_BUILD_ID=""' \ 170 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 171 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 172 '-D_DEBUG' 173 174 175# Include paths placed before CFLAGS/CPPFLAGS 176LOCAL_C_INCLUDES_Debug := \ 177 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 178 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 179 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 180 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 181 $(LOCAL_PATH) \ 182 $(LOCAL_PATH)/skia/config \ 183 $(PWD)/external/skia/include \ 184 $(PWD)/external/skia/include/core \ 185 $(LOCAL_PATH)/third_party/skia/src/core \ 186 $(LOCAL_PATH)/skia/ext \ 187 $(PWD)/external/icu4c/common \ 188 $(PWD)/external/icu4c/i18n \ 189 $(LOCAL_PATH)/third_party/libpng \ 190 $(LOCAL_PATH)/third_party/zlib \ 191 $(PWD)/external/jpeg \ 192 $(gyp_shared_intermediate_dir)/ui/gfx \ 193 $(PWD)/frameworks/wilhelm/include \ 194 $(PWD)/bionic \ 195 $(PWD)/external/stlport/stlport 196 197 198# Flags passed to only C++ (and not C) files. 199LOCAL_CPPFLAGS_Debug := \ 200 -fno-rtti \ 201 -fno-threadsafe-statics \ 202 -fvisibility-inlines-hidden \ 203 -Wsign-compare \ 204 -Wno-abi \ 205 -Wno-error=c++0x-compat \ 206 -Wno-non-virtual-dtor \ 207 -Wno-sign-promo 208 209 210# Flags passed to both C and C++ files. 211MY_CFLAGS_Release := \ 212 -fstack-protector \ 213 --param=ssp-buffer-size=4 \ 214 -Werror \ 215 -fno-exceptions \ 216 -fno-strict-aliasing \ 217 -Wall \ 218 -Wno-unused-parameter \ 219 -Wno-missing-field-initializers \ 220 -fvisibility=hidden \ 221 -pipe \ 222 -fPIC \ 223 -fno-tree-sra \ 224 -fuse-ld=gold \ 225 -Wno-psabi \ 226 -ffunction-sections \ 227 -funwind-tables \ 228 -g \ 229 -fstack-protector \ 230 -fno-short-enums \ 231 -finline-limit=64 \ 232 -Wa,--noexecstack \ 233 -U_FORTIFY_SOURCE \ 234 -Wno-extra \ 235 -Wno-ignored-qualifiers \ 236 -Wno-type-limits \ 237 -Os \ 238 -fno-ident \ 239 -fdata-sections \ 240 -ffunction-sections \ 241 -fomit-frame-pointer 242 243MY_DEFS_Release := \ 244 '-DV8_DEPRECATION_WARNINGS' \ 245 '-D_FILE_OFFSET_BITS=64' \ 246 '-DNO_TCMALLOC' \ 247 '-DDISABLE_NACL' \ 248 '-DCHROMIUM_BUILD' \ 249 '-DUSE_LIBJPEG_TURBO=1' \ 250 '-DUSE_PROPRIETARY_CODECS' \ 251 '-DENABLE_CONFIGURATION_POLICY' \ 252 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 253 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 254 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 255 '-DUSE_OPENSSL=1' \ 256 '-DENABLE_EGLIMAGE=1' \ 257 '-DCLD_VERSION=1' \ 258 '-DENABLE_PRINTING=1' \ 259 '-DENABLE_MANAGED_USERS=1' \ 260 '-DGFX_IMPLEMENTATION' \ 261 '-DPOSIX_AVOID_MMAP' \ 262 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 263 '-DU_USING_ICU_NAMESPACE=0' \ 264 '-DCHROME_PNG_WRITE_SUPPORT' \ 265 '-DPNG_USER_CONFIG' \ 266 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 267 '-DUSE_SYSTEM_LIBJPEG' \ 268 '-D__STDC_CONSTANT_MACROS' \ 269 '-D__STDC_FORMAT_MACROS' \ 270 '-DANDROID' \ 271 '-D__GNU_SOURCE=1' \ 272 '-DUSE_STLPORT=1' \ 273 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 274 '-DCHROME_BUILD_ID=""' \ 275 '-DNDEBUG' \ 276 '-DNVALGRIND' \ 277 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 278 '-D_FORTIFY_SOURCE=2' 279 280 281# Include paths placed before CFLAGS/CPPFLAGS 282LOCAL_C_INCLUDES_Release := \ 283 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 284 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 285 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 286 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 287 $(LOCAL_PATH) \ 288 $(LOCAL_PATH)/skia/config \ 289 $(PWD)/external/skia/include \ 290 $(PWD)/external/skia/include/core \ 291 $(LOCAL_PATH)/third_party/skia/src/core \ 292 $(LOCAL_PATH)/skia/ext \ 293 $(PWD)/external/icu4c/common \ 294 $(PWD)/external/icu4c/i18n \ 295 $(LOCAL_PATH)/third_party/libpng \ 296 $(LOCAL_PATH)/third_party/zlib \ 297 $(PWD)/external/jpeg \ 298 $(gyp_shared_intermediate_dir)/ui/gfx \ 299 $(PWD)/frameworks/wilhelm/include \ 300 $(PWD)/bionic \ 301 $(PWD)/external/stlport/stlport 302 303 304# Flags passed to only C++ (and not C) files. 305LOCAL_CPPFLAGS_Release := \ 306 -fno-rtti \ 307 -fno-threadsafe-statics \ 308 -fvisibility-inlines-hidden \ 309 -Wsign-compare \ 310 -Wno-abi \ 311 -Wno-error=c++0x-compat \ 312 -Wno-non-virtual-dtor \ 313 -Wno-sign-promo 314 315 316LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 317LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 318LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 319### Rules for final target. 320 321LOCAL_LDFLAGS_Debug := \ 322 -Wl,-z,now \ 323 -Wl,-z,relro \ 324 -Wl,-z,noexecstack \ 325 -fPIC \ 326 -Wl,-z,relro \ 327 -Wl,-z,now \ 328 -fuse-ld=gold \ 329 -nostdlib \ 330 -Wl,--no-undefined \ 331 -Wl,--exclude-libs=ALL \ 332 -Wl,--icf=safe \ 333 -Wl,--fatal-warnings \ 334 -Wl,--gc-sections \ 335 -Wl,--warn-shared-textrel \ 336 -Wl,-O1 \ 337 -Wl,--as-needed 338 339 340LOCAL_LDFLAGS_Release := \ 341 -Wl,-z,now \ 342 -Wl,-z,relro \ 343 -Wl,-z,noexecstack \ 344 -fPIC \ 345 -Wl,-z,relro \ 346 -Wl,-z,now \ 347 -fuse-ld=gold \ 348 -nostdlib \ 349 -Wl,--no-undefined \ 350 -Wl,--exclude-libs=ALL \ 351 -Wl,--icf=safe \ 352 -Wl,-O1 \ 353 -Wl,--as-needed \ 354 -Wl,--gc-sections \ 355 -Wl,--fatal-warnings \ 356 -Wl,--warn-shared-textrel 357 358 359LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 360 361LOCAL_STATIC_LIBRARIES := 362 363# Enable grouping to fix circular references 364LOCAL_GROUP_STATIC_LIBRARIES := true 365 366LOCAL_SHARED_LIBRARIES := \ 367 libskia \ 368 libstlport \ 369 libdl 370 371# Add target alias to "gyp_all_modules" target. 372.PHONY: gyp_all_modules 373gyp_all_modules: ui_gfx_gfx_gyp 374 375# Alias gyp target name. 376.PHONY: gfx 377gfx: ui_gfx_gfx_gyp 378 379include $(BUILD_STATIC_LIBRARY) 380