| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 }, | 8 }, |
| 9 'targets': [ | 9 'targets': [ |
| 10 { | 10 { |
| 11 'target_name': 'printing', | 11 'target_name': 'printing', |
| 12 'type': '<(library)', | 12 'type': '<(library)', |
| 13 'dependencies': [ | 13 'dependencies': [ |
| 14 '../app/app.gyp:app_base', # Only required for Font support | 14 '../app/app.gyp:app_base', # Only required for Font support |
| 15 '../base/base.gyp:base', | 15 '../base/base.gyp:base', |
| 16 '../base/base.gyp:base_i18n', | 16 '../base/base.gyp:base_i18n', |
| 17 '../build/temp_gyp/googleurl.gyp:googleurl', | 17 '../build/temp_gyp/googleurl.gyp:googleurl', |
| 18 '../skia/skia.gyp:skia', | 18 '../skia/skia.gyp:skia', |
| 19 '../third_party/icu/icu.gyp:icui18n', | 19 '../third_party/icu/icu.gyp:icui18n', |
| 20 '../third_party/icu/icu.gyp:icuuc', | 20 '../third_party/icu/icu.gyp:icuuc', |
| 21 ], | 21 ], |
| 22 'msvs_guid': '9E5416B9-B91B-4029-93F4-102C1AD5CAF4', | 22 'msvs_guid': '9E5416B9-B91B-4029-93F4-102C1AD5CAF4', |
| 23 'include_dirs': [ | 23 'include_dirs': [ |
| 24 '..', | 24 '..', |
| 25 ], | 25 ], |
| 26 'sources': [ | 26 'sources': [ |
| 27 'backend/print_backend.cc', |
| 28 'backend/print_backend.h', |
| 29 'backend/print_backend_consts.cc', |
| 30 'backend/print_backend_consts.h', |
| 31 'backend/print_backend_dummy.cc', |
| 27 'emf_win.cc', | 32 'emf_win.cc', |
| 28 'emf_win.h', | 33 'emf_win.h', |
| 29 'image.cc', | 34 'image.cc', |
| 30 'image_cairo.cc', | 35 'image_cairo.cc', |
| 31 'image_mac.cc', | 36 'image_mac.cc', |
| 32 'image_win.cc', | 37 'image_win.cc', |
| 33 'image.h', | 38 'image.h', |
| 34 'native_metafile.h', | 39 'native_metafile.h', |
| 35 'page_number.cc', | 40 'page_number.cc', |
| 36 'page_number.h', | 41 'page_number.h', |
| 37 'page_overlays.cc', | 42 'page_overlays.cc', |
| 38 'page_overlays.h', | 43 'page_overlays.h', |
| 39 'page_range.cc', | 44 'page_range.cc', |
| 40 'page_range.h', | 45 'page_range.h', |
| 41 'page_setup.cc', | 46 'page_setup.cc', |
| 42 'page_setup.h', | 47 'page_setup.h', |
| 48 'pdf_metafile_mac.cc', |
| 43 'pdf_metafile_mac.h', | 49 'pdf_metafile_mac.h', |
| 44 'pdf_metafile_mac.cc', | 50 'pdf_ps_metafile_cairo.cc', |
| 45 'pdf_ps_metafile_cairo.h', | 51 'pdf_ps_metafile_cairo.h', |
| 46 'pdf_ps_metafile_cairo.cc', | 52 'printed_document_cairo.cc', |
| 47 'print_settings.cc', | |
| 48 'print_settings.h', | |
| 49 'printed_document.cc', | 53 'printed_document.cc', |
| 50 'printed_document_cairo.cc', | 54 'printed_document.h', |
| 51 'printed_document_mac.cc', | 55 'printed_document_mac.cc', |
| 52 'printed_document_posix.cc', | 56 'printed_document_posix.cc', |
| 53 'printed_document_win.cc', | 57 'printed_document_win.cc', |
| 54 'printed_document.h', | |
| 55 'printed_page.cc', | 58 'printed_page.cc', |
| 56 'printed_page.h', | 59 'printed_page.h', |
| 57 'printed_pages_source.h', | 60 'printed_pages_source.h', |
| 61 'printing_context_cairo.cc', |
| 62 'printing_context_cairo.h', |
| 63 'printing_context.cc', |
| 58 'printing_context.h', | 64 'printing_context.h', |
| 59 'printing_context.cc', | |
| 60 'printing_context_cairo.h', | |
| 61 'printing_context_cairo.cc', | |
| 62 'printing_context_mac.h', | 65 'printing_context_mac.h', |
| 63 'printing_context_mac.mm', | 66 'printing_context_mac.mm', |
| 67 'printing_context_win.cc', |
| 64 'printing_context_win.h', | 68 'printing_context_win.h', |
| 65 'printing_context_win.cc', | 69 'print_settings.cc', |
| 70 'print_settings.h', |
| 66 'units.cc', | 71 'units.cc', |
| 67 'units.h', | 72 'units.h', |
| 68 ], | 73 ], |
| 69 'direct_dependent_settings': { | 74 'direct_dependent_settings': { |
| 70 'include_dirs': [ | 75 'include_dirs': [ |
| 71 '..', | 76 '..', |
| 72 ], | 77 ], |
| 73 }, | 78 }, |
| 74 'conditions': [ | 79 'conditions': [ |
| 75 ['OS!="linux" and OS!="freebsd" and OS!="openbsd"',{ | 80 ['OS!="linux" and OS!="freebsd" and OS!="openbsd"',{ |
| 76 'sources/': [['exclude', '_cairo\\.cc$']] | 81 'sources/': [['exclude', '_cairo\\.cc$']] |
| 77 }], | 82 }], |
| 78 ['OS!="mac"', {'sources/': [['exclude', '_mac\\.(cc|mm?)$']]}], | 83 ['OS!="mac"', {'sources/': [['exclude', '_mac\\.(cc|mm?)$']]}], |
| 79 ['OS!="win"', {'sources/': [['exclude', '_win\\.cc$']] | 84 ['OS!="win"', {'sources/': [['exclude', '_win\\.cc$']] |
| 80 }, { # else: OS=="win" | 85 }, { # else: OS=="win" |
| 81 'sources/': [['exclude', '_posix\\.cc$']] | 86 'sources/': [['exclude', '_posix\\.cc$']] |
| 82 }], | 87 }], |
| 83 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 88 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 84 'dependencies': [ | 89 'dependencies': [ |
| 85 # For FT_Init_FreeType and friends. | 90 # For FT_Init_FreeType and friends. |
| 86 '../build/linux/system.gyp:freetype2', | 91 '../build/linux/system.gyp:freetype2', |
| 87 '../build/linux/system.gyp:gtk', | 92 '../build/linux/system.gyp:gtk', |
| 88 '../build/linux/system.gyp:gtkprint', | 93 '../build/linux/system.gyp:gtkprint', |
| 89 ], | 94 ], |
| 90 }], | 95 }], |
| 96 ['OS=="win"', { |
| 97 'defines': [ |
| 98 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |
| 99 # of the print backend and enables a custom implementation instead. |
| 100 'PRINT_BACKEND_AVAILABLE', |
| 101 ], |
| 102 'sources': [ |
| 103 'backend/win_helper.cc', |
| 104 'backend/win_helper.h', |
| 105 'backend/print_backend_win.cc', |
| 106 ], |
| 107 }], |
| 108 ['use_cups==1', { |
| 109 'link_settings': { |
| 110 'libraries': [ |
| 111 '-lcups', |
| 112 '-lgcrypt', |
| 113 ], |
| 114 }, |
| 115 'defines': [ |
| 116 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |
| 117 # of the print backend and enables a custom implementation instead. |
| 118 'PRINT_BACKEND_AVAILABLE', |
| 119 ], |
| 120 'sources': [ |
| 121 'backend/cups_helper.cc', |
| 122 'backend/cups_helper.h', |
| 123 'backend/print_backend_cups.cc', |
| 124 ], |
| 125 }], |
| 91 ], | 126 ], |
| 92 }, | 127 }, |
| 93 { | 128 { |
| 94 'target_name': 'printing_unittests', | 129 'target_name': 'printing_unittests', |
| 95 'type': 'executable', | 130 'type': 'executable', |
| 96 'msvs_guid': '8B2EE5D9-41BC-4AA2-A401-2DC143A05D2E', | 131 'msvs_guid': '8B2EE5D9-41BC-4AA2-A401-2DC143A05D2E', |
| 97 'dependencies': [ | 132 'dependencies': [ |
| 98 'printing', | 133 'printing', |
| 99 '../testing/gtest.gyp:gtest', | 134 '../testing/gtest.gyp:gtest', |
| 100 '../base/base.gyp:test_support_base', | 135 '../base/base.gyp:test_support_base', |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 ], | 173 ], |
| 139 }, | 174 }, |
| 140 ], | 175 ], |
| 141 } | 176 } |
| 142 | 177 |
| 143 # Local Variables: | 178 # Local Variables: |
| 144 # tab-width:2 | 179 # tab-width:2 |
| 145 # indent-tabs-mode:nil | 180 # indent-tabs-mode:nil |
| 146 # End: | 181 # End: |
| 147 # vim: set expandtab tabstop=2 shiftwidth=2: | 182 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |