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 := printing_printing_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_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,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a 18 19 GYP_GENERATED_OUTPUTS := 20 21 # Make sure our deps and generated files are built first. 22 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 23 24 LOCAL_CPP_EXTENSION := .cc 25 LOCAL_GENERATED_SOURCES := 26 27 GYP_COPIED_SOURCE_ORIGIN_DIRS := 28 29 LOCAL_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/printed_document.cc \ 43 printing/printed_page.cc \ 44 printing/printing_context.cc \ 45 printing/print_job_constants.cc \ 46 printing/print_settings.cc \ 47 printing/print_settings_initializer.cc \ 48 printing/units.cc 49 50 51 # Flags passed to both C and C++ files. 52 MY_CFLAGS_Debug := \ 53 -fstack-protector \ 54 --param=ssp-buffer-size=4 \ 55 \ 56 -fno-exceptions \ 57 -fno-strict-aliasing \ 58 -Wall \ 59 -Wno-unused-parameter \ 60 -Wno-missing-field-initializers \ 61 -fvisibility=hidden \ 62 -pipe \ 63 -fPIC \ 64 -EL \ 65 -mhard-float \ 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 -Os \ 78 -g \ 79 -fomit-frame-pointer \ 80 -fdata-sections \ 81 -ffunction-sections 82 83 MY_DEFS_Debug := \ 84 '-DANGLE_DX11' \ 85 '-D_FILE_OFFSET_BITS=64' \ 86 '-DNO_TCMALLOC' \ 87 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 88 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 89 '-DDISABLE_NACL' \ 90 '-DCHROMIUM_BUILD' \ 91 '-DUSE_LIBJPEG_TURBO=1' \ 92 '-DUSE_PROPRIETARY_CODECS' \ 93 '-DENABLE_CONFIGURATION_POLICY' \ 94 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 95 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 96 '-DENABLE_GPU=1' \ 97 '-DUSE_OPENSSL=1' \ 98 '-DENABLE_EGLIMAGE=1' \ 99 '-DENABLE_PRINTING=1' \ 100 '-DPRINTING_IMPLEMENTATION' \ 101 '-DU_USING_ICU_NAMESPACE=0' \ 102 '-DPOSIX_AVOID_MMAP' \ 103 '-D__STDC_CONSTANT_MACROS' \ 104 '-D__STDC_FORMAT_MACROS' \ 105 '-DANDROID' \ 106 '-D__GNU_SOURCE=1' \ 107 '-DUSE_STLPORT=1' \ 108 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 109 '-DCHROME_BUILD_ID=""' \ 110 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 111 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 112 '-D_DEBUG' 113 114 115 # Include paths placed before CFLAGS/CPPFLAGS 116 LOCAL_C_INCLUDES_Debug := \ 117 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 118 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 119 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 120 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 121 $(LOCAL_PATH) \ 122 $(LOCAL_PATH)/third_party/skia/src/core \ 123 $(LOCAL_PATH)/skia/ext \ 124 $(PWD)/external/icu4c/common \ 125 $(PWD)/external/icu4c/i18n \ 126 $(PWD)/frameworks/wilhelm/include \ 127 $(PWD)/bionic \ 128 $(PWD)/external/stlport/stlport 129 130 131 # Flags passed to only C++ (and not C) files. 132 LOCAL_CPPFLAGS_Debug := \ 133 -fno-rtti \ 134 -fno-threadsafe-statics \ 135 -fvisibility-inlines-hidden \ 136 -Wsign-compare \ 137 -Wno-uninitialized \ 138 -Wno-error=c++0x-compat \ 139 -Wno-non-virtual-dtor \ 140 -Wno-sign-promo 141 142 143 # Flags passed to both C and C++ files. 144 MY_CFLAGS_Release := \ 145 -fstack-protector \ 146 --param=ssp-buffer-size=4 \ 147 \ 148 -fno-exceptions \ 149 -fno-strict-aliasing \ 150 -Wall \ 151 -Wno-unused-parameter \ 152 -Wno-missing-field-initializers \ 153 -fvisibility=hidden \ 154 -pipe \ 155 -fPIC \ 156 -EL \ 157 -mhard-float \ 158 -ffunction-sections \ 159 -funwind-tables \ 160 -g \ 161 -fstack-protector \ 162 -fno-short-enums \ 163 -finline-limit=64 \ 164 -Wa,--noexecstack \ 165 -U_FORTIFY_SOURCE \ 166 -Wno-extra \ 167 -Wno-ignored-qualifiers \ 168 -Wno-type-limits \ 169 -Os \ 170 -fno-ident \ 171 -fdata-sections \ 172 -ffunction-sections \ 173 -fomit-frame-pointer 174 175 MY_DEFS_Release := \ 176 '-DANGLE_DX11' \ 177 '-D_FILE_OFFSET_BITS=64' \ 178 '-DNO_TCMALLOC' \ 179 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 180 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 181 '-DDISABLE_NACL' \ 182 '-DCHROMIUM_BUILD' \ 183 '-DUSE_LIBJPEG_TURBO=1' \ 184 '-DUSE_PROPRIETARY_CODECS' \ 185 '-DENABLE_CONFIGURATION_POLICY' \ 186 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 187 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 188 '-DENABLE_GPU=1' \ 189 '-DUSE_OPENSSL=1' \ 190 '-DENABLE_EGLIMAGE=1' \ 191 '-DENABLE_PRINTING=1' \ 192 '-DPRINTING_IMPLEMENTATION' \ 193 '-DU_USING_ICU_NAMESPACE=0' \ 194 '-DPOSIX_AVOID_MMAP' \ 195 '-D__STDC_CONSTANT_MACROS' \ 196 '-D__STDC_FORMAT_MACROS' \ 197 '-DANDROID' \ 198 '-D__GNU_SOURCE=1' \ 199 '-DUSE_STLPORT=1' \ 200 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 201 '-DCHROME_BUILD_ID=""' \ 202 '-DNDEBUG' \ 203 '-DNVALGRIND' \ 204 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 205 '-D_FORTIFY_SOURCE=2' 206 207 208 # Include paths placed before CFLAGS/CPPFLAGS 209 LOCAL_C_INCLUDES_Release := \ 210 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 211 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 212 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 213 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 214 $(LOCAL_PATH) \ 215 $(LOCAL_PATH)/third_party/skia/src/core \ 216 $(LOCAL_PATH)/skia/ext \ 217 $(PWD)/external/icu4c/common \ 218 $(PWD)/external/icu4c/i18n \ 219 $(PWD)/frameworks/wilhelm/include \ 220 $(PWD)/bionic \ 221 $(PWD)/external/stlport/stlport 222 223 224 # Flags passed to only C++ (and not C) files. 225 LOCAL_CPPFLAGS_Release := \ 226 -fno-rtti \ 227 -fno-threadsafe-statics \ 228 -fvisibility-inlines-hidden \ 229 -Wsign-compare \ 230 -Wno-uninitialized \ 231 -Wno-error=c++0x-compat \ 232 -Wno-non-virtual-dtor \ 233 -Wno-sign-promo 234 235 236 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 237 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 238 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 239 ### Rules for final target. 240 241 LOCAL_LDFLAGS_Debug := \ 242 -Wl,-z,now \ 243 -Wl,-z,relro \ 244 -Wl,-z,noexecstack \ 245 -fPIC \ 246 -EL \ 247 -Wl,--no-keep-memory \ 248 -nostdlib \ 249 -Wl,--no-undefined \ 250 -Wl,--exclude-libs=ALL \ 251 -Wl,--fatal-warnings \ 252 -Wl,--gc-sections \ 253 -Wl,--warn-shared-textrel \ 254 -Wl,-O1 \ 255 -Wl,--as-needed 256 257 258 LOCAL_LDFLAGS_Release := \ 259 -Wl,-z,now \ 260 -Wl,-z,relro \ 261 -Wl,-z,noexecstack \ 262 -fPIC \ 263 -EL \ 264 -Wl,--no-keep-memory \ 265 -nostdlib \ 266 -Wl,--no-undefined \ 267 -Wl,--exclude-libs=ALL \ 268 -Wl,-O1 \ 269 -Wl,--as-needed \ 270 -Wl,--gc-sections \ 271 -Wl,--fatal-warnings \ 272 -Wl,--warn-shared-textrel 273 274 275 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 276 277 LOCAL_STATIC_LIBRARIES := \ 278 ui_ui_gyp 279 280 # Enable grouping to fix circular references 281 LOCAL_GROUP_STATIC_LIBRARIES := true 282 283 LOCAL_SHARED_LIBRARIES := \ 284 libskia \ 285 libstlport \ 286 libdl 287 288 # Add target alias to "gyp_all_modules" target. 289 .PHONY: gyp_all_modules 290 gyp_all_modules: printing_printing_gyp 291 292 # Alias gyp target name. 293 .PHONY: printing 294 printing: printing_printing_gyp 295 296 include $(BUILD_STATIC_LIBRARY) 297