Upstream version 11.40.277.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         # This file list is shared with the GN build.
9         'angle_libegl_sources':
10         [
11             '../include/EGL/egl.h',
12             '../include/EGL/eglext.h',
13             '../include/EGL/eglplatform.h',
14             '../include/GLES2/gl2.h',
15             '../include/GLES2/gl2ext.h',
16             '../include/GLES2/gl2platform.h',
17             '../include/GLES3/gl3.h',
18             '../include/GLES3/gl3ext.h',
19             '../include/GLES3/gl3platform.h',
20             '../include/GLSLANG/ShaderLang.h',
21             '../include/GLSLANG/ShaderVars.h',
22             '../include/KHR/khrplatform.h',
23             '../include/angle_gl.h',
24             'common/RefCountObject.cpp',
25             'common/RefCountObject.h',
26             'common/angleutils.cpp',
27             'common/angleutils.h',
28             'common/debug.cpp',
29             'common/debug.h',
30             'common/event_tracer.cpp',
31             'common/event_tracer.h',
32             'common/mathutil.cpp',
33             'common/mathutil.h',
34             'common/platform.h',
35             'common/NativeWindow.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         'angle_libegl_win32_sources':
55         [
56             'common/win32/NativeWindow.cpp',
57         ],
58         'angle_libegl_winrt_sources':
59         [
60             'common/winrt/CoreWindowNativeWindow.cpp',
61             'common/winrt/CoreWindowNativeWindow.h',
62             'common/winrt/IInspectableNativeWindow.cpp',
63             'common/winrt/IInspectableNativeWindow.h',
64         ],
65     },
66     # Everything below this is duplicated in the GN build. If you change
67     # anything also change angle/BUILD.gn
68     'conditions':
69     [
70         ['OS=="win"',
71         {
72             'targets':
73             [
74                 {
75                     'target_name': 'libEGL',
76                     'type': 'shared_library',
77                     'dependencies': [ 'libGLESv2', 'commit_id' ],
78                     'include_dirs':
79                     [
80                         '.',
81                         '../include',
82                         'libGLESv2',
83                     ],
84                     'sources':
85                     [
86                         '<@(angle_libegl_sources)',
87                     ],
88                     'defines':
89                     [
90                         'GL_APICALL=',
91                         'GL_GLEXT_PROTOTYPES=',
92                         'EGLAPI=',
93                     ],
94                     'conditions':
95                     [
96                         ['angle_enable_d3d9==1',
97                         {
98                             'defines':
99                             [
100                                 'ANGLE_ENABLE_D3D9',
101                             ],
102                         }],
103                         ['angle_enable_d3d11==1',
104                         {
105                             'defines':
106                             [
107                                 'ANGLE_ENABLE_D3D11',
108                             ],
109                         }],
110                         ['angle_build_winrt==0',
111                         {
112                             'sources':
113                             [
114                                 '<@(angle_libegl_win32_sources)',
115                             ],
116                         }],
117
118                         ['angle_build_winrt==1',
119                         {
120                             'defines':
121                             [
122                                 'NTDDI_VERSION=NTDDI_WINBLUE',
123                             ],
124                             'sources':
125                             [
126                                 '<@(angle_libegl_winrt_sources)',
127                             ],
128                             'msvs_enable_winrt' : '1',
129                             'msvs_requires_importlibrary' : '1',
130                             'msvs_settings':
131                             {
132                                 'VCLinkerTool':
133                                 {
134                                     'EnableCOMDATFolding': '1',
135                                     'OptimizeReferences': '1',
136                                 }
137                             },
138                         }],
139                         ['angle_build_winphone==1',
140                         {
141                             'msvs_enable_winphone' : '1',
142                         }],
143                     ],
144                     'includes': [ '../build/common_defines.gypi', ],
145                     'msvs_settings':
146                     {
147                         'VCLinkerTool':
148                         {
149                             'conditions':
150                             [
151                                 ['angle_build_winrt==0',
152                                 {
153                                     'AdditionalDependencies':
154                                     [
155                                         'd3d9.lib',
156                                     ],
157                                 }],
158                                 ['angle_build_winrt==1',
159                                 {
160                                     'AdditionalDependencies':
161                                     [
162                                         'd3d11.lib',
163                                     ],
164                                 }],
165                             ],
166                         },
167                     },
168                     'configurations':
169                     {
170                         'Debug_Base':
171                         {
172                             'defines':
173                             [
174                                 'ANGLE_ENABLE_DEBUG_ANNOTATIONS',
175                             ],
176                         },
177                     },
178                 },
179             ],
180         },
181         ],
182     ],
183 }