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