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_gfx_gfx_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \ 16 $(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \ 17 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp \ 18 $(call intermediates-dir-for,GYP,ui_gfx_gfx_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/gfx_jni_headers.stamp 19 20 GYP_GENERATED_OUTPUTS := 21 22 # Make sure our deps and generated files are built first. 23 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 24 25 LOCAL_CPP_EXTENSION := .cc 26 LOCAL_GENERATED_SOURCES := 27 28 GYP_COPIED_SOURCE_ORIGIN_DIRS := 29 30 LOCAL_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/scroller.cc \ 35 ui/gfx/android/shared_device_display_info.cc \ 36 ui/gfx/android/view_configuration.cc \ 37 ui/gfx/animation/animation.cc \ 38 ui/gfx/animation/animation_container.cc \ 39 ui/gfx/animation/linear_animation.cc \ 40 ui/gfx/animation/multi_animation.cc \ 41 ui/gfx/animation/slide_animation.cc \ 42 ui/gfx/animation/tween.cc \ 43 ui/gfx/blit.cc \ 44 ui/gfx/canvas.cc \ 45 ui/gfx/canvas_notimplemented.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/display_change_notifier.cc \ 53 ui/gfx/favicon_size.cc \ 54 ui/gfx/font.cc \ 55 ui/gfx/font_list.cc \ 56 ui/gfx/font_list_impl.cc \ 57 ui/gfx/font_render_params.cc \ 58 ui/gfx/font_render_params_android.cc \ 59 ui/gfx/gfx_paths.cc \ 60 ui/gfx/gpu_memory_buffer.cc \ 61 ui/gfx/image/canvas_image_source.cc \ 62 ui/gfx/image/image.cc \ 63 ui/gfx/image/image_family.cc \ 64 ui/gfx/image/image_png_rep.cc \ 65 ui/gfx/image/image_skia.cc \ 66 ui/gfx/image/image_skia_operations.cc \ 67 ui/gfx/image/image_skia_rep.cc \ 68 ui/gfx/image/image_util.cc \ 69 ui/gfx/interpolated_transform.cc \ 70 ui/gfx/linux_font_delegate.cc \ 71 ui/gfx/platform_font_android.cc \ 72 ui/gfx/range/range.cc \ 73 ui/gfx/screen.cc \ 74 ui/gfx/screen_android.cc \ 75 ui/gfx/scrollbar_size.cc \ 76 ui/gfx/sequential_id_generator.cc \ 77 ui/gfx/shadow_value.cc \ 78 ui/gfx/skbitmap_operations.cc \ 79 ui/gfx/skia_util.cc \ 80 ui/gfx/switches.cc \ 81 ui/gfx/sys_color_change_listener.cc \ 82 ui/gfx/text_elider.cc \ 83 ui/gfx/text_utils.cc \ 84 ui/gfx/text_utils_android.cc \ 85 ui/gfx/transform.cc \ 86 ui/gfx/transform_util.cc \ 87 ui/gfx/ui_gfx_exports.cc \ 88 ui/gfx/utf16_indexing.cc 89 90 91 # Flags passed to both C and C++ files. 92 MY_CFLAGS_Debug := \ 93 -fstack-protector \ 94 --param=ssp-buffer-size=4 \ 95 \ 96 -fno-strict-aliasing \ 97 -Wall \ 98 -Wno-unused-parameter \ 99 -Wno-missing-field-initializers \ 100 -fvisibility=hidden \ 101 -pipe \ 102 -fPIC \ 103 -Wno-unused-local-typedefs \ 104 -ffunction-sections \ 105 -funwind-tables \ 106 -g \ 107 -fstack-protector \ 108 -fno-short-enums \ 109 -finline-limit=64 \ 110 -Wa,--noexecstack \ 111 -U_FORTIFY_SOURCE \ 112 -Wno-extra \ 113 -Wno-ignored-qualifiers \ 114 -Wno-type-limits \ 115 -Wno-unused-but-set-variable \ 116 -Os \ 117 -g \ 118 -gdwarf-4 \ 119 -fdata-sections \ 120 -ffunction-sections \ 121 -fomit-frame-pointer \ 122 -funwind-tables 123 124 MY_DEFS_Debug := \ 125 '-DV8_DEPRECATION_WARNINGS' \ 126 '-D_FILE_OFFSET_BITS=64' \ 127 '-DNO_TCMALLOC' \ 128 '-DDISABLE_NACL' \ 129 '-DCHROMIUM_BUILD' \ 130 '-DUSE_LIBJPEG_TURBO=1' \ 131 '-DENABLE_WEBRTC=1' \ 132 '-DUSE_PROPRIETARY_CODECS' \ 133 '-DENABLE_BROWSER_CDMS' \ 134 '-DENABLE_CONFIGURATION_POLICY' \ 135 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 136 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 137 '-DENABLE_EGLIMAGE=1' \ 138 '-DCLD_VERSION=1' \ 139 '-DENABLE_PRINTING=1' \ 140 '-DENABLE_MANAGED_USERS=1' \ 141 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 142 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 143 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 144 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 145 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 146 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 147 '-DVIDEO_HOLE=1' \ 148 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 149 '-DGFX_IMPLEMENTATION' \ 150 '-DSK_ENABLE_INST_COUNT=0' \ 151 '-DSK_SUPPORT_GPU=1' \ 152 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 153 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 154 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 155 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 156 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 157 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 158 '-DSK_BUILD_FOR_ANDROID' \ 159 '-DSK_USE_POSIX_THREADS' \ 160 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 161 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 162 '-DU_USING_ICU_NAMESPACE=0' \ 163 '-DU_ENABLE_DYLOAD=0' \ 164 '-DCHROME_PNG_WRITE_SUPPORT' \ 165 '-DPNG_USER_CONFIG' \ 166 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 167 '-DUSE_OPENSSL=1' \ 168 '-DUSE_OPENSSL_CERTS=1' \ 169 '-D__STDC_CONSTANT_MACROS' \ 170 '-D__STDC_FORMAT_MACROS' \ 171 '-DANDROID' \ 172 '-D__GNU_SOURCE=1' \ 173 '-DUSE_STLPORT=1' \ 174 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 175 '-DCHROME_BUILD_ID=""' \ 176 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 177 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 178 '-D_DEBUG' 179 180 181 # Include paths placed before CFLAGS/CPPFLAGS 182 LOCAL_C_INCLUDES_Debug := \ 183 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 184 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 185 $(gyp_shared_intermediate_dir) \ 186 $(LOCAL_PATH)/third_party/icu/source/common \ 187 $(LOCAL_PATH) \ 188 $(LOCAL_PATH)/skia/config \ 189 $(LOCAL_PATH)/third_party/skia/src/core \ 190 $(LOCAL_PATH)/third_party/skia/include/core \ 191 $(LOCAL_PATH)/third_party/skia/include/effects \ 192 $(LOCAL_PATH)/third_party/skia/include/pdf \ 193 $(LOCAL_PATH)/third_party/skia/include/gpu \ 194 $(LOCAL_PATH)/third_party/skia/include/lazy \ 195 $(LOCAL_PATH)/third_party/skia/include/pathops \ 196 $(LOCAL_PATH)/third_party/skia/include/pipe \ 197 $(LOCAL_PATH)/third_party/skia/include/ports \ 198 $(LOCAL_PATH)/third_party/skia/include/utils \ 199 $(LOCAL_PATH)/skia/ext \ 200 $(LOCAL_PATH)/third_party/harfbuzz-ng/src \ 201 $(PWD)/external/icu/icu4c/source/common \ 202 $(PWD)/external/icu/icu4c/source/i18n \ 203 $(LOCAL_PATH)/third_party/libpng \ 204 $(LOCAL_PATH)/third_party/zlib \ 205 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 206 $(gyp_shared_intermediate_dir)/ui/gfx \ 207 $(PWD)/frameworks/wilhelm/include \ 208 $(PWD)/bionic \ 209 $(PWD)/external/stlport/stlport 210 211 212 # Flags passed to only C++ (and not C) files. 213 LOCAL_CPPFLAGS_Debug := \ 214 -fno-exceptions \ 215 -fno-rtti \ 216 -fno-threadsafe-statics \ 217 -fvisibility-inlines-hidden \ 218 -Wsign-compare \ 219 -Wno-uninitialized \ 220 -std=gnu++11 \ 221 -Wno-narrowing \ 222 -Wno-literal-suffix \ 223 -Wno-non-virtual-dtor \ 224 -Wno-sign-promo 225 226 227 # Flags passed to both C and C++ files. 228 MY_CFLAGS_Release := \ 229 -fstack-protector \ 230 --param=ssp-buffer-size=4 \ 231 \ 232 -fno-strict-aliasing \ 233 -Wall \ 234 -Wno-unused-parameter \ 235 -Wno-missing-field-initializers \ 236 -fvisibility=hidden \ 237 -pipe \ 238 -fPIC \ 239 -Wno-unused-local-typedefs \ 240 -ffunction-sections \ 241 -funwind-tables \ 242 -g \ 243 -fstack-protector \ 244 -fno-short-enums \ 245 -finline-limit=64 \ 246 -Wa,--noexecstack \ 247 -U_FORTIFY_SOURCE \ 248 -Wno-extra \ 249 -Wno-ignored-qualifiers \ 250 -Wno-type-limits \ 251 -Wno-unused-but-set-variable \ 252 -Os \ 253 -fno-ident \ 254 -fdata-sections \ 255 -ffunction-sections \ 256 -fomit-frame-pointer \ 257 -funwind-tables 258 259 MY_DEFS_Release := \ 260 '-DV8_DEPRECATION_WARNINGS' \ 261 '-D_FILE_OFFSET_BITS=64' \ 262 '-DNO_TCMALLOC' \ 263 '-DDISABLE_NACL' \ 264 '-DCHROMIUM_BUILD' \ 265 '-DUSE_LIBJPEG_TURBO=1' \ 266 '-DENABLE_WEBRTC=1' \ 267 '-DUSE_PROPRIETARY_CODECS' \ 268 '-DENABLE_BROWSER_CDMS' \ 269 '-DENABLE_CONFIGURATION_POLICY' \ 270 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 271 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 272 '-DENABLE_EGLIMAGE=1' \ 273 '-DCLD_VERSION=1' \ 274 '-DENABLE_PRINTING=1' \ 275 '-DENABLE_MANAGED_USERS=1' \ 276 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 277 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 278 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 279 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 280 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 281 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 282 '-DVIDEO_HOLE=1' \ 283 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 284 '-DGFX_IMPLEMENTATION' \ 285 '-DSK_ENABLE_INST_COUNT=0' \ 286 '-DSK_SUPPORT_GPU=1' \ 287 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 288 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 289 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 290 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 291 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 292 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 293 '-DSK_BUILD_FOR_ANDROID' \ 294 '-DSK_USE_POSIX_THREADS' \ 295 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 296 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 297 '-DU_USING_ICU_NAMESPACE=0' \ 298 '-DU_ENABLE_DYLOAD=0' \ 299 '-DCHROME_PNG_WRITE_SUPPORT' \ 300 '-DPNG_USER_CONFIG' \ 301 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 302 '-DUSE_OPENSSL=1' \ 303 '-DUSE_OPENSSL_CERTS=1' \ 304 '-D__STDC_CONSTANT_MACROS' \ 305 '-D__STDC_FORMAT_MACROS' \ 306 '-DANDROID' \ 307 '-D__GNU_SOURCE=1' \ 308 '-DUSE_STLPORT=1' \ 309 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 310 '-DCHROME_BUILD_ID=""' \ 311 '-DNDEBUG' \ 312 '-DNVALGRIND' \ 313 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 314 '-D_FORTIFY_SOURCE=2' 315 316 317 # Include paths placed before CFLAGS/CPPFLAGS 318 LOCAL_C_INCLUDES_Release := \ 319 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 320 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 321 $(gyp_shared_intermediate_dir) \ 322 $(LOCAL_PATH)/third_party/icu/source/common \ 323 $(LOCAL_PATH) \ 324 $(LOCAL_PATH)/skia/config \ 325 $(LOCAL_PATH)/third_party/skia/src/core \ 326 $(LOCAL_PATH)/third_party/skia/include/core \ 327 $(LOCAL_PATH)/third_party/skia/include/effects \ 328 $(LOCAL_PATH)/third_party/skia/include/pdf \ 329 $(LOCAL_PATH)/third_party/skia/include/gpu \ 330 $(LOCAL_PATH)/third_party/skia/include/lazy \ 331 $(LOCAL_PATH)/third_party/skia/include/pathops \ 332 $(LOCAL_PATH)/third_party/skia/include/pipe \ 333 $(LOCAL_PATH)/third_party/skia/include/ports \ 334 $(LOCAL_PATH)/third_party/skia/include/utils \ 335 $(LOCAL_PATH)/skia/ext \ 336 $(LOCAL_PATH)/third_party/harfbuzz-ng/src \ 337 $(PWD)/external/icu/icu4c/source/common \ 338 $(PWD)/external/icu/icu4c/source/i18n \ 339 $(LOCAL_PATH)/third_party/libpng \ 340 $(LOCAL_PATH)/third_party/zlib \ 341 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 342 $(gyp_shared_intermediate_dir)/ui/gfx \ 343 $(PWD)/frameworks/wilhelm/include \ 344 $(PWD)/bionic \ 345 $(PWD)/external/stlport/stlport 346 347 348 # Flags passed to only C++ (and not C) files. 349 LOCAL_CPPFLAGS_Release := \ 350 -fno-exceptions \ 351 -fno-rtti \ 352 -fno-threadsafe-statics \ 353 -fvisibility-inlines-hidden \ 354 -Wsign-compare \ 355 -Wno-uninitialized \ 356 -std=gnu++11 \ 357 -Wno-narrowing \ 358 -Wno-literal-suffix \ 359 -Wno-non-virtual-dtor \ 360 -Wno-sign-promo 361 362 363 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 364 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 365 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 366 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 367 ### Rules for final target. 368 369 LOCAL_SHARED_LIBRARIES := \ 370 libstlport \ 371 libdl 372 373 # Add target alias to "gyp_all_modules" target. 374 .PHONY: gyp_all_modules 375 gyp_all_modules: ui_gfx_gfx_gyp 376 377 # Alias gyp target name. 378 .PHONY: gfx 379 gfx: ui_gfx_gfx_gyp 380 381 include $(BUILD_STATIC_LIBRARY) 382