OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'target_defaults': { |
| 7 'sources/': [ |
| 8 ['exclude', '/(cocoa|gtk|win)/'], |
| 9 ['exclude', '_(cocoa|gtk|linux|mac|posix|win|x)\\.(cc|mm?)$'], |
| 10 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], |
| 11 ], |
| 12 'conditions': [ |
| 13 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {'sources/': [ |
| 14 ['include', '/gtk/'], |
| 15 ['include', '_(gtk|linux|posix|skia|x)\\.cc$'], |
| 16 ['include', '/(gtk|x11)_[^/]*\\.cc$'], |
| 17 ]}], |
| 18 ['OS=="mac"', {'sources/': [ |
| 19 ['include', '/cocoa/'], |
| 20 ['include', '_(cocoa|mac|posix)\\.(cc|mm?)$'], |
| 21 ]}, { # else: OS != "mac" |
| 22 'sources/': [ |
| 23 ['exclude', '\\.mm?$'], |
| 24 ], |
| 25 }], |
| 26 ['OS=="win"', |
| 27 {'sources/': [ |
| 28 ['include', '_(win)\\.cc$'], |
| 29 ['include', '/win/'], |
| 30 ['include', '/win_[^/]*\\.cc$'], |
| 31 ]}], |
| 32 ], |
| 33 }, |
| 34 'targets': [ |
| 35 { |
| 36 'target_name': 'surface', |
| 37 'type': '<(library)', |
| 38 'msvs_guid': '6C99567D-6F02-43B5-BB35-D8E3F8D0D6D2', |
| 39 'dependencies': [ |
| 40 '<(DEPTH)/base/base.gyp:base', |
| 41 '<(DEPTH)/app/app.gyp:app_base', |
| 42 '<(DEPTH)/skia/skia.gyp:skia', |
| 43 '<(DEPTH)/ui/ui.gyp:ui_gfx', |
| 44 ], |
| 45 'sources': [ |
| 46 'accelerated_surface_mac.cc', |
| 47 'accelerated_surface_mac.h', |
| 48 'io_surface_support_mac.cc', |
| 49 'io_surface_support_mac.h', |
| 50 'transport_dib.h', |
| 51 'transport_dib_linux.cc', |
| 52 'transport_dib_mac.cc', |
| 53 'transport_dib_win.cc', |
| 54 ], |
| 55 }, |
| 56 ], |
| 57 } |
OLD | NEW |