| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'target_defaults': { | 6 'variables': { |
| 7 'sources/': [ | 7 'chromium_code': 1, |
| 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 ['toolkit_uses_gtk == 1', {'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 }, | 8 }, |
| 9 |
| 34 'targets': [ | 10 'targets': [ |
| 35 { | 11 { |
| 36 'target_name': 'gl', | 12 'target_name': 'gl', |
| 37 'type': 'static_library', | 13 'type': 'static_library', |
| 38 'dependencies': [ | 14 'dependencies': [ |
| 39 '<(DEPTH)/base/base.gyp:base', | 15 '<(DEPTH)/base/base.gyp:base', |
| 40 '<(DEPTH)/skia/skia.gyp:skia', | 16 '<(DEPTH)/skia/skia.gyp:skia', |
| 41 '<(DEPTH)/ui/ui.gyp:ui_base', | 17 '<(DEPTH)/ui/ui.gyp:ui_base', |
| 42 '<(DEPTH)/ui/ui.gyp:ui_gfx', | 18 '<(DEPTH)/ui/ui.gyp:ui_gfx', |
| 43 ], | 19 ], |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 ], | 150 ], |
| 175 'link_settings': { | 151 'link_settings': { |
| 176 'libraries': [ | 152 'libraries': [ |
| 177 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | 153 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
| 178 ], | 154 ], |
| 179 }, | 155 }, |
| 180 }], | 156 }], |
| 181 ], | 157 ], |
| 182 }, | 158 }, |
| 183 ], | 159 ], |
| 184 } | 160 } |
| OLD | NEW |