| 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', |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 'pdf_ps_metafile_linux.cc', | 44 'pdf_ps_metafile_linux.cc', |
| 45 'print_settings.cc', | 45 'print_settings.cc', |
| 46 'print_settings.h', | 46 'print_settings.h', |
| 47 'printed_document.cc', | 47 'printed_document.cc', |
| 48 'printed_document.h', | 48 'printed_document.h', |
| 49 'printed_page.cc', | 49 'printed_page.cc', |
| 50 'printed_page.h', | 50 'printed_page.h', |
| 51 'printed_pages_source.h', | 51 'printed_pages_source.h', |
| 52 'printing_context.h', | 52 'printing_context.h', |
| 53 'printing_context_linux.cc', | 53 'printing_context_linux.cc', |
| 54 'printing_context_mac.cc', | 54 'printing_context_mac.cc', |
| 55 'printing_context_win.cc', | 55 'printing_context_win.cc', |
| 56 'units.cc', | 56 'units.cc', |
| 57 'units.h', | 57 'units.h', |
| 58 ], | 58 ], |
| 59 'direct_dependent_settings': { | 59 'direct_dependent_settings': { |
| 60 'include_dirs': [ | 60 'include_dirs': [ |
| 61 '..', | 61 '..', |
| 62 ], | 62 ], |
| 63 }, | 63 }, |
| 64 'conditions': [ | 64 'conditions': [ |
| 65 ['OS!="linux"', {'sources/': [['exclude', '_linux\\.cc$']]}], | 65 ['OS!="linux"', {'sources/': [['exclude', '_linux\\.cc$']]}], |
| 66 ['OS!="mac"', {'sources/': [['exclude', '_mac\\.(cc|mm?)$']]}], | 66 ['OS!="mac"', {'sources/': [['exclude', '_mac\\.(cc|mm?)$']]}], |
| 67 ['OS!="win"', { | 67 ['OS!="win"', {'sources/': [['exclude', '_win\\.cc$']] |
| 68 'sources/': [ | 68 }, { # else: OS=="win" |
| 69 ['exclude', '_win\\.cc$'], | 69 'sources/': [['exclude', '_posix\\.cc$']] |
| 70 ['exclude', | |
| 71 'printed_document.cc', | |
| 72 ] | |
| 73 ] | |
| 74 }, { # else: OS=="win" | |
| 75 'sources/': [['exclude', '_posix\\.cc$']] | |
| 76 }], | 70 }], |
| 77 ], | 71 ], |
| 78 }, | 72 }, |
| 79 { | 73 { |
| 80 'target_name': 'printing_unittests', | 74 'target_name': 'printing_unittests', |
| 81 'type': 'executable', | 75 'type': 'executable', |
| 82 'msvs_guid': '8B2EE5D9-41BC-4AA2-A401-2DC143A05D2E', | 76 'msvs_guid': '8B2EE5D9-41BC-4AA2-A401-2DC143A05D2E', |
| 83 'dependencies': [ | 77 'dependencies': [ |
| 84 'printing', | 78 'printing', |
| 85 '../testing/gtest.gyp:gtest', | 79 '../testing/gtest.gyp:gtest', |
| 86 '../testing/gtest.gyp:gtestmain', | 80 '../testing/gtest.gyp:gtestmain', |
| 87 ], | 81 ], |
| 88 'sources': [ | 82 'sources': [ |
| 89 'emf_win_unittest.cc', | 83 'emf_win_unittest.cc', |
| 90 'printing_test.h', | 84 'printing_test.h', |
| 91 'page_number_unittest.cc', | 85 'page_number_unittest.cc', |
| 92 'page_overlays_unittest.cc', | 86 'page_overlays_unittest.cc', |
| 93 'page_range_unittest.cc', | 87 'page_range_unittest.cc', |
| 94 'page_setup_unittest.cc', | 88 'page_setup_unittest.cc', |
| 95 'pdf_ps_metafile_linux_unittest.cc', | 89 'pdf_ps_metafile_linux_unittest.cc', |
| 96 'printing_context_win_unittest.cc', | 90 'printing_context_win_unittest.cc', |
| 97 'run_all_unittests.cc', | 91 'run_all_unittests.cc', |
| 98 'units_unittest.cc', | 92 'units_unittest.cc', |
| 99 ], | 93 ], |
| 100 'conditions': [ | 94 'conditions': [ |
| 101 ['OS!="linux"', {'sources/': [['exclude', '_linux_unittest\\.cc$']]}], | 95 ['OS!="linux"', {'sources/': [['exclude', '_linux_unittest\\.cc$']]}], |
| 102 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], | 96 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], |
| 103 ['OS!="win"', { | 97 ['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']] |
| 104 'sources/': [ | 98 }, { # else: OS=="win" |
| 105 ['exclude', '_win_unittest\\.cc$'], | 99 'sources/': [['exclude', '_posix_unittest\\.cc$']] |
| 106 | 100 } |
| 107 # Most of the printing functionailty is Windows only for now. | 101 ], |
| 108 ['exclude', '.*'], | |
| 109 ['include', 'page_range_unittest.cc'], | |
| 110 ['include', 'page_setup_unittest.cc'], | |
| 111 ['include', 'units_unittest.cc'], | |
| 112 ] | |
| 113 }, { # else: OS=="win" | |
| 114 'sources/': [['exclude', '_posix_unittest\\.cc$']] | |
| 115 }], | |
| 116 ['OS=="linux"', { | 102 ['OS=="linux"', { |
| 117 'dependencies': [ | 103 'dependencies': [ |
| 118 '../base/base.gyp:base_gfx', | 104 '../build/linux/system.gyp:fontconfig', |
| 119 ], | 105 '../build/linux/system.gyp:gtk', |
| 120 'sources/': [ | 106 ], |
| 121 ['include', 'pdf_ps_metafile_linux_unittest.cc'], | |
| 122 ] | |
| 123 }], | 107 }], |
| 124 ], | 108 ], |
| 125 }, | 109 }, |
| 126 ], | 110 ], |
| 127 } | 111 } |
| OLD | NEW |