diff options
author | sverrir@google.com <sverrir@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-07 21:31:39 +0000 |
---|---|---|
committer | sverrir@google.com <sverrir@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-07 21:31:39 +0000 |
commit | 8ff1d42631e79e842669dc3051d91ed7db80f1dc (patch) | |
tree | 55c1987549e982bfbf60a33fad3b60b5113d7864 /printing/printing.gyp | |
parent | 395f9295b3e370746846dbe6073a0d43ab7e4af5 (diff) | |
download | chromium_src-8ff1d42631e79e842669dc3051d91ed7db80f1dc.zip chromium_src-8ff1d42631e79e842669dc3051d91ed7db80f1dc.tar.gz chromium_src-8ff1d42631e79e842669dc3051d91ed7db80f1dc.tar.bz2 |
Move printing related stuff to the root printing project from the browser project. This simplifies further refactoring and eases understanding of the printing part of Chrome.
Also renamed win_printing_context to printing_context_win (correct naming convention) and added stub implementations for _linux and mac.
Now all but one file is compiling on all platforms.
TEST=none (no functional change).
BUG=none
Review URL: http://codereview.chromium.org/149212
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20086 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing.gyp')
-rw-r--r-- | printing/printing.gyp | 50 |
1 files changed, 46 insertions, 4 deletions
diff --git a/printing/printing.gyp b/printing/printing.gyp index 899bded..e0f1d38 100644 --- a/printing/printing.gyp +++ b/printing/printing.gyp @@ -14,9 +14,13 @@ 'target_name': 'printing', 'type': '<(library)', 'dependencies': [ + '../app/app.gyp:app_base', # Only required for Font support '../base/base.gyp:base', '../base/base.gyp:base_gfx', - + '../build/temp_gyp/googleurl.gyp:googleurl', + '../skia/skia.gyp:skia', + '../third_party/icu38/icu38.gyp:icui18n', + '../third_party/icu38/icu38.gyp:icuuc', ], 'msvs_guid': '9E5416B9-B91B-4029-93F4-102C1AD5CAF4', 'include_dirs': [ @@ -26,6 +30,25 @@ 'emf_win.cc', 'emf_win.h', 'native_metafile.h', + 'page_number.cc', + 'page_number.h', + 'page_overlays.cc', + 'page_overlays.h', + 'page_range.cc', + 'page_range.h', + 'page_setup.cc', + 'page_setup.h', + 'print_settings.cc', + 'print_settings.h', + 'printed_document.cc', + 'printed_document.h', + 'printed_page.cc', + 'printed_page.h', + 'printed_pages_source.h', + 'printing_context.h', + 'printing_context_linux.cc', + 'printing_context_mac.cc', + 'printing_context_win.cc', 'units.cc', 'units.h', ], @@ -38,7 +61,12 @@ ['OS!="linux"', {'sources/': [['exclude', '_linux\\.cc$']]}], ['OS!="mac"', {'sources/': [['exclude', '_mac\\.(cc|mm?)$']]}], ['OS!="win"', { - 'sources/': [['exclude', '_win\\.cc$']] + 'sources/': [ + ['exclude', '_win\\.cc$'], + ['exclude', + 'printed_document.cc', + ] + ] }, { # else: OS=="win" 'sources/': [['exclude', '_posix\\.cc$']] }], @@ -55,17 +83,31 @@ ], 'sources': [ 'emf_win_unittest.cc', + 'printing_test.h', + 'page_number_unittest.cc', + 'page_overlays_unittest.cc', + 'page_range_unittest.cc', + 'page_setup_unittest.cc', + 'printing_context_win_unittest.cc', 'units_unittest.cc', ], 'conditions': [ ['OS!="linux"', {'sources/': [['exclude', '_linux_unittest\\.cc$']]}], ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], ['OS!="win"', { - 'sources/': [['exclude', '_win_unittest\\.cc$']] + 'sources/': [ + ['exclude', '_win_unittest\\.cc$'], + + # Most of the printing functionailty is Windows only for now. + ['exclude', '.*'], + ['include', 'page_range_unittest.cc'], + ['include', 'page_setup_unittest.cc'], + ['include', 'units_unittest.cc'], + ] }, { # else: OS=="win" 'sources/': [['exclude', '_posix_unittest\\.cc$']] }], ], }, ], -} +}
\ No newline at end of file |