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 'target_defaults': { |
7 'sources/': [ | 7 'sources/': [ |
8 ['exclude', '/(cocoa|gtk|win)/'], | 8 ['exclude', '/(cocoa|gtk|win)/'], |
9 ['exclude', '_(cocoa|gtk|linux|mac|posix|win|x)\\.(cc|mm?)$'], | 9 ['exclude', '_(cocoa|gtk|linux|mac|posix|win|x)\\.(cc|mm?)$'], |
10 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], | 10 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], |
11 ], | 11 ], |
12 'conditions': [ | 12 'conditions': [ |
13 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {'sources/': [ | 13 ['toolkit_uses_gtk == 1', {'sources/': [ |
14 ['include', '/gtk/'], | 14 ['include', '/gtk/'], |
15 ['include', '_(gtk|linux|posix|skia|x)\\.cc$'], | 15 ['include', '_(gtk|linux|posix|skia|x)\\.cc$'], |
16 ['include', '/(gtk|x11)_[^/]*\\.cc$'], | 16 ['include', '/(gtk|x11)_[^/]*\\.cc$'], |
17 ]}], | 17 ]}], |
18 ['OS=="mac"', {'sources/': [ | 18 ['OS=="mac"', {'sources/': [ |
19 ['include', '/cocoa/'], | 19 ['include', '/cocoa/'], |
20 ['include', '_(cocoa|mac|posix)\\.(cc|mm?)$'], | 20 ['include', '_(cocoa|mac|posix)\\.(cc|mm?)$'], |
21 ]}, { # else: OS != "mac" | 21 ]}, { # else: OS != "mac" |
22 'sources/': [ | 22 'sources/': [ |
23 ['exclude', '\\.mm?$'], | 23 ['exclude', '\\.mm?$'], |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.h', | 116 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.h', |
117 ], | 117 ], |
118 'action': [ | 118 'action': [ |
119 'python', | 119 'python', |
120 'generate_bindings.py', | 120 'generate_bindings.py', |
121 '<(gl_binding_output_dir)', | 121 '<(gl_binding_output_dir)', |
122 ], | 122 ], |
123 }, | 123 }, |
124 ], | 124 ], |
125 'conditions': [ | 125 'conditions': [ |
126 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="win"', { | 126 ['OS != "mac"', { |
127 'sources': [ | 127 'sources': [ |
128 'egl_util.cc', | 128 'egl_util.cc', |
129 'egl_util.h', | 129 'egl_util.h', |
130 'gl_context_egl.cc', | 130 'gl_context_egl.cc', |
131 'gl_context_egl.h', | 131 'gl_context_egl.h', |
132 'gl_surface_egl.cc', | 132 'gl_surface_egl.cc', |
133 'gl_surface_egl.h', | 133 'gl_surface_egl.h', |
134 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc', | 134 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc', |
135 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h', | 135 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h', |
136 ], | 136 ], |
137 'include_dirs': [ | 137 'include_dirs': [ |
138 '<(DEPTH)/third_party/angle/include', | 138 '<(DEPTH)/third_party/angle/include', |
139 ], | 139 ], |
140 }], | 140 }], |
141 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 141 ['use_x11 == 1', { |
142 'sources': [ | 142 'sources': [ |
143 'gl_context_glx.cc', | 143 'gl_context_glx.cc', |
144 'gl_context_glx.h', | 144 'gl_context_glx.h', |
145 'gl_surface_glx.cc', | 145 'gl_surface_glx.cc', |
146 'gl_surface_glx.h', | 146 'gl_surface_glx.h', |
147 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc', | 147 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc', |
148 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.h', | 148 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.h', |
149 ], | 149 ], |
150 'all_dependent_settings': { | 150 'all_dependent_settings': { |
151 'defines': [ | 151 'defines': [ |
(...skipping 21 matching lines...) Expand all Loading... |
173 'link_settings': { | 173 'link_settings': { |
174 'libraries': [ | 174 'libraries': [ |
175 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | 175 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
176 ], | 176 ], |
177 }, | 177 }, |
178 }], | 178 }], |
179 ], | 179 ], |
180 }, | 180 }, |
181 ], | 181 ], |
182 } | 182 } |
OLD | NEW |