Upstream version 10.39.225.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.cpp',
29             'common/angleutils.h',
30             'common/debug.cpp',
31             'common/debug.h',
32             'common/event_tracer.cpp',
33             'common/event_tracer.h',
34             'common/mathutil.cpp',
35             'common/mathutil.h',
36             'common/platform.h',
37             'common/tls.cpp',
38             'common/tls.h',
39             'common/utilities.cpp',
40             'common/utilities.h',
41             'common/version.h',
42             'libEGL/Config.cpp',
43             'libEGL/Config.h',
44             'libEGL/Display.cpp',
45             'libEGL/Display.h',
46             'libEGL/Surface.cpp',
47             'libEGL/Surface.h',
48             'libEGL/libEGL.cpp',
49             'libEGL/libEGL.def',
50             'libEGL/libEGL.rc',
51             'libEGL/main.cpp',
52             'libEGL/main.h',
53             'libEGL/resource.h',
54         ],
55     },
56     # Everything below this is duplicated in the GN build. If you change
57     # anything also change angle/BUILD.gn
58     'conditions':
59     [
60         ['OS=="win"',
61         {
62             'targets':
63             [
64                 {
65                     'target_name': 'libEGL',
66                     'type': 'shared_library',
67                     'dependencies': [ 'libGLESv2', 'commit_id' ],
68                     'include_dirs':
69                     [
70                         '.',
71                         '../include',
72                         'libGLESv2',
73                     ],
74                     'sources':
75                     [
76                         '<@(angle_libegl_sources)',
77                     ],
78                     'defines':
79                     [
80                         'GL_APICALL=',
81                         'GL_GLEXT_PROTOTYPES=',
82                         'EGLAPI=',
83                     ],
84                     'conditions':
85                     [
86                         ['angle_enable_d3d9==1',
87                         {
88                             'defines':
89                             [
90                                 'ANGLE_ENABLE_D3D9',
91                             ],
92                         }],
93                         ['angle_enable_d3d11==1',
94                         {
95                             'defines':
96                             [
97                                 'ANGLE_ENABLE_D3D11',
98                             ],
99                         }],
100                     ],
101                     'includes': [ '../build/common_defines.gypi', ],
102                     'msvs_settings':
103                     {
104                         'VCLinkerTool':
105                         {
106                             'AdditionalDependencies':
107                             [
108                                 'd3d9.lib',
109                             ],
110                         },
111                     },
112                     'configurations':
113                     {
114                         'Debug':
115                         {
116                             'defines':
117                             [
118                                 'ANGLE_ENABLE_PERF',
119                             ],
120                         },
121                     },
122                 },
123             ],
124         },
125         ],
126     ],
127 }