Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: app/app_base.gypi

Issue 2134006: Added EGL based GLContext.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | app/gfx/gl/generate_bindings.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2010 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 'variables': { 7 'variables': {
8 'app_base_target': 0, 8 'app_base_target': 0,
9 }, 9 },
10 'target_conditions': [ 10 'target_conditions': [
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 }], 60 }],
61 ], 61 ],
62 }, 62 },
63 'targets': [ 63 'targets': [
64 { 64 {
65 'target_name': 'app_base', 65 'target_name': 'app_base',
66 'type': '<(library)', 66 'type': '<(library)',
67 'msvs_guid': '4631946D-7D5F-44BD-A5A8-504C0A7033BE', 67 'msvs_guid': '4631946D-7D5F-44BD-A5A8-504C0A7033BE',
68 'variables': { 68 'variables': {
69 'app_base_target': 1, 69 'app_base_target': 1,
70 'gl_binding_output_dir': '<(SHARED_INTERMEDIATE_DIR)/app',
70 }, 71 },
71 'dependencies': [ 72 'dependencies': [
72 # app resources and app_strings should be shared with the 64-bit 73 # app resources and app_strings should be shared with the 64-bit
73 # target, but it doesn't work due to a bug in gyp 74 # target, but it doesn't work due to a bug in gyp
74 'app_resources', 75 'app_resources',
75 'app_strings', 76 'app_strings',
76 '../base/base.gyp:base', 77 '../base/base.gyp:base',
77 '../base/base.gyp:base_i18n', 78 '../base/base.gyp:base_i18n',
78 '../gfx/gfx.gyp:gfx', 79 '../gfx/gfx.gyp:gfx',
79 '../net/net.gyp:net', 80 '../net/net.gyp:net',
80 '../skia/skia.gyp:skia', 81 '../skia/skia.gyp:skia',
81 '../third_party/icu/icu.gyp:icui18n', 82 '../third_party/icu/icu.gyp:icui18n',
82 '../third_party/icu/icu.gyp:icuuc', 83 '../third_party/icu/icu.gyp:icuuc',
83 '../third_party/libjpeg/libjpeg.gyp:libjpeg', 84 '../third_party/libjpeg/libjpeg.gyp:libjpeg',
84 '../third_party/libpng/libpng.gyp:libpng', 85 '../third_party/libpng/libpng.gyp:libpng',
85 '../third_party/sqlite/sqlite.gyp:sqlite', 86 '../third_party/sqlite/sqlite.gyp:sqlite',
86 '../third_party/zlib/zlib.gyp:zlib', 87 '../third_party/zlib/zlib.gyp:zlib',
87 ], 88 ],
88 'defines': [
89 'GLEW_STATIC',
90 ],
91 'include_dirs': [ 89 'include_dirs': [
92 '../third_party/glew/include', 90 '../third_party/mesa/MesaLib/include',
91 '<(gl_binding_output_dir)',
93 ], 92 ],
94 # TODO(gregoryd): The direct_dependent_settings should be shared with 93 # TODO(gregoryd): The direct_dependent_settings should be shared with
95 # the 64-bit target, but it doesn't work due to a bug in gyp 94 # the 64-bit target, but it doesn't work due to a bug in gyp
96 'direct_dependent_settings': { 95 'direct_dependent_settings': {
97 'include_dirs': [ 96 'include_dirs': [
98 '..', 97 '..',
98 '../third_party/mesa/MesaLib/include',
99 '<(gl_binding_output_dir)',
99 ], 100 ],
100 }, 101 },
101 'sources': [ 102 'sources': [
102 # Files that are not required for Win64 Native Client loader 103 # Files that are not required for Win64 Native Client loader
103 'active_window_watcher_x.cc', 104 'active_window_watcher_x.cc',
104 'active_window_watcher_x.h', 105 'active_window_watcher_x.h',
105 'animation_container.cc', 106 'animation_container.cc',
106 'animation_container.h', 107 'animation_container.h',
107 'animation.cc', 108 'animation.cc',
108 'animation.h', 109 'animation.h',
109 'bidi_line_iterator.cc', 110 'bidi_line_iterator.cc',
110 'clipboard/clipboard.cc', 111 'clipboard/clipboard.cc',
111 'clipboard/clipboard.h', 112 'clipboard/clipboard.h',
112 'clipboard/clipboard_linux.cc', 113 'clipboard/clipboard_linux.cc',
113 'clipboard/clipboard_mac.mm', 114 'clipboard/clipboard_mac.mm',
114 'clipboard/clipboard_util_win.cc', 115 'clipboard/clipboard_util_win.cc',
115 'clipboard/clipboard_util_win.h', 116 'clipboard/clipboard_util_win.h',
116 'clipboard/clipboard_win.cc', 117 'clipboard/clipboard_win.cc',
117 'clipboard/scoped_clipboard_writer.cc', 118 'clipboard/scoped_clipboard_writer.cc',
118 'clipboard/scoped_clipboard_writer.h', 119 'clipboard/scoped_clipboard_writer.h',
119 'combobox_model.h', 120 'combobox_model.h',
120 'drag_drop_types_gtk.cc', 121 'drag_drop_types_gtk.cc',
121 'drag_drop_types_win.cc', 122 'drag_drop_types_win.cc',
122 'drag_drop_types.h', 123 'drag_drop_types.h',
123 'file_download_interface.h', 124 'file_download_interface.h',
124 'gfx/font_util.h', 125 'gfx/font_util.h',
125 'gfx/font_util.cc', 126 'gfx/font_util.cc',
127 'gfx/gl/gl_bindings.h',
126 'gfx/gl/gl_context.cc', 128 'gfx/gl/gl_context.cc',
127 'gfx/gl/gl_context.h', 129 'gfx/gl/gl_context.h',
130 'gfx/gl/gl_context_linux.cc',
131 'gfx/gl/gl_context_mac.cc',
128 'gfx/gl/gl_context_osmesa.cc', 132 'gfx/gl/gl_context_osmesa.cc',
129 'gfx/gl/gl_context_osmesa.h', 133 'gfx/gl/gl_context_osmesa.h',
130 'gfx/gl/gl_context_linux.cc', 134 'gfx/gl/gl_context_stub.h',
131 'gfx/gl/gl_context_linux.h',
132 'gfx/gl/gl_context_mac.cc',
133 'gfx/gl/gl_context_mac.h',
134 'gfx/gl/gl_context_win.cc', 135 'gfx/gl/gl_context_win.cc',
135 'gfx/gl/gl_context_win.h', 136 'gfx/gl/gl_headers.h',
137 'gfx/gl/gl_implementation.h',
138 'gfx/gl/gl_implementation_linux.cc',
139 'gfx/gl/gl_implementation_mac.cc',
140 'gfx/gl/gl_implementation_win.cc',
141 'gfx/gl/gl_interface.h',
142 'gfx/gl/gl_interface.cc',
143 'gfx/gl/gl_mock.h',
136 'gtk_dnd_util.cc', 144 'gtk_dnd_util.cc',
137 'gtk_dnd_util.h', 145 'gtk_dnd_util.h',
138 'gtk_signal.cc', 146 'gtk_signal.cc',
139 'gtk_signal.h', 147 'gtk_signal.h',
140 'gtk_util.cc', 148 'gtk_util.cc',
141 'gtk_util.h', 149 'gtk_util.h',
142 'l10n_util.cc', 150 'l10n_util.cc',
143 'l10n_util.h', 151 'l10n_util.h',
144 'l10n_util_mac.h', 152 'l10n_util_mac.h',
145 'l10n_util_mac.mm', 153 'l10n_util_mac.mm',
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 'text_elider.h', 204 'text_elider.h',
197 'theme_provider.cc', 205 'theme_provider.cc',
198 'theme_provider.h', 206 'theme_provider.h',
199 'throb_animation.cc', 207 'throb_animation.cc',
200 'throb_animation.h', 208 'throb_animation.h',
201 'tween.cc', 209 'tween.cc',
202 'tween.h', 210 'tween.h',
203 'x11_util.cc', 211 'x11_util.cc',
204 'x11_util.h', 212 'x11_util.h',
205 'x11_util_internal.h', 213 'x11_util_internal.h',
206 '../third_party/glew/src/glew.c', 214 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.cc',
215 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.h',
216 '<(gl_binding_output_dir)/gl_bindings_autogen_mock.cc',
217 '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.cc',
218 '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.h',
219 ],
220 # hard_dependency is necessary for this target because it has actions
221 # that generate header files included by dependent targtets. The header
222 # files must be generated before the dependents are compiled. The usual
223 # semantics are to allow the two targets to build concurrently.
224 'hard_dependency': 1,
225 'actions': [
226 {
227 'action_name': 'generate_gl_bindings',
228 'inputs': [
229 'gfx/gl/generate_bindings.py',
230 ],
231 'outputs': [
232 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc',
233 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h',
234 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.cc',
235 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.h',
236 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc',
237 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.h',
238 '<(gl_binding_output_dir)/gl_bindings_autogen_mock.cc',
239 '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.cc',
240 '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.h',
241 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.cc',
242 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.h',
243 ],
244 'action': [
245 'python',
246 'gfx/gl/generate_bindings.py',
247 '<(gl_binding_output_dir)',
248 ],
249 },
207 ], 250 ],
208 'conditions': [ 251 'conditions': [
209 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 252 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
210 'dependencies': [ 253 'dependencies': [
211 # font_gtk.cc uses fontconfig. 254 # font_gtk.cc uses fontconfig.
212 # TODO(evanm): I think this is wrong; it should just use GTK. 255 # TODO(evanm): I think this is wrong; it should just use GTK.
213 '../build/linux/system.gyp:fontconfig', 256 '../build/linux/system.gyp:fontconfig',
214 '../build/linux/system.gyp:gtk', 257 '../build/linux/system.gyp:gtk',
215 '../build/linux/system.gyp:x11', 258 '../build/linux/system.gyp:x11',
216 '../build/linux/system.gyp:xext', 259 '../build/linux/system.gyp:xext',
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 'gfx/gdi_util.h', 291 'gfx/gdi_util.h',
249 'gfx/icon_util.cc', 292 'gfx/icon_util.cc',
250 'gfx/icon_util.h', 293 'gfx/icon_util.h',
251 'gfx/native_theme_win.cc', 294 'gfx/native_theme_win.cc',
252 'gfx/native_theme_win.h', 295 'gfx/native_theme_win.h',
253 'os_exchange_data.cc', 296 'os_exchange_data.cc',
254 'win/window_impl.cc', 297 'win/window_impl.cc',
255 'win/window_impl.h', 298 'win/window_impl.h',
256 ], 299 ],
257 }], 300 }],
301 ['OS=="linux"', {
302 'sources': [
303 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc',
304 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.h',
305 ],
306 'all_dependent_settings': {
307 'defines': [
308 'GL_GLEXT_PROTOTYPES',
309 ],
310 'ldflags': [
311 '-L<(PRODUCT_DIR)',
312 ],
313 'link_settings': {
314 'libraries': [
315 '-lX11',
316 '-ldl',
317 ],
318 },
319 },
320 }],
321 ['OS=="mac"', {
322 'link_settings': {
323 'libraries': [
324 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
325 ],
326 },
327 }],
328 ['OS=="win"', {
329 'include_dirs': [
330 '../third_party/angle/include',
331 ],
332 'sources': [
333 'gfx/gl/gl_context_egl.cc',
334 'gfx/gl/gl_context_egl.h',
335 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc',
336 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h',
337 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.cc',
338 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.h',
339 ],
340 }],
258 ], 341 ],
259 }, 342 },
260 ], 343 ],
261 'conditions': [ 344 'conditions': [
262 ['OS=="win"', { 345 ['OS=="win"', {
263 'targets': [ 346 'targets': [
264 { 347 {
265 'target_name': 'app_base_nacl_win64', 348 'target_name': 'app_base_nacl_win64',
266 'type': '<(library)', 349 'type': '<(library)',
267 'msvs_guid': '4987C6F9-B230-48E5-BF91-418EAE69AD90', 350 'msvs_guid': '4987C6F9-B230-48E5-BF91-418EAE69AD90',
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 'configurations': { 383 'configurations': {
301 'Common_Base': { 384 'Common_Base': {
302 'msvs_target_platform': 'x64', 385 'msvs_target_platform': 'x64',
303 }, 386 },
304 }, 387 },
305 }, 388 },
306 ], 389 ],
307 }], 390 }],
308 ], 391 ],
309 } 392 }
OLDNEW
« no previous file with comments | « DEPS ('k') | app/gfx/gl/generate_bindings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698