1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := printing_printing_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := \ 15 $(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \ 17 $(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \ 18 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp \ 19 $(call intermediates-dir-for,GYP,printing_printing_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/printing_jni_headers.stamp 20 21GYP_GENERATED_OUTPUTS := 22 23# Make sure our deps and generated files are built first. 24LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 25 26LOCAL_CPP_EXTENSION := .cc 27LOCAL_GENERATED_SOURCES := 28 29GYP_COPIED_SOURCE_ORIGIN_DIRS := 30 31LOCAL_SRC_FILES := \ 32 printing/backend/print_backend.cc \ 33 printing/backend/print_backend_consts.cc \ 34 printing/backend/print_backend_dummy.cc \ 35 printing/image.cc \ 36 printing/image_android.cc \ 37 printing/metafile_skia_wrapper.cc \ 38 printing/page_number.cc \ 39 printing/page_range.cc \ 40 printing/page_setup.cc \ 41 printing/pdf_metafile_skia.cc \ 42 printing/print_destination_none.cc \ 43 printing/print_job_constants.cc \ 44 printing/print_settings.cc \ 45 printing/print_settings_conversion.cc \ 46 printing/printed_document.cc \ 47 printing/printed_page.cc \ 48 printing/printing_context.cc \ 49 printing/printing_utils.cc \ 50 printing/units.cc \ 51 printing/printing_context_android.cc 52 53 54# Flags passed to both C and C++ files. 55MY_CFLAGS_Debug := \ 56 -fstack-protector \ 57 --param=ssp-buffer-size=4 \ 58 -Werror \ 59 -fno-exceptions \ 60 -fno-strict-aliasing \ 61 -Wall \ 62 -Wno-unused-parameter \ 63 -Wno-missing-field-initializers \ 64 -fvisibility=hidden \ 65 -pipe \ 66 -fPIC \ 67 -Wno-unused-local-typedefs \ 68 -m64 \ 69 -march=x86-64 \ 70 -ffunction-sections \ 71 -funwind-tables \ 72 -g \ 73 -fstack-protector \ 74 -fno-short-enums \ 75 -finline-limit=64 \ 76 -Wa,--noexecstack \ 77 -U_FORTIFY_SOURCE \ 78 -Wno-extra \ 79 -Wno-ignored-qualifiers \ 80 -Wno-type-limits \ 81 -Wno-unused-but-set-variable \ 82 -Os \ 83 -g \ 84 -fdata-sections \ 85 -ffunction-sections \ 86 -fomit-frame-pointer \ 87 -funwind-tables 88 89MY_DEFS_Debug := \ 90 '-DV8_DEPRECATION_WARNINGS' \ 91 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 92 '-D_FILE_OFFSET_BITS=64' \ 93 '-DNO_TCMALLOC' \ 94 '-DDISABLE_NACL' \ 95 '-DCHROMIUM_BUILD' \ 96 '-DUSE_LIBJPEG_TURBO=1' \ 97 '-DENABLE_WEBRTC=1' \ 98 '-DUSE_PROPRIETARY_CODECS' \ 99 '-DENABLE_BROWSER_CDMS' \ 100 '-DENABLE_CONFIGURATION_POLICY' \ 101 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 102 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 103 '-DENABLE_EGLIMAGE=1' \ 104 '-DCLD_VERSION=1' \ 105 '-DENABLE_PRINTING=1' \ 106 '-DENABLE_MANAGED_USERS=1' \ 107 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 108 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 109 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 110 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 111 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 112 '-DVIDEO_HOLE=1' \ 113 '-DPRINTING_IMPLEMENTATION' \ 114 '-DSK_ENABLE_INST_COUNT=0' \ 115 '-DSK_SUPPORT_GPU=1' \ 116 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 117 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 118 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 119 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 120 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 121 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 122 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 123 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 124 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 125 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 126 '-DSK_IGNORE_ETC1_SUPPORT' \ 127 '-DSK_IGNORE_GPU_DITHER' \ 128 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 129 '-DSK_BUILD_FOR_ANDROID' \ 130 '-DSK_USE_POSIX_THREADS' \ 131 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 132 '-DU_USING_ICU_NAMESPACE=0' \ 133 '-DUSE_OPENSSL=1' \ 134 '-DUSE_OPENSSL_CERTS=1' \ 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 148LOCAL_C_INCLUDES_Debug := \ 149 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 150 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 151 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 152 $(gyp_shared_intermediate_dir) \ 153 $(LOCAL_PATH) \ 154 $(LOCAL_PATH)/skia/config \ 155 $(LOCAL_PATH)/third_party/skia/src/core \ 156 $(LOCAL_PATH)/third_party/skia/include/core \ 157 $(LOCAL_PATH)/third_party/skia/include/effects \ 158 $(LOCAL_PATH)/third_party/skia/include/pdf \ 159 $(LOCAL_PATH)/third_party/skia/include/gpu \ 160 $(LOCAL_PATH)/third_party/skia/include/lazy \ 161 $(LOCAL_PATH)/third_party/skia/include/pathops \ 162 $(LOCAL_PATH)/third_party/skia/include/pipe \ 163 $(LOCAL_PATH)/third_party/skia/include/ports \ 164 $(LOCAL_PATH)/third_party/skia/include/utils \ 165 $(LOCAL_PATH)/skia/ext \ 166 $(PWD)/external/icu/icu4c/source/common \ 167 $(PWD)/external/icu/icu4c/source/i18n \ 168 $(gyp_shared_intermediate_dir)/printing \ 169 $(PWD)/frameworks/wilhelm/include \ 170 $(PWD)/bionic \ 171 $(PWD)/external/stlport/stlport 172 173 174# Flags passed to only C++ (and not C) files. 175LOCAL_CPPFLAGS_Debug := \ 176 -fno-rtti \ 177 -fno-threadsafe-statics \ 178 -fvisibility-inlines-hidden \ 179 -Wsign-compare \ 180 -Wno-non-virtual-dtor \ 181 -Wno-sign-promo 182 183 184LOCAL_FDO_SUPPORT_Debug := false 185 186# Flags passed to both C and C++ files. 187MY_CFLAGS_Release := \ 188 -fstack-protector \ 189 --param=ssp-buffer-size=4 \ 190 -Werror \ 191 -fno-exceptions \ 192 -fno-strict-aliasing \ 193 -Wall \ 194 -Wno-unused-parameter \ 195 -Wno-missing-field-initializers \ 196 -fvisibility=hidden \ 197 -pipe \ 198 -fPIC \ 199 -Wno-unused-local-typedefs \ 200 -m64 \ 201 -march=x86-64 \ 202 -ffunction-sections \ 203 -funwind-tables \ 204 -g \ 205 -fstack-protector \ 206 -fno-short-enums \ 207 -finline-limit=64 \ 208 -Wa,--noexecstack \ 209 -U_FORTIFY_SOURCE \ 210 -Wno-extra \ 211 -Wno-ignored-qualifiers \ 212 -Wno-type-limits \ 213 -Wno-unused-but-set-variable \ 214 -Os \ 215 -fno-ident \ 216 -fdata-sections \ 217 -ffunction-sections \ 218 -fomit-frame-pointer \ 219 -funwind-tables 220 221MY_DEFS_Release := \ 222 '-DV8_DEPRECATION_WARNINGS' \ 223 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 224 '-D_FILE_OFFSET_BITS=64' \ 225 '-DNO_TCMALLOC' \ 226 '-DDISABLE_NACL' \ 227 '-DCHROMIUM_BUILD' \ 228 '-DUSE_LIBJPEG_TURBO=1' \ 229 '-DENABLE_WEBRTC=1' \ 230 '-DUSE_PROPRIETARY_CODECS' \ 231 '-DENABLE_BROWSER_CDMS' \ 232 '-DENABLE_CONFIGURATION_POLICY' \ 233 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 234 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 235 '-DENABLE_EGLIMAGE=1' \ 236 '-DCLD_VERSION=1' \ 237 '-DENABLE_PRINTING=1' \ 238 '-DENABLE_MANAGED_USERS=1' \ 239 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 240 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 241 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 242 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 243 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 244 '-DVIDEO_HOLE=1' \ 245 '-DPRINTING_IMPLEMENTATION' \ 246 '-DSK_ENABLE_INST_COUNT=0' \ 247 '-DSK_SUPPORT_GPU=1' \ 248 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 249 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 250 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 251 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 252 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 253 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 254 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 255 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 256 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 257 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 258 '-DSK_IGNORE_ETC1_SUPPORT' \ 259 '-DSK_IGNORE_GPU_DITHER' \ 260 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 261 '-DSK_BUILD_FOR_ANDROID' \ 262 '-DSK_USE_POSIX_THREADS' \ 263 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 264 '-DU_USING_ICU_NAMESPACE=0' \ 265 '-DUSE_OPENSSL=1' \ 266 '-DUSE_OPENSSL_CERTS=1' \ 267 '-D__STDC_CONSTANT_MACROS' \ 268 '-D__STDC_FORMAT_MACROS' \ 269 '-DANDROID' \ 270 '-D__GNU_SOURCE=1' \ 271 '-DUSE_STLPORT=1' \ 272 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 273 '-DCHROME_BUILD_ID=""' \ 274 '-DNDEBUG' \ 275 '-DNVALGRIND' \ 276 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 277 '-D_FORTIFY_SOURCE=2' 278 279 280# Include paths placed before CFLAGS/CPPFLAGS 281LOCAL_C_INCLUDES_Release := \ 282 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 283 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 284 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 285 $(gyp_shared_intermediate_dir) \ 286 $(LOCAL_PATH) \ 287 $(LOCAL_PATH)/skia/config \ 288 $(LOCAL_PATH)/third_party/skia/src/core \ 289 $(LOCAL_PATH)/third_party/skia/include/core \ 290 $(LOCAL_PATH)/third_party/skia/include/effects \ 291 $(LOCAL_PATH)/third_party/skia/include/pdf \ 292 $(LOCAL_PATH)/third_party/skia/include/gpu \ 293 $(LOCAL_PATH)/third_party/skia/include/lazy \ 294 $(LOCAL_PATH)/third_party/skia/include/pathops \ 295 $(LOCAL_PATH)/third_party/skia/include/pipe \ 296 $(LOCAL_PATH)/third_party/skia/include/ports \ 297 $(LOCAL_PATH)/third_party/skia/include/utils \ 298 $(LOCAL_PATH)/skia/ext \ 299 $(PWD)/external/icu/icu4c/source/common \ 300 $(PWD)/external/icu/icu4c/source/i18n \ 301 $(gyp_shared_intermediate_dir)/printing \ 302 $(PWD)/frameworks/wilhelm/include \ 303 $(PWD)/bionic \ 304 $(PWD)/external/stlport/stlport 305 306 307# Flags passed to only C++ (and not C) files. 308LOCAL_CPPFLAGS_Release := \ 309 -fno-rtti \ 310 -fno-threadsafe-statics \ 311 -fvisibility-inlines-hidden \ 312 -Wsign-compare \ 313 -Wno-non-virtual-dtor \ 314 -Wno-sign-promo 315 316 317LOCAL_FDO_SUPPORT_Release := false 318 319LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 320LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 321LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 322LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 323LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 324### Rules for final target. 325 326LOCAL_LDFLAGS_Debug := \ 327 -Wl,-z,now \ 328 -Wl,-z,relro \ 329 -Wl,--fatal-warnings \ 330 -Wl,-z,noexecstack \ 331 -fPIC \ 332 -m64 \ 333 -fuse-ld=gold \ 334 -nostdlib \ 335 -Wl,--no-undefined \ 336 -Wl,--exclude-libs=ALL \ 337 -Wl,--warn-shared-textrel \ 338 -Wl,-O1 \ 339 -Wl,--as-needed 340 341 342LOCAL_LDFLAGS_Release := \ 343 -Wl,-z,now \ 344 -Wl,-z,relro \ 345 -Wl,--fatal-warnings \ 346 -Wl,-z,noexecstack \ 347 -fPIC \ 348 -m64 \ 349 -fuse-ld=gold \ 350 -nostdlib \ 351 -Wl,--no-undefined \ 352 -Wl,--exclude-libs=ALL \ 353 -Wl,-O1 \ 354 -Wl,--as-needed \ 355 -Wl,--gc-sections \ 356 -Wl,--warn-shared-textrel 357 358 359LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 360 361LOCAL_STATIC_LIBRARIES := \ 362 skia_skia_library_gyp 363 364# Enable grouping to fix circular references 365LOCAL_GROUP_STATIC_LIBRARIES := true 366 367LOCAL_SHARED_LIBRARIES := \ 368 libstlport \ 369 libdl 370 371# Add target alias to "gyp_all_modules" target. 372.PHONY: gyp_all_modules 373gyp_all_modules: printing_printing_gyp 374 375# Alias gyp target name. 376.PHONY: printing 377printing: printing_printing_gyp 378 379include $(BUILD_STATIC_LIBRARY) 380