diff options
Diffstat (limited to 'printing/printing.gyp')
-rw-r--r-- | printing/printing.gyp | 48 |
1 files changed, 31 insertions, 17 deletions
diff --git a/printing/printing.gyp b/printing/printing.gyp index ca7f787..7c66b9a 100644 --- a/printing/printing.gyp +++ b/printing/printing.gyp @@ -66,13 +66,6 @@ 'printed_pages_source.h', 'printing_context.cc', 'printing_context.h', - 'printing_context_aura.cc', - 'printing_context_cairo.cc', - 'printing_context_cairo.h', - 'printing_context_mac.mm', - 'printing_context_mac.h', - 'printing_context_win.cc', - 'printing_context_win.h', 'print_dialog_gtk_interface.h', 'print_job_constants.cc', 'print_job_constants.h', @@ -117,16 +110,25 @@ ['exclude', 'metafile_skia_wrapper\\.(cc|h)$'], ], }], + ['OS=="mac" and use_aura==0',{ + 'sources': [ + 'printing_context_mac.mm', + 'printing_context_mac.h', + ], + }], ['OS=="win"', { 'conditions': [ ['use_aura==1', { 'sources!': [ 'image_aura.cc', 'printed_document_aura.cc', - 'printing_context_aura.cc', ], - }], - ], + }, { #else: use_aura==0 + 'sources': [ + 'printing_context_win.cc', + 'printing_context_win.h', + ], + }]], 'defines': [ # PRINT_BACKEND_AVAILABLE disables the default dummy implementation # of the print backend and enables a custom implementation instead. @@ -138,6 +140,12 @@ 'backend/print_backend_win.cc', ], }], + ['chromeos==1 or use_aura==1',{ + 'sources': [ + 'printing_context_no_system_dialog.cc', + 'printing_context_no_system_dialog.h', + ], + }], ['use_cups==1', { 'dependencies': [ 'cups', @@ -170,6 +178,12 @@ 'backend/print_backend_chromeos.cc', ], }], + ['OS=="linux" and chromeos==0', { + 'sources': [ + 'printing_context_gtk.cc', + 'printing_context_gtk.h', + ], + }], ], }, { @@ -189,18 +203,18 @@ 'page_setup_unittest.cc', 'pdf_metafile_cg_mac_unittest.cc', 'printed_page_unittest.cc', - 'printing_context_win_unittest.cc', 'run_all_unittests.cc', 'units_unittest.cc', ], 'conditions': [ - ['toolkit_uses_gtk == 0', {'sources/': [['exclude', '_cairo_unittest\\.cc$']]}], + ['toolkit_uses_gtk == 0', {'sources/': [['exclude', '_gtk_unittest\\.cc$']]}], ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], - ['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']] - }, { # else: OS=="win" - 'sources/': [['exclude', '_cairo_unittest\\.cc$']] - } - ], + ['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']]}], + ['OS=="win" and use_aura == 0', { + 'sources': [ + 'printing_context_win_unittest.cc', + ] + }], ['toolkit_uses_gtk == 1', { 'dependencies': [ '../build/linux/system.gyp:gtk', |