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 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \ 15 $(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \ 16 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \ 17 $(call intermediates-dir-for,GYP,printing_printing_jni_headers_gyp)/printing_jni_headers.stamp 18 19GYP_GENERATED_OUTPUTS := 20 21# Make sure our deps and generated files are built first. 22LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 23 24LOCAL_CPP_EXTENSION := .cc 25LOCAL_GENERATED_SOURCES := 26 27GYP_COPIED_SOURCE_ORIGIN_DIRS := 28 29LOCAL_SRC_FILES := \ 30 printing/backend/print_backend.cc \ 31 printing/backend/print_backend_consts.cc \ 32 printing/backend/print_backend_dummy.cc \ 33 printing/image.cc \ 34 printing/image_android.cc \ 35 printing/metafile_skia_wrapper.cc \ 36 printing/page_number.cc \ 37 printing/page_range.cc \ 38 printing/page_setup.cc \ 39 printing/page_size_margins.cc \ 40 printing/pdf_metafile_skia.cc \ 41 printing/print_destination_none.cc \ 42 printing/print_job_constants.cc \ 43 printing/print_settings.cc \ 44 printing/print_settings_initializer.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-exceptions \ 58 -fno-strict-aliasing \ 59 -Wall \ 60 -Wno-unused-parameter \ 61 -Wno-missing-field-initializers \ 62 -fvisibility=hidden \ 63 -pipe \ 64 -fPIC \ 65 -m32 \ 66 -mmmx \ 67 -march=pentium4 \ 68 -msse2 \ 69 -mfpmath=sse \ 70 -fuse-ld=gold \ 71 -ffunction-sections \ 72 -funwind-tables \ 73 -g \ 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 -fno-stack-protector \ 82 -Os \ 83 -g \ 84 -fomit-frame-pointer \ 85 -fdata-sections \ 86 -ffunction-sections 87 88MY_DEFS_Debug := \ 89 '-DV8_DEPRECATION_WARNINGS' \ 90 '-D_FILE_OFFSET_BITS=64' \ 91 '-DNO_TCMALLOC' \ 92 '-DDISABLE_NACL' \ 93 '-DCHROMIUM_BUILD' \ 94 '-DUSE_LIBJPEG_TURBO=1' \ 95 '-DUSE_PROPRIETARY_CODECS' \ 96 '-DENABLE_CONFIGURATION_POLICY' \ 97 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 98 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 99 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 100 '-DUSE_OPENSSL=1' \ 101 '-DENABLE_EGLIMAGE=1' \ 102 '-DCLD_VERSION=1' \ 103 '-DENABLE_PRINTING=1' \ 104 '-DENABLE_MANAGED_USERS=1' \ 105 '-DPRINTING_IMPLEMENTATION' \ 106 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 107 '-DU_USING_ICU_NAMESPACE=0' \ 108 '-D__STDC_CONSTANT_MACROS' \ 109 '-D__STDC_FORMAT_MACROS' \ 110 '-DANDROID' \ 111 '-D__GNU_SOURCE=1' \ 112 '-DUSE_STLPORT=1' \ 113 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 114 '-DCHROME_BUILD_ID=""' \ 115 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 116 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 117 '-D_DEBUG' 118 119 120# Include paths placed before CFLAGS/CPPFLAGS 121LOCAL_C_INCLUDES_Debug := \ 122 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 123 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 124 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 125 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 126 $(LOCAL_PATH) \ 127 $(gyp_shared_intermediate_dir)/printing \ 128 $(LOCAL_PATH)/skia/config \ 129 $(PWD)/external/skia/include \ 130 $(PWD)/external/skia/include/core \ 131 $(LOCAL_PATH)/third_party/skia/src/core \ 132 $(LOCAL_PATH)/skia/ext \ 133 $(PWD)/external/icu4c/common \ 134 $(PWD)/external/icu4c/i18n \ 135 $(PWD)/frameworks/wilhelm/include \ 136 $(PWD)/bionic \ 137 $(PWD)/external/stlport/stlport 138 139 140# Flags passed to only C++ (and not C) files. 141LOCAL_CPPFLAGS_Debug := \ 142 -fno-rtti \ 143 -fno-threadsafe-statics \ 144 -fvisibility-inlines-hidden \ 145 -Wsign-compare \ 146 -Wno-error=c++0x-compat \ 147 -Wno-non-virtual-dtor \ 148 -Wno-sign-promo 149 150 151# Flags passed to both C and C++ files. 152MY_CFLAGS_Release := \ 153 --param=ssp-buffer-size=4 \ 154 -Werror \ 155 -fno-exceptions \ 156 -fno-strict-aliasing \ 157 -Wall \ 158 -Wno-unused-parameter \ 159 -Wno-missing-field-initializers \ 160 -fvisibility=hidden \ 161 -pipe \ 162 -fPIC \ 163 -m32 \ 164 -mmmx \ 165 -march=pentium4 \ 166 -msse2 \ 167 -mfpmath=sse \ 168 -fuse-ld=gold \ 169 -ffunction-sections \ 170 -funwind-tables \ 171 -g \ 172 -fno-short-enums \ 173 -finline-limit=64 \ 174 -Wa,--noexecstack \ 175 -U_FORTIFY_SOURCE \ 176 -Wno-extra \ 177 -Wno-ignored-qualifiers \ 178 -Wno-type-limits \ 179 -fno-stack-protector \ 180 -Os \ 181 -fno-ident \ 182 -fdata-sections \ 183 -ffunction-sections \ 184 -fomit-frame-pointer \ 185 -fno-unwind-tables \ 186 -fno-asynchronous-unwind-tables 187 188MY_DEFS_Release := \ 189 '-DV8_DEPRECATION_WARNINGS' \ 190 '-D_FILE_OFFSET_BITS=64' \ 191 '-DNO_TCMALLOC' \ 192 '-DDISABLE_NACL' \ 193 '-DCHROMIUM_BUILD' \ 194 '-DUSE_LIBJPEG_TURBO=1' \ 195 '-DUSE_PROPRIETARY_CODECS' \ 196 '-DENABLE_CONFIGURATION_POLICY' \ 197 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 198 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 199 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 200 '-DUSE_OPENSSL=1' \ 201 '-DENABLE_EGLIMAGE=1' \ 202 '-DCLD_VERSION=1' \ 203 '-DENABLE_PRINTING=1' \ 204 '-DENABLE_MANAGED_USERS=1' \ 205 '-DPRINTING_IMPLEMENTATION' \ 206 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 207 '-DU_USING_ICU_NAMESPACE=0' \ 208 '-D__STDC_CONSTANT_MACROS' \ 209 '-D__STDC_FORMAT_MACROS' \ 210 '-DANDROID' \ 211 '-D__GNU_SOURCE=1' \ 212 '-DUSE_STLPORT=1' \ 213 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 214 '-DCHROME_BUILD_ID=""' \ 215 '-DNDEBUG' \ 216 '-DNVALGRIND' \ 217 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 218 '-D_FORTIFY_SOURCE=2' 219 220 221# Include paths placed before CFLAGS/CPPFLAGS 222LOCAL_C_INCLUDES_Release := \ 223 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 224 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 225 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 226 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 227 $(LOCAL_PATH) \ 228 $(gyp_shared_intermediate_dir)/printing \ 229 $(LOCAL_PATH)/skia/config \ 230 $(PWD)/external/skia/include \ 231 $(PWD)/external/skia/include/core \ 232 $(LOCAL_PATH)/third_party/skia/src/core \ 233 $(LOCAL_PATH)/skia/ext \ 234 $(PWD)/external/icu4c/common \ 235 $(PWD)/external/icu4c/i18n \ 236 $(PWD)/frameworks/wilhelm/include \ 237 $(PWD)/bionic \ 238 $(PWD)/external/stlport/stlport 239 240 241# Flags passed to only C++ (and not C) files. 242LOCAL_CPPFLAGS_Release := \ 243 -fno-rtti \ 244 -fno-threadsafe-statics \ 245 -fvisibility-inlines-hidden \ 246 -Wsign-compare \ 247 -Wno-error=c++0x-compat \ 248 -Wno-non-virtual-dtor \ 249 -Wno-sign-promo 250 251 252LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 253LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 254LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 255### Rules for final target. 256 257LOCAL_LDFLAGS_Debug := \ 258 -Wl,-z,now \ 259 -Wl,-z,relro \ 260 -Wl,-z,noexecstack \ 261 -fPIC \ 262 -m32 \ 263 -fuse-ld=gold \ 264 -nostdlib \ 265 -Wl,--no-undefined \ 266 -Wl,--exclude-libs=ALL \ 267 -Wl,--fatal-warnings \ 268 -Wl,--gc-sections \ 269 -Wl,--warn-shared-textrel \ 270 -Wl,-O1 \ 271 -Wl,--as-needed 272 273 274LOCAL_LDFLAGS_Release := \ 275 -Wl,-z,now \ 276 -Wl,-z,relro \ 277 -Wl,-z,noexecstack \ 278 -fPIC \ 279 -m32 \ 280 -fuse-ld=gold \ 281 -nostdlib \ 282 -Wl,--no-undefined \ 283 -Wl,--exclude-libs=ALL \ 284 -Wl,-O1 \ 285 -Wl,--as-needed \ 286 -Wl,--gc-sections \ 287 -Wl,--fatal-warnings \ 288 -Wl,--warn-shared-textrel 289 290 291LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 292 293LOCAL_STATIC_LIBRARIES := 294 295# Enable grouping to fix circular references 296LOCAL_GROUP_STATIC_LIBRARIES := true 297 298LOCAL_SHARED_LIBRARIES := \ 299 libskia \ 300 libstlport \ 301 libdl 302 303# Add target alias to "gyp_all_modules" target. 304.PHONY: gyp_all_modules 305gyp_all_modules: printing_printing_gyp 306 307# Alias gyp target name. 308.PHONY: printing 309printing: printing_printing_gyp 310 311include $(BUILD_STATIC_LIBRARY) 312