| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 'includes': [ | 9 'includes': [ |
| 10 '../build/common.gypi', | 10 '../build/common.gypi', |
| 11 ], | 11 ], |
| 12 'targets': [ | 12 'targets': [ |
| 13 { | 13 { |
| 14 'target_name': 'printing', | 14 'target_name': 'printing', |
| 15 'type': '<(library)', | 15 'type': '<(library)', |
| 16 'dependencies': [ | 16 'dependencies': [ |
| 17 '../app/app.gyp:app_base', # Only required for Font support |
| 17 '../base/base.gyp:base', | 18 '../base/base.gyp:base', |
| 18 '../base/base.gyp:base_gfx', | 19 '../base/base.gyp:base_gfx', |
| 19 | 20 '../build/temp_gyp/googleurl.gyp:googleurl', |
| 21 '../skia/skia.gyp:skia', |
| 22 '../third_party/icu38/icu38.gyp:icui18n', |
| 23 '../third_party/icu38/icu38.gyp:icuuc', |
| 20 ], | 24 ], |
| 21 'msvs_guid': '9E5416B9-B91B-4029-93F4-102C1AD5CAF4', | 25 'msvs_guid': '9E5416B9-B91B-4029-93F4-102C1AD5CAF4', |
| 22 'include_dirs': [ | 26 'include_dirs': [ |
| 23 '..', | 27 '..', |
| 24 ], | 28 ], |
| 25 'sources': [ | 29 'sources': [ |
| 26 'emf_win.cc', | 30 'emf_win.cc', |
| 27 'emf_win.h', | 31 'emf_win.h', |
| 28 'native_metafile.h', | 32 'native_metafile.h', |
| 33 'page_number.cc', |
| 34 'page_number.h', |
| 35 'page_overlays.cc', |
| 36 'page_overlays.h', |
| 37 'page_range.cc', |
| 38 'page_range.h', |
| 39 'page_setup.cc', |
| 40 'page_setup.h', |
| 41 'print_settings.cc', |
| 42 'print_settings.h', |
| 43 'printed_document.cc', |
| 44 'printed_document.h', |
| 45 'printed_page.cc', |
| 46 'printed_page.h', |
| 47 'printed_pages_source.h', |
| 48 'printing_context.h', |
| 49 'printing_context_linux.cc', |
| 50 'printing_context_mac.cc', |
| 51 'printing_context_win.cc', |
| 29 'units.cc', | 52 'units.cc', |
| 30 'units.h', | 53 'units.h', |
| 31 ], | 54 ], |
| 32 'direct_dependent_settings': { | 55 'direct_dependent_settings': { |
| 33 'include_dirs': [ | 56 'include_dirs': [ |
| 34 '..', | 57 '..', |
| 35 ], | 58 ], |
| 36 }, | 59 }, |
| 37 'conditions': [ | 60 'conditions': [ |
| 38 ['OS!="linux"', {'sources/': [['exclude', '_linux\\.cc$']]}], | 61 ['OS!="linux"', {'sources/': [['exclude', '_linux\\.cc$']]}], |
| 39 ['OS!="mac"', {'sources/': [['exclude', '_mac\\.(cc|mm?)$']]}], | 62 ['OS!="mac"', {'sources/': [['exclude', '_mac\\.(cc|mm?)$']]}], |
| 40 ['OS!="win"', { | 63 ['OS!="win"', { |
| 41 'sources/': [['exclude', '_win\\.cc$']] | 64 'sources/': [ |
| 65 ['exclude', '_win\\.cc$'], |
| 66 ['exclude', |
| 67 'printed_document.cc', |
| 68 ] |
| 69 ] |
| 42 }, { # else: OS=="win" | 70 }, { # else: OS=="win" |
| 43 'sources/': [['exclude', '_posix\\.cc$']] | 71 'sources/': [['exclude', '_posix\\.cc$']] |
| 44 }], | 72 }], |
| 45 ], | 73 ], |
| 46 }, | 74 }, |
| 47 { | 75 { |
| 48 'target_name': 'printing_unittests', | 76 'target_name': 'printing_unittests', |
| 49 'type': 'executable', | 77 'type': 'executable', |
| 50 'msvs_guid': '8B2EE5D9-41BC-4AA2-A401-2DC143A05D2E', | 78 'msvs_guid': '8B2EE5D9-41BC-4AA2-A401-2DC143A05D2E', |
| 51 'dependencies': [ | 79 'dependencies': [ |
| 52 'printing', | 80 'printing', |
| 53 '../testing/gtest.gyp:gtest', | 81 '../testing/gtest.gyp:gtest', |
| 54 '../testing/gtest.gyp:gtestmain', | 82 '../testing/gtest.gyp:gtestmain', |
| 55 ], | 83 ], |
| 56 'sources': [ | 84 'sources': [ |
| 57 'emf_win_unittest.cc', | 85 'emf_win_unittest.cc', |
| 86 'printing_test.h', |
| 87 'page_number_unittest.cc', |
| 88 'page_overlays_unittest.cc', |
| 89 'page_range_unittest.cc', |
| 90 'page_setup_unittest.cc', |
| 91 'printing_context_win_unittest.cc', |
| 58 'units_unittest.cc', | 92 'units_unittest.cc', |
| 59 ], | 93 ], |
| 60 'conditions': [ | 94 'conditions': [ |
| 61 ['OS!="linux"', {'sources/': [['exclude', '_linux_unittest\\.cc$']]}], | 95 ['OS!="linux"', {'sources/': [['exclude', '_linux_unittest\\.cc$']]}], |
| 62 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], | 96 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], |
| 63 ['OS!="win"', { | 97 ['OS!="win"', { |
| 64 'sources/': [['exclude', '_win_unittest\\.cc$']] | 98 'sources/': [ |
| 99 ['exclude', '_win_unittest\\.cc$'], |
| 100 |
| 101 # Most of the printing functionailty is Windows only for now. |
| 102 ['exclude', '.*'], |
| 103 ['include', 'page_range_unittest.cc'], |
| 104 ['include', 'page_setup_unittest.cc'], |
| 105 ['include', 'units_unittest.cc'], |
| 106 ] |
| 65 }, { # else: OS=="win" | 107 }, { # else: OS=="win" |
| 66 'sources/': [['exclude', '_posix_unittest\\.cc$']] | 108 'sources/': [['exclude', '_posix_unittest\\.cc$']] |
| 67 }], | 109 }], |
| 68 ], | 110 ], |
| 69 }, | 111 }, |
| 70 ], | 112 ], |
| 71 } | 113 } |
| OLD | NEW |