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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_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,printing_printing_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/printing_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 printing/backend/print_backend.cc \ 32 printing/backend/print_backend_consts.cc \ 33 printing/backend/print_backend_dummy.cc \ 34 printing/image.cc \ 35 printing/image_android.cc \ 36 printing/metafile.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_job_constants.cc \ 43 printing/print_settings.cc \ 44 printing/print_settings_conversion.cc \ 45 printing/printed_document.cc \ 46 printing/printed_page.cc \ 47 printing/printing_context.cc \ 48 printing/printing_utils.cc \ 49 printing/units.cc \ 50 printing/printing_context_android.cc 51 52 53# Flags passed to both C and C++ files. 54MY_CFLAGS_Debug := \ 55 --param=ssp-buffer-size=4 \ 56 -Werror \ 57 -fno-strict-aliasing \ 58 -Wall \ 59 -Wno-unused-parameter \ 60 -Wno-missing-field-initializers \ 61 -fvisibility=hidden \ 62 -pipe \ 63 -fPIC \ 64 -Wno-unused-local-typedefs \ 65 -ffunction-sections \ 66 -funwind-tables \ 67 -g \ 68 -fno-short-enums \ 69 -finline-limit=64 \ 70 -Wa,--noexecstack \ 71 -U_FORTIFY_SOURCE \ 72 -Wno-extra \ 73 -Wno-ignored-qualifiers \ 74 -Wno-type-limits \ 75 -Wno-unused-but-set-variable \ 76 -Os \ 77 -g \ 78 -gdwarf-4 \ 79 -fdata-sections \ 80 -ffunction-sections \ 81 -funwind-tables 82 83MY_DEFS_Debug := \ 84 '-DV8_DEPRECATION_WARNINGS' \ 85 '-D_FILE_OFFSET_BITS=64' \ 86 '-DNO_TCMALLOC' \ 87 '-DDISABLE_NACL' \ 88 '-DCHROMIUM_BUILD' \ 89 '-DUSE_LIBJPEG_TURBO=1' \ 90 '-DENABLE_WEBRTC=1' \ 91 '-DUSE_PROPRIETARY_CODECS' \ 92 '-DENABLE_BROWSER_CDMS' \ 93 '-DENABLE_CONFIGURATION_POLICY' \ 94 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 95 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 96 '-DENABLE_EGLIMAGE=1' \ 97 '-DCLD_VERSION=1' \ 98 '-DENABLE_PRINTING=1' \ 99 '-DENABLE_MANAGED_USERS=1' \ 100 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 101 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 102 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 103 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 104 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 105 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 106 '-DVIDEO_HOLE=1' \ 107 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 108 '-DPRINTING_IMPLEMENTATION' \ 109 '-DSK_ENABLE_INST_COUNT=0' \ 110 '-DSK_SUPPORT_GPU=1' \ 111 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 112 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 113 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 114 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 115 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 116 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 117 '-DSK_BUILD_FOR_ANDROID' \ 118 '-DSK_USE_POSIX_THREADS' \ 119 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 120 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 121 '-DU_USING_ICU_NAMESPACE=0' \ 122 '-DU_ENABLE_DYLOAD=0' \ 123 '-DUSE_OPENSSL=1' \ 124 '-DUSE_OPENSSL_CERTS=1' \ 125 '-D__STDC_CONSTANT_MACROS' \ 126 '-D__STDC_FORMAT_MACROS' \ 127 '-DANDROID' \ 128 '-D__GNU_SOURCE=1' \ 129 '-DUSE_STLPORT=1' \ 130 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 131 '-DCHROME_BUILD_ID=""' \ 132 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 133 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 134 '-D_DEBUG' 135 136 137# Include paths placed before CFLAGS/CPPFLAGS 138LOCAL_C_INCLUDES_Debug := \ 139 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 140 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 141 $(gyp_shared_intermediate_dir) \ 142 $(LOCAL_PATH) \ 143 $(LOCAL_PATH)/skia/config \ 144 $(LOCAL_PATH)/third_party/skia/src/core \ 145 $(LOCAL_PATH)/third_party/skia/include/core \ 146 $(LOCAL_PATH)/third_party/skia/include/effects \ 147 $(LOCAL_PATH)/third_party/skia/include/pdf \ 148 $(LOCAL_PATH)/third_party/skia/include/gpu \ 149 $(LOCAL_PATH)/third_party/skia/include/lazy \ 150 $(LOCAL_PATH)/third_party/skia/include/pathops \ 151 $(LOCAL_PATH)/third_party/skia/include/pipe \ 152 $(LOCAL_PATH)/third_party/skia/include/ports \ 153 $(LOCAL_PATH)/third_party/skia/include/utils \ 154 $(LOCAL_PATH)/skia/ext \ 155 $(PWD)/external/icu/icu4c/source/common \ 156 $(PWD)/external/icu/icu4c/source/i18n \ 157 $(gyp_shared_intermediate_dir)/printing \ 158 $(PWD)/frameworks/wilhelm/include \ 159 $(PWD)/bionic \ 160 $(PWD)/external/stlport/stlport 161 162 163# Flags passed to only C++ (and not C) files. 164LOCAL_CPPFLAGS_Debug := \ 165 -fno-exceptions \ 166 -fno-rtti \ 167 -fno-threadsafe-statics \ 168 -fvisibility-inlines-hidden \ 169 -Wsign-compare \ 170 -std=gnu++11 \ 171 -Wno-narrowing \ 172 -Wno-literal-suffix \ 173 -Wno-non-virtual-dtor \ 174 -Wno-sign-promo 175 176 177# Flags passed to both C and C++ files. 178MY_CFLAGS_Release := \ 179 --param=ssp-buffer-size=4 \ 180 -Werror \ 181 -fno-strict-aliasing \ 182 -Wall \ 183 -Wno-unused-parameter \ 184 -Wno-missing-field-initializers \ 185 -fvisibility=hidden \ 186 -pipe \ 187 -fPIC \ 188 -Wno-unused-local-typedefs \ 189 -ffunction-sections \ 190 -funwind-tables \ 191 -g \ 192 -fno-short-enums \ 193 -finline-limit=64 \ 194 -Wa,--noexecstack \ 195 -U_FORTIFY_SOURCE \ 196 -Wno-extra \ 197 -Wno-ignored-qualifiers \ 198 -Wno-type-limits \ 199 -Wno-unused-but-set-variable \ 200 -Os \ 201 -fno-ident \ 202 -fdata-sections \ 203 -ffunction-sections \ 204 -funwind-tables 205 206MY_DEFS_Release := \ 207 '-DV8_DEPRECATION_WARNINGS' \ 208 '-D_FILE_OFFSET_BITS=64' \ 209 '-DNO_TCMALLOC' \ 210 '-DDISABLE_NACL' \ 211 '-DCHROMIUM_BUILD' \ 212 '-DUSE_LIBJPEG_TURBO=1' \ 213 '-DENABLE_WEBRTC=1' \ 214 '-DUSE_PROPRIETARY_CODECS' \ 215 '-DENABLE_BROWSER_CDMS' \ 216 '-DENABLE_CONFIGURATION_POLICY' \ 217 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 218 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 219 '-DENABLE_EGLIMAGE=1' \ 220 '-DCLD_VERSION=1' \ 221 '-DENABLE_PRINTING=1' \ 222 '-DENABLE_MANAGED_USERS=1' \ 223 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 224 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 225 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 226 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 227 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 228 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 229 '-DVIDEO_HOLE=1' \ 230 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 231 '-DPRINTING_IMPLEMENTATION' \ 232 '-DSK_ENABLE_INST_COUNT=0' \ 233 '-DSK_SUPPORT_GPU=1' \ 234 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 235 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 236 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 237 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 238 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 239 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 240 '-DSK_BUILD_FOR_ANDROID' \ 241 '-DSK_USE_POSIX_THREADS' \ 242 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 243 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 244 '-DU_USING_ICU_NAMESPACE=0' \ 245 '-DU_ENABLE_DYLOAD=0' \ 246 '-DUSE_OPENSSL=1' \ 247 '-DUSE_OPENSSL_CERTS=1' \ 248 '-D__STDC_CONSTANT_MACROS' \ 249 '-D__STDC_FORMAT_MACROS' \ 250 '-DANDROID' \ 251 '-D__GNU_SOURCE=1' \ 252 '-DUSE_STLPORT=1' \ 253 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 254 '-DCHROME_BUILD_ID=""' \ 255 '-DNDEBUG' \ 256 '-DNVALGRIND' \ 257 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 258 '-D_FORTIFY_SOURCE=2' 259 260 261# Include paths placed before CFLAGS/CPPFLAGS 262LOCAL_C_INCLUDES_Release := \ 263 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 264 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 265 $(gyp_shared_intermediate_dir) \ 266 $(LOCAL_PATH) \ 267 $(LOCAL_PATH)/skia/config \ 268 $(LOCAL_PATH)/third_party/skia/src/core \ 269 $(LOCAL_PATH)/third_party/skia/include/core \ 270 $(LOCAL_PATH)/third_party/skia/include/effects \ 271 $(LOCAL_PATH)/third_party/skia/include/pdf \ 272 $(LOCAL_PATH)/third_party/skia/include/gpu \ 273 $(LOCAL_PATH)/third_party/skia/include/lazy \ 274 $(LOCAL_PATH)/third_party/skia/include/pathops \ 275 $(LOCAL_PATH)/third_party/skia/include/pipe \ 276 $(LOCAL_PATH)/third_party/skia/include/ports \ 277 $(LOCAL_PATH)/third_party/skia/include/utils \ 278 $(LOCAL_PATH)/skia/ext \ 279 $(PWD)/external/icu/icu4c/source/common \ 280 $(PWD)/external/icu/icu4c/source/i18n \ 281 $(gyp_shared_intermediate_dir)/printing \ 282 $(PWD)/frameworks/wilhelm/include \ 283 $(PWD)/bionic \ 284 $(PWD)/external/stlport/stlport 285 286 287# Flags passed to only C++ (and not C) files. 288LOCAL_CPPFLAGS_Release := \ 289 -fno-exceptions \ 290 -fno-rtti \ 291 -fno-threadsafe-statics \ 292 -fvisibility-inlines-hidden \ 293 -Wsign-compare \ 294 -std=gnu++11 \ 295 -Wno-narrowing \ 296 -Wno-literal-suffix \ 297 -Wno-non-virtual-dtor \ 298 -Wno-sign-promo 299 300 301LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 302LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 303LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 304LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 305### Rules for final target. 306 307LOCAL_SHARED_LIBRARIES := \ 308 libstlport \ 309 libdl 310 311# Add target alias to "gyp_all_modules" target. 312.PHONY: gyp_all_modules 313gyp_all_modules: printing_printing_gyp 314 315# Alias gyp target name. 316.PHONY: printing 317printing: printing_printing_gyp 318 319include $(BUILD_STATIC_LIBRARY) 320