# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'targets': [ { 'target_name': 'printing', 'type': '<(component)', 'dependencies': [ '../base/base.gyp:base', '../base/base.gyp:base_i18n', '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', '../skia/skia.gyp:skia', '../third_party/icu/icu.gyp:icui18n', '../third_party/icu/icu.gyp:icuuc', '../ui/gfx/gfx.gyp:gfx', '../ui/gfx/gfx.gyp:gfx_geometry', '../url/url.gyp:url_lib', ], 'defines': [ 'PRINTING_IMPLEMENTATION', ], 'include_dirs': [ '..', ], 'sources': [ 'backend/print_backend.cc', 'backend/print_backend.h', 'backend/print_backend_consts.cc', 'backend/print_backend_consts.h', 'backend/print_backend_dummy.cc', 'backend/printing_info_win.cc', 'backend/printing_info_win.h', 'emf_win.cc', 'emf_win.h', 'image.cc', 'image.h', 'image_android.cc', 'image_linux.cc', 'image_mac.cc', 'image_win.cc', 'metafile.h', 'metafile_impl.h', 'metafile_skia_wrapper.cc', 'metafile_skia_wrapper.h', 'page_number.cc', 'page_number.h', 'page_range.cc', 'page_range.h', 'page_setup.cc', 'page_setup.h', 'page_size_margins.cc', 'page_size_margins.h', 'pdf_metafile_cg_mac.cc', 'pdf_metafile_cg_mac.h', 'pdf_metafile_skia.cc', 'pdf_metafile_skia.h', 'print_destination_interface.h', 'print_destination_none.cc', 'print_dialog_gtk_interface.h', 'print_job_constants.cc', 'print_job_constants.h', 'print_settings.cc', 'print_settings.h', 'print_settings_initializer.cc', 'print_settings_initializer.h', 'print_settings_initializer_mac.cc', 'print_settings_initializer_mac.h', 'print_settings_initializer_win.cc', 'print_settings_initializer_win.h', 'printed_document.cc', 'printed_document.h', 'printed_document_linux.cc', 'printed_document_mac.cc', 'printed_document_win.cc', 'printed_page.cc', 'printed_page.h', 'printed_pages_source.h', 'printing_context.cc', 'printing_context.h', 'printing_utils.cc', 'printing_utils.h', 'units.cc', 'units.h', ], 'direct_dependent_settings': { 'include_dirs': [ '..', ], }, 'conditions': [ ['use_aura==1', { 'dependencies': [ '<(DEPTH)/ui/aura/aura.gyp:aura', ], }], # Mac-Aura does not support printing. ['OS=="mac" and use_aura==1',{ 'sources!': [ 'printed_document_mac.cc', 'printing_context_mac.mm', 'printing_context_mac.h', ], }], ['OS=="mac" and use_aura==0',{ 'sources': [ 'printing_context_mac.mm', 'printing_context_mac.h', ], }], ['OS=="win"', { 'dependencies': [ '<(DEPTH)/ui/aura/aura.gyp:aura', ], 'defines': [ # PRINT_BACKEND_AVAILABLE disables the default dummy implementation # of the print backend and enables a custom implementation instead. 'PRINT_BACKEND_AVAILABLE', ], 'sources': [ 'backend/win_helper.cc', 'backend/win_helper.h', 'backend/print_backend_win.cc', 'printing_context_win.cc', 'printing_context_win.h', ], }], ['chromeos==1',{ 'sources': [ 'printing_context_no_system_dialog.cc', 'printing_context_no_system_dialog.h', ], }], ['use_cups==1', { 'dependencies': [ 'cups', ], 'variables': { 'cups_version': '