OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 'includes': [ | 6 'includes': [ |
| 7 '../third_party/WebKit/WebKit/chromium/features.gypi', |
7 '../third_party/WebKit/WebCore/WebCore.gypi', | 8 '../third_party/WebKit/WebCore/WebCore.gypi', |
8 ], | 9 ], |
9 'variables': { | 10 'variables': { |
10 # TODO: remove this helper when we have loops in GYP | 11 # TODO: remove this helper when we have loops in GYP |
11 'apply_locales_cmd': ['python', '../chrome/tools/build/apply_locales.py',], | 12 'apply_locales_cmd': ['python', '../chrome/tools/build/apply_locales.py',], |
12 | 13 |
13 # We can't turn on warnings on Windows and Linux until we upstream the | 14 # We can't turn on warnings on Windows and Linux until we upstream the |
14 # WebKit API. | 15 # WebKit API. |
15 'conditions': [ | 16 'conditions': [ |
16 ['OS=="mac"', { | 17 ['OS=="mac"', { |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 ['exclude', 'CG\\.cpp$'], | 231 ['exclude', 'CG\\.cpp$'], |
231 ], | 232 ], |
232 }], | 233 }], |
233 ['OS=="win"', { | 234 ['OS=="win"', { |
234 'include_dirs': [ | 235 'include_dirs': [ |
235 'api/public/win', | 236 'api/public/win', |
236 ], | 237 ], |
237 }, { # else: OS!="win" | 238 }, { # else: OS!="win" |
238 'sources/': [['exclude', '/win/']], | 239 'sources/': [['exclude', '/win/']], |
239 }], | 240 }], |
| 241 ['"ENABLE_3D_CANVAS=1" in feature_defines', { |
| 242 # Conditionally compile in GLEW and our GraphicsContext3D implementati
on. |
| 243 'sources+': [ |
| 244 'api/src/GraphicsContext3D.cpp', |
| 245 '../third_party/glew/src/glew.c' |
| 246 ], |
| 247 'include_dirs+': [ |
| 248 '../third_party/glew/include' |
| 249 ], |
| 250 'defines+': [ |
| 251 'GLEW_STATIC=1', |
| 252 ], |
| 253 'conditions': [ |
| 254 ['OS=="win"', { |
| 255 'link_settings': { |
| 256 'libraries': [ |
| 257 '-lopengl32.lib', |
| 258 ] |
| 259 }, |
| 260 }], |
| 261 ], |
| 262 }], |
240 ], | 263 ], |
241 }, | 264 }, |
242 { | 265 { |
243 'target_name': 'webkit_resources', | 266 'target_name': 'webkit_resources', |
244 'type': 'none', | 267 'type': 'none', |
245 'msvs_guid': '0B469837-3D46-484A-AFB3-C5A6C68730B9', | 268 'msvs_guid': '0B469837-3D46-484A-AFB3-C5A6C68730B9', |
246 'variables': { | 269 'variables': { |
247 'grit_path': '../tools/grit/grit.py', | 270 'grit_path': '../tools/grit/grit.py', |
248 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/webkit', | 271 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/webkit', |
249 }, | 272 }, |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 'files': [ | 712 'files': [ |
690 | 713 |
691 '<@(webinspector_image_files)', | 714 '<@(webinspector_image_files)', |
692 | 715 |
693 ], | 716 ], |
694 }, | 717 }, |
695 ], | 718 ], |
696 }, | 719 }, |
697 ], # targets | 720 ], # targets |
698 } | 721 } |
OLD | NEW |