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 'variables': { | 6 'variables': { |
7 # These are defined here because we want to be able to compile them on | 7 # These are defined here because we want to be able to compile them on |
8 # the buildbots without needed the OpenGL ES 2.0 conformance tests | 8 # the buildbots without needed the OpenGL ES 2.0 conformance tests |
9 # which are not open source. | 9 # which are not open source. |
10 'bootstrap_sources_native': [ | 10 'bootstrap_sources_native': [ |
(...skipping 15 matching lines...) Expand all Loading... |
26 ], | 26 ], |
27 }, | 27 }, |
28 'targets': [ | 28 'targets': [ |
29 { | 29 { |
30 'target_name': 'egl_native', | 30 'target_name': 'egl_native', |
31 'type': 'static_library', | 31 'type': 'static_library', |
32 'dependencies': [ | 32 'dependencies': [ |
33 '<(DEPTH)/base/base.gyp:base', | 33 '<(DEPTH)/base/base.gyp:base', |
34 '<(DEPTH)/gpu/gpu.gyp:command_buffer_service', | 34 '<(DEPTH)/gpu/gpu.gyp:command_buffer_service', |
35 ], | 35 ], |
36 'include_dirs': ['egl/native'], | 36 'include_dirs': ['<(DEPTH)/third_party/khronos'], |
37 'sources': [ | 37 'sources': [ |
38 'egl/config.cc', | 38 'egl/config.cc', |
39 'egl/config.h', | 39 'egl/config.h', |
40 'egl/display.cc', | 40 'egl/display.cc', |
41 'egl/display.h', | 41 'egl/display.h', |
42 'egl/egl.cc', | 42 'egl/egl.cc', |
43 'egl/surface.cc', | 43 'egl/surface.cc', |
44 'egl/surface.h', | 44 'egl/surface.h', |
45 ], | 45 ], |
46 'direct_dependent_settings': { | 46 'direct_dependent_settings': { |
47 'include_dirs': ['egl/native'], | 47 'include_dirs': ['<(DEPTH)/third_party/khronos'], |
48 }, | 48 }, |
| 49 'defines': [ |
| 50 'EGLAPI=', |
| 51 'EGLAPIENTRY=', |
| 52 ], |
49 }, | 53 }, |
50 { | 54 { |
51 'target_name': 'egl_main_native', | 55 'target_name': 'egl_main_native', |
52 'type': 'static_library', | 56 'type': 'static_library', |
53 'dependencies': [ | 57 'dependencies': [ |
54 'egl_native', | 58 'egl_native', |
55 ], | 59 ], |
56 'conditions': [ | 60 'conditions': [ |
57 ['toolkit_uses_gtk == 1', { | 61 ['toolkit_uses_gtk == 1', { |
58 'dependencies': ['../../build/linux/system.gyp:gtk'], | 62 'dependencies': ['../../build/linux/system.gyp:gtk'], |
59 }], | 63 }], |
60 ], | 64 ], |
61 'include_dirs': ['egl/native'], | 65 'include_dirs': ['<(DEPTH)/third_party/khronos'], |
62 'sources': [ | 66 'sources': [ |
63 '<@(bootstrap_sources_native)', | 67 '<@(bootstrap_sources_native)', |
64 ], | 68 ], |
65 'direct_dependent_settings': { | 69 'direct_dependent_settings': { |
66 'include_dirs': ['egl/native'], | 70 'include_dirs': ['<(DEPTH)/third_party/khronos'], |
67 }, | 71 }, |
68 'defines': ['GTF_GLES20'], | 72 'defines': [ |
| 73 'GTF_GLES20', |
| 74 'EGLAPI=', |
| 75 'EGLAPIENTRY=', |
| 76 ], |
69 }, | 77 }, |
70 { | 78 { |
71 'target_name': 'gles2_conform_support', | 79 'target_name': 'gles2_conform_support', |
72 'type': 'executable', | 80 'type': 'executable', |
73 'dependencies': [ | 81 'dependencies': [ |
74 'egl_native', | 82 'egl_native', |
75 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', | 83 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', |
76 '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib_nocheck', | 84 '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib_nocheck', |
77 '<(DEPTH)/third_party/expat/expat.gyp:expat', | 85 '<(DEPTH)/third_party/expat/expat.gyp:expat', |
78 ], | 86 ], |
79 'conditions': [ | 87 'conditions': [ |
80 ['toolkit_uses_gtk == 1', { | 88 ['toolkit_uses_gtk == 1', { |
81 'dependencies': ['../../build/linux/system.gyp:gtk'], | 89 'dependencies': ['../../build/linux/system.gyp:gtk'], |
82 }], | 90 }], |
83 ], | 91 ], |
84 'defines': [ | 92 'defines': [ |
85 'GLES2_CONFORM_SUPPORT_ONLY', | 93 'GLES2_CONFORM_SUPPORT_ONLY', |
86 'GTF_GLES20', | 94 'GTF_GLES20', |
| 95 'EGLAPI=', |
| 96 'EGLAPIENTRY=', |
87 ], | 97 ], |
88 'sources': [ | 98 'sources': [ |
89 '<@(bootstrap_sources_native)', | 99 '<@(bootstrap_sources_native)', |
90 'gles2_conform_support.c' | 100 'gles2_conform_support.c' |
91 ], | 101 ], |
92 }, | 102 }, |
93 ], | 103 ], |
94 } | 104 } |
OLD | NEW |