diff options
Diffstat (limited to 'ui/gfx/compositor/compositor.gyp')
-rw-r--r-- | ui/gfx/compositor/compositor.gyp | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/ui/gfx/compositor/compositor.gyp b/ui/gfx/compositor/compositor.gyp index f739b93..98adcf8 100644 --- a/ui/gfx/compositor/compositor.gyp +++ b/ui/gfx/compositor/compositor.gyp @@ -3,6 +3,19 @@ # found in the LICENSE file. { + 'target_defaults': { + 'sources/': [ + ['exclude', '_(gl|win)\\.(cc?)$'], + ], + 'conditions': [ + ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {'sources/': [ + ['include', '_(gl)\\.cc$'], + ]}], + ['OS=="win"', {'sources/': [ + ['include', '_(win)\\.cc$'], + ]}], + ], + }, 'targets': [ { 'target_name': 'compositor', @@ -10,25 +23,22 @@ 'msvs_guid': '21CEE0E3-6F4E-4F01-B8C9-F7751CC21AA9', 'dependencies': [ '<(DEPTH)/base/base.gyp:base', + '<(DEPTH)/skia/skia.gyp:skia', '<(DEPTH)/ui/gfx/gl/gl.gyp:gl', '<(DEPTH)/ui/ui.gyp:ui_gfx', ], 'sources': [ 'compositor.cc', - 'compositor_gl.cc', 'compositor.h', + 'compositor_gl.cc', ], 'conditions': [ ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 'sources!': [ 'compositor.cc', ], - }, { - 'sources!': [ - 'compositor_gl.cc', - ] }], ], }, ], -}
\ No newline at end of file +} |