Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / angle / src / libEGL.gypi
1 # Copyright (c) 2013 The ANGLE Project Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6     'variables':
7     {
8         'angle_enable_d3d9%': 1,
9         'angle_enable_d3d11%': 1,
10         # This file list is shared with the GN build.
11         'angle_libegl_sources':
12         [
13             '../include/EGL/egl.h',
14             '../include/EGL/eglext.h',
15             '../include/EGL/eglplatform.h',
16             '../include/GLES2/gl2.h',
17             '../include/GLES2/gl2ext.h',
18             '../include/GLES2/gl2platform.h',
19             '../include/GLES3/gl3.h',
20             '../include/GLES3/gl3ext.h',
21             '../include/GLES3/gl3platform.h',
22             '../include/GLSLANG/ShaderLang.h',
23             '../include/GLSLANG/ShaderVars.h',
24             '../include/KHR/khrplatform.h',
25             '../include/angle_gl.h',
26             'common/RefCountObject.cpp',
27             'common/RefCountObject.h',
28             'common/angleutils.h',
29             'common/debug.cpp',
30             'common/debug.h',
31             'common/event_tracer.cpp',
32             'common/event_tracer.h',
33             'common/mathutil.cpp',
34             'common/mathutil.h',
35             'common/platform.h',
36             'common/tls.cpp',
37             'common/tls.h',
38             'common/utilities.cpp',
39             'common/utilities.h',
40             'common/version.h',
41             'libEGL/Config.cpp',
42             'libEGL/Config.h',
43             'libEGL/Display.cpp',
44             'libEGL/Display.h',
45             'libEGL/Surface.cpp',
46             'libEGL/Surface.h',
47             'libEGL/libEGL.cpp',
48             'libEGL/libEGL.def',
49             'libEGL/libEGL.rc',
50             'libEGL/main.cpp',
51             'libEGL/main.h',
52             'libEGL/resource.h',
53         ],
54     },
55     # Everything below this is duplicated in the GN build. If you change
56     # anything also change angle/BUILD.gn
57     'conditions':
58     [
59         ['OS=="win"',
60         {
61             'targets':
62             [
63                 {
64                     'target_name': 'libEGL',
65                     'type': 'shared_library',
66                     'dependencies': [ 'libGLESv2', 'commit_id' ],
67                     'include_dirs':
68                     [
69                         '.',
70                         '../include',
71                         'libGLESv2',
72                     ],
73                     'sources':
74                     [
75                         '<@(angle_libegl_sources)',
76                     ],
77                     'defines':
78                     [
79                         'GL_APICALL=',
80                         'GL_GLEXT_PROTOTYPES=',
81                         'EGLAPI=',
82                     ],
83                     'conditions':
84                     [
85                         ['angle_enable_d3d9==1',
86                         {
87                             'defines':
88                             [
89                                 'ANGLE_ENABLE_D3D9',
90                             ],
91                         }],
92                         ['angle_enable_d3d11==1',
93                         {
94                             'defines':
95                             [
96                                 'ANGLE_ENABLE_D3D11',
97                             ],
98                         }],
99                     ],
100                     'includes': [ '../build/common_defines.gypi', ],
101                     'msvs_settings':
102                     {
103                         'VCLinkerTool':
104                         {
105                             'AdditionalDependencies':
106                             [
107                                 'd3d9.lib',
108                             ],
109                         },
110                     },
111                     'configurations':
112                     {
113                         'Debug':
114                         {
115                             'defines':
116                             [
117                                 'ANGLE_ENABLE_PERF',
118                             ],
119                         },
120                     },
121                 },
122             ],
123         },
124         ],
125     ],
126 }