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 --param=ssp-buffer-size=4 \ 94 -Werror \ 95 -fno-strict-aliasing \ 96 -Wall \ 97 -Wno-unused-parameter \ 98 -Wno-missing-field-initializers \ 99 -fvisibility=hidden \ 100 -pipe \ 101 -fPIC \ 102 -Wno-unused-local-typedefs \ 103 -ffunction-sections \ 104 -funwind-tables \ 105 -g \ 106 -fno-short-enums \ 107 -finline-limit=64 \ 108 -Wa,--noexecstack \ 109 -U_FORTIFY_SOURCE \ 110 -Wno-extra \ 111 -Wno-ignored-qualifiers \ 112 -Wno-type-limits \ 113 -Wno-unused-but-set-variable \ 114 -Os \ 115 -g \ 116 -gdwarf-4 \ 117 -fdata-sections \ 118 -ffunction-sections \ 119 -funwind-tables 120 121 MY_DEFS_Debug := \ 122 '-DV8_DEPRECATION_WARNINGS' \ 123 '-D_FILE_OFFSET_BITS=64' \ 124 '-DNO_TCMALLOC' \ 125 '-DDISABLE_NACL' \ 126 '-DCHROMIUM_BUILD' \ 127 '-DUSE_LIBJPEG_TURBO=1' \ 128 '-DENABLE_WEBRTC=1' \ 129 '-DUSE_PROPRIETARY_CODECS' \ 130 '-DENABLE_BROWSER_CDMS' \ 131 '-DENABLE_CONFIGURATION_POLICY' \ 132 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 133 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 134 '-DENABLE_EGLIMAGE=1' \ 135 '-DCLD_VERSION=1' \ 136 '-DENABLE_PRINTING=1' \ 137 '-DENABLE_MANAGED_USERS=1' \ 138 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 139 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 140 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 141 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 142 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 143 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 144 '-DVIDEO_HOLE=1' \ 145 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 146 '-DGFX_IMPLEMENTATION' \ 147 '-DSK_ENABLE_INST_COUNT=0' \ 148 '-DSK_SUPPORT_GPU=1' \ 149 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 150 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 151 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 152 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 153 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 154 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 155 '-DSK_BUILD_FOR_ANDROID' \ 156 '-DSK_USE_POSIX_THREADS' \ 157 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 158 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 159 '-DU_USING_ICU_NAMESPACE=0' \ 160 '-DU_ENABLE_DYLOAD=0' \ 161 '-DCHROME_PNG_WRITE_SUPPORT' \ 162 '-DPNG_USER_CONFIG' \ 163 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 164 '-DUSE_OPENSSL=1' \ 165 '-DUSE_OPENSSL_CERTS=1' \ 166 '-D__STDC_CONSTANT_MACROS' \ 167 '-D__STDC_FORMAT_MACROS' \ 168 '-DANDROID' \ 169 '-D__GNU_SOURCE=1' \ 170 '-DUSE_STLPORT=1' \ 171 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 172 '-DCHROME_BUILD_ID=""' \ 173 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 174 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 175 '-D_DEBUG' 176 177 178 # Include paths placed before CFLAGS/CPPFLAGS 179 LOCAL_C_INCLUDES_Debug := \ 180 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 181 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 182 $(gyp_shared_intermediate_dir) \ 183 $(LOCAL_PATH)/third_party/icu/source/common \ 184 $(LOCAL_PATH) \ 185 $(LOCAL_PATH)/skia/config \ 186 $(LOCAL_PATH)/third_party/skia/src/core \ 187 $(LOCAL_PATH)/third_party/skia/include/core \ 188 $(LOCAL_PATH)/third_party/skia/include/effects \ 189 $(LOCAL_PATH)/third_party/skia/include/pdf \ 190 $(LOCAL_PATH)/third_party/skia/include/gpu \ 191 $(LOCAL_PATH)/third_party/skia/include/lazy \ 192 $(LOCAL_PATH)/third_party/skia/include/pathops \ 193 $(LOCAL_PATH)/third_party/skia/include/pipe \ 194 $(LOCAL_PATH)/third_party/skia/include/ports \ 195 $(LOCAL_PATH)/third_party/skia/include/utils \ 196 $(LOCAL_PATH)/skia/ext \ 197 $(LOCAL_PATH)/third_party/harfbuzz-ng/src \ 198 $(PWD)/external/icu/icu4c/source/common \ 199 $(PWD)/external/icu/icu4c/source/i18n \ 200 $(LOCAL_PATH)/third_party/libpng \ 201 $(LOCAL_PATH)/third_party/zlib \ 202 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 203 $(gyp_shared_intermediate_dir)/ui/gfx \ 204 $(PWD)/frameworks/wilhelm/include \ 205 $(PWD)/bionic \ 206 $(PWD)/external/stlport/stlport 207 208 209 # Flags passed to only C++ (and not C) files. 210 LOCAL_CPPFLAGS_Debug := \ 211 -fno-exceptions \ 212 -fno-rtti \ 213 -fno-threadsafe-statics \ 214 -fvisibility-inlines-hidden \ 215 -Wsign-compare \ 216 -std=gnu++11 \ 217 -Wno-narrowing \ 218 -Wno-literal-suffix \ 219 -Wno-non-virtual-dtor \ 220 -Wno-sign-promo 221 222 223 # Flags passed to both C and C++ files. 224 MY_CFLAGS_Release := \ 225 --param=ssp-buffer-size=4 \ 226 -Werror \ 227 -fno-strict-aliasing \ 228 -Wall \ 229 -Wno-unused-parameter \ 230 -Wno-missing-field-initializers \ 231 -fvisibility=hidden \ 232 -pipe \ 233 -fPIC \ 234 -Wno-unused-local-typedefs \ 235 -ffunction-sections \ 236 -funwind-tables \ 237 -g \ 238 -fno-short-enums \ 239 -finline-limit=64 \ 240 -Wa,--noexecstack \ 241 -U_FORTIFY_SOURCE \ 242 -Wno-extra \ 243 -Wno-ignored-qualifiers \ 244 -Wno-type-limits \ 245 -Wno-unused-but-set-variable \ 246 -Os \ 247 -fno-ident \ 248 -fdata-sections \ 249 -ffunction-sections \ 250 -funwind-tables 251 252 MY_DEFS_Release := \ 253 '-DV8_DEPRECATION_WARNINGS' \ 254 '-D_FILE_OFFSET_BITS=64' \ 255 '-DNO_TCMALLOC' \ 256 '-DDISABLE_NACL' \ 257 '-DCHROMIUM_BUILD' \ 258 '-DUSE_LIBJPEG_TURBO=1' \ 259 '-DENABLE_WEBRTC=1' \ 260 '-DUSE_PROPRIETARY_CODECS' \ 261 '-DENABLE_BROWSER_CDMS' \ 262 '-DENABLE_CONFIGURATION_POLICY' \ 263 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 264 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 265 '-DENABLE_EGLIMAGE=1' \ 266 '-DCLD_VERSION=1' \ 267 '-DENABLE_PRINTING=1' \ 268 '-DENABLE_MANAGED_USERS=1' \ 269 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 270 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 271 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 272 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 273 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 274 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 275 '-DVIDEO_HOLE=1' \ 276 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 277 '-DGFX_IMPLEMENTATION' \ 278 '-DSK_ENABLE_INST_COUNT=0' \ 279 '-DSK_SUPPORT_GPU=1' \ 280 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 281 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 282 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 283 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 284 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 285 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 286 '-DSK_BUILD_FOR_ANDROID' \ 287 '-DSK_USE_POSIX_THREADS' \ 288 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 289 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 290 '-DU_USING_ICU_NAMESPACE=0' \ 291 '-DU_ENABLE_DYLOAD=0' \ 292 '-DCHROME_PNG_WRITE_SUPPORT' \ 293 '-DPNG_USER_CONFIG' \ 294 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 295 '-DUSE_OPENSSL=1' \ 296 '-DUSE_OPENSSL_CERTS=1' \ 297 '-D__STDC_CONSTANT_MACROS' \ 298 '-D__STDC_FORMAT_MACROS' \ 299 '-DANDROID' \ 300 '-D__GNU_SOURCE=1' \ 301 '-DUSE_STLPORT=1' \ 302 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 303 '-DCHROME_BUILD_ID=""' \ 304 '-DNDEBUG' \ 305 '-DNVALGRIND' \ 306 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 307 '-D_FORTIFY_SOURCE=2' 308 309 310 # Include paths placed before CFLAGS/CPPFLAGS 311 LOCAL_C_INCLUDES_Release := \ 312 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 313 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 314 $(gyp_shared_intermediate_dir) \ 315 $(LOCAL_PATH)/third_party/icu/source/common \ 316 $(LOCAL_PATH) \ 317 $(LOCAL_PATH)/skia/config \ 318 $(LOCAL_PATH)/third_party/skia/src/core \ 319 $(LOCAL_PATH)/third_party/skia/include/core \ 320 $(LOCAL_PATH)/third_party/skia/include/effects \ 321 $(LOCAL_PATH)/third_party/skia/include/pdf \ 322 $(LOCAL_PATH)/third_party/skia/include/gpu \ 323 $(LOCAL_PATH)/third_party/skia/include/lazy \ 324 $(LOCAL_PATH)/third_party/skia/include/pathops \ 325 $(LOCAL_PATH)/third_party/skia/include/pipe \ 326 $(LOCAL_PATH)/third_party/skia/include/ports \ 327 $(LOCAL_PATH)/third_party/skia/include/utils \ 328 $(LOCAL_PATH)/skia/ext \ 329 $(LOCAL_PATH)/third_party/harfbuzz-ng/src \ 330 $(PWD)/external/icu/icu4c/source/common \ 331 $(PWD)/external/icu/icu4c/source/i18n \ 332 $(LOCAL_PATH)/third_party/libpng \ 333 $(LOCAL_PATH)/third_party/zlib \ 334 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 335 $(gyp_shared_intermediate_dir)/ui/gfx \ 336 $(PWD)/frameworks/wilhelm/include \ 337 $(PWD)/bionic \ 338 $(PWD)/external/stlport/stlport 339 340 341 # Flags passed to only C++ (and not C) files. 342 LOCAL_CPPFLAGS_Release := \ 343 -fno-exceptions \ 344 -fno-rtti \ 345 -fno-threadsafe-statics \ 346 -fvisibility-inlines-hidden \ 347 -Wsign-compare \ 348 -std=gnu++11 \ 349 -Wno-narrowing \ 350 -Wno-literal-suffix \ 351 -Wno-non-virtual-dtor \ 352 -Wno-sign-promo 353 354 355 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 356 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 357 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 358 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 359 ### Rules for final target. 360 361 LOCAL_SHARED_LIBRARIES := \ 362 libstlport \ 363 libdl 364 365 # Add target alias to "gyp_all_modules" target. 366 .PHONY: gyp_all_modules 367 gyp_all_modules: ui_gfx_gfx_gyp 368 369 # Alias gyp target name. 370 .PHONY: gfx 371 gfx: ui_gfx_gfx_gyp 372 373 include $(BUILD_STATIC_LIBRARY) 374