blob: b03adcf19ed0e7d7e8c1ecb69d9268e872961abb [file] [log] [blame]
Jamie Madill1cfaaf82014-08-21 10:04:04 -04001# Copyright (c) 2014 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{
Corentin Wallezbeb81582015-09-02 10:30:55 -04006 # Everything below this is duplicated in the GN build, except Mac support.
7 # If you change anything also change angle/BUILD.gn
Corentin Wallezfe2f3d62015-05-05 17:37:39 -04008 'variables':
9 {
10 'util_sources':
11 [
12 'com_utils.h',
13 'keyboard.h',
14 'mouse.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040015 'random_utils.cpp',
16 'random_utils.h',
17 'shader_utils.cpp',
18 'shader_utils.h',
Corentin Wallezdb39e7f2015-05-25 09:51:24 -040019 'system_utils.h',
20 'Event.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040021 'EGLWindow.cpp',
22 'EGLWindow.h',
Corentin Wallez52445282015-06-09 09:15:54 +020023 'OSPixmap.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040024 'OSWindow.cpp',
25 'OSWindow.h',
26 'Timer.h',
27 ],
28 'util_win32_sources':
29 [
Corentin Wallezdb39e7f2015-05-25 09:51:24 -040030 'win32/Win32_system_utils.cpp',
Corentin Wallez52445282015-06-09 09:15:54 +020031 'win32/Win32Pixmap.cpp',
32 'win32/Win32Pixmap.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040033 'win32/Win32Timer.cpp',
34 'win32/Win32Timer.h',
35 'win32/Win32Window.cpp',
36 'win32/Win32Window.h',
37 ],
38 'util_linux_sources':
39 [
Corentin Wallezdb39e7f2015-05-25 09:51:24 -040040 'linux/Linux_system_utils.cpp',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040041 'linux/LinuxTimer.cpp',
42 'linux/LinuxTimer.h',
Corentin Wallez5c798fe2015-05-25 10:03:35 -040043 'posix/Posix_system_utils.cpp',
Corentin Wallez51e2ad12015-05-26 11:32:58 -040044 ],
45 'util_x11_sources':
46 [
Corentin Wallez52445282015-06-09 09:15:54 +020047 'x11/X11Pixmap.cpp',
48 'x11/X11Pixmap.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040049 'x11/X11Window.cpp',
50 'x11/X11Window.h',
Corentin Wallez51e2ad12015-05-26 11:32:58 -040051 ],
Corentin Wallez87bef772015-06-19 15:42:09 -070052 'util_osx_sources':
53 [
54 'osx/OSX_system_utils.cpp',
55 'osx/OSXTimer.cpp',
56 'osx/OSXTimer.h',
Corentin Wallez31658f92015-07-15 12:57:34 -070057 'osx/OSXWindow.mm',
Corentin Wallez87bef772015-06-19 15:42:09 -070058 'osx/OSXWindow.h',
59 'posix/Posix_system_utils.cpp',
60 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040061 },
62 'targets':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040063 [
Jamie Madill1cfaaf82014-08-21 10:04:04 -040064 {
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040065 'target_name': 'angle_util',
66 'type': 'static_library',
67 'includes': [ '../build/common_defines.gypi', ],
68 'dependencies':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040069 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040070 '<(angle_path)/src/angle.gyp:angle_common',
71 '<(angle_path)/src/angle.gyp:libEGL',
72 '<(angle_path)/src/angle.gyp:libGLESv2',
73 ],
74 'export_dependent_settings':
75 [
76 '<(angle_path)/src/angle.gyp:angle_common',
77 ],
78 'include_dirs':
79 [
80 '<(angle_path)/include',
81 '<(angle_path)/util',
82 ],
83 'sources':
84 [
85 '<@(util_sources)',
86 ],
Geoff Lang82844362015-09-11 13:52:12 -040087 'defines':
88 [
89 'GL_GLEXT_PROTOTYPES',
90 'EGL_EGLEXT_PROTOTYPES',
91 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040092 'direct_dependent_settings':
93 {
94 'include_dirs':
95 [
96 '<(angle_path)/include',
97 '<(angle_path)/util',
98 ],
Geoff Lang82844362015-09-11 13:52:12 -040099 'defines':
100 [
101 'GL_GLEXT_PROTOTYPES',
102 'EGL_EGLEXT_PROTOTYPES',
103 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400104 },
105 'conditions':
106 [
107 ['OS=="win"',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400108 {
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400109 'msvs_disabled_warnings': [ 4201 ],
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400110 'sources':
111 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400112 '<@(util_win32_sources)',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400113 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400114 }],
115 ['OS=="linux"',
116 {
117 'sources':
118 [
119 '<@(util_linux_sources)',
120 ],
Corentin Wallez51e2ad12015-05-26 11:32:58 -0400121 }],
122 ['use_x11==1',
123 {
124 'sources':
125 [
126 '<@(util_x11_sources)',
127 ],
Geoff Lang4031b992015-05-29 10:57:55 -0400128 'link_settings':
129 {
130 'ldflags':
131 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400132 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
133 ],
Geoff Lang4031b992015-05-29 10:57:55 -0400134 'libraries':
135 [
Corentin Wallez4b6945a2015-05-14 15:30:36 -0400136 '<!@(pkg-config --libs-only-l x11 xi) -lrt',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400137 ],
138 },
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400139 }],
Corentin Wallez87bef772015-06-19 15:42:09 -0700140 ['OS=="mac"',
141 {
142 'sources':
143 [
144 '<@(util_osx_sources)',
145 ],
Corentin Wallez31658f92015-07-15 12:57:34 -0700146 'link_settings':
147 {
148 'libraries':
149 [
Corentin Wallez2f29d782015-09-14 12:15:53 -0700150 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
151 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
Corentin Wallez31658f92015-07-15 12:57:34 -0700152 ],
153 },
Corentin Wallez87bef772015-06-19 15:42:09 -0700154 }],
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400155 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400156 },
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400157 ],
158}