diff options
Diffstat (limited to 'ui/ui.gyp')
-rw-r--r-- | ui/ui.gyp | 28 |
1 files changed, 22 insertions, 6 deletions
@@ -5,11 +5,12 @@ { 'variables': { 'chromium_code': 1, + 'toolkit_views2': 0, # ui/views/ is an experimental framework on Windows. }, 'target_defaults': { 'sources/': [ ['exclude', '/(cocoa|gtk|win)/'], - ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'], + ['exclude', '_(cocoa|gtk|linux|mac|posix|win|x)\\.(cc|mm?)$'], ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], ], 'conditions': [ @@ -26,10 +27,16 @@ ['exclude', '\\.mm?$'], ], }], - ['OS=="win"', {'sources/': [ - ['include', '_(win)\\.cc$'], - ['include', '/win/'], - ['include', '/win_[^/]*\\.cc$'], + ['OS=="win"', + {'sources/': [ + ['include', '_(win)\\.cc$'], + ['include', '/win/'], + ['include', '/win_[^/]*\\.cc$'], + ]}, + {'variables': {'toolkit_views2': 1}}, + ], + ['toolkit_views2==0', {'sources/': [ + ['exclude', 'views/'], ]}], ['touchui==0', {'sources/': [ ['exclude', 'event_x.cc$'], @@ -41,7 +48,16 @@ ], }, 'includes': [ - 'base/ui_base.gypi', + 'ui_base.gypi', + 'ui_gfx.gypi', + 'ui_unittests.gypi', + ], + 'conditions': [ + ['toolkit_views2==1', { + 'includes': [ + 'ui_views.gypi', + ], + }], ], } |