blob: c29fffca2868f99916c1123b9e2be7dc12917799 [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',
Jamie Madillad60e8e2015-09-22 12:40:31 -040014 'geometry_utils.cpp',
15 'geometry_utils.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040016 'mouse.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040017 'random_utils.cpp',
18 'random_utils.h',
19 'shader_utils.cpp',
20 'shader_utils.h',
Corentin Wallezdb39e7f2015-05-25 09:51:24 -040021 'system_utils.h',
22 'Event.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040023 'EGLWindow.cpp',
24 'EGLWindow.h',
Jamie Madillad60e8e2015-09-22 12:40:31 -040025 'Matrix.cpp',
26 'Matrix.h',
Corentin Wallez52445282015-06-09 09:15:54 +020027 'OSPixmap.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040028 'OSWindow.cpp',
29 'OSWindow.h',
30 'Timer.h',
Jamie Madillad60e8e2015-09-22 12:40:31 -040031 'Vector.cpp',
32 'Vector.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040033 ],
34 'util_win32_sources':
35 [
Austin Kinross9f2fd2b2015-09-02 12:29:07 -070036 'windows/win32/Win32_system_utils.cpp',
37 'windows/win32/Win32Pixmap.cpp',
38 'windows/win32/Win32Pixmap.h',
39 'windows/win32/Win32Window.cpp',
40 'windows/win32/Win32Window.h',
41 'windows/Windows_system_utils.cpp',
42 'windows/WindowsTimer.cpp',
43 'windows/WindowsTimer.h',
44 ],
45 'util_winrt_sources':
46 [
47 'windows/winrt/WinRT_system_utils.cpp',
48 'windows/winrt/WinRTPixmap.cpp',
49 'windows/winrt/WinRTWindow.cpp',
50 'windows/winrt/WinRTWindow.h',
51 'windows/Windows_system_utils.cpp',
52 'windows/WindowsTimer.cpp',
53 'windows/WindowsTimer.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040054 ],
55 'util_linux_sources':
56 [
Corentin Wallezdb39e7f2015-05-25 09:51:24 -040057 'linux/Linux_system_utils.cpp',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040058 'linux/LinuxTimer.cpp',
59 'linux/LinuxTimer.h',
Corentin Wallez5c798fe2015-05-25 10:03:35 -040060 'posix/Posix_system_utils.cpp',
Corentin Wallez51e2ad12015-05-26 11:32:58 -040061 ],
62 'util_x11_sources':
63 [
Corentin Wallez52445282015-06-09 09:15:54 +020064 'x11/X11Pixmap.cpp',
65 'x11/X11Pixmap.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040066 'x11/X11Window.cpp',
67 'x11/X11Window.h',
Corentin Wallez51e2ad12015-05-26 11:32:58 -040068 ],
Corentin Wallez87bef772015-06-19 15:42:09 -070069 'util_osx_sources':
70 [
71 'osx/OSX_system_utils.cpp',
72 'osx/OSXTimer.cpp',
73 'osx/OSXTimer.h',
Corentin Wallez27593e02015-09-15 08:19:09 -070074 'osx/OSXPixmap.mm',
75 'osx/OSXPixmap.h',
Corentin Wallez31658f92015-07-15 12:57:34 -070076 'osx/OSXWindow.mm',
Corentin Wallez87bef772015-06-19 15:42:09 -070077 'osx/OSXWindow.h',
78 'posix/Posix_system_utils.cpp',
79 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040080 },
81 'targets':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040082 [
Jamie Madill1cfaaf82014-08-21 10:04:04 -040083 {
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040084 'target_name': 'angle_util',
85 'type': 'static_library',
86 'includes': [ '../build/common_defines.gypi', ],
87 'dependencies':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040088 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040089 '<(angle_path)/src/angle.gyp:angle_common',
90 '<(angle_path)/src/angle.gyp:libEGL',
91 '<(angle_path)/src/angle.gyp:libGLESv2',
92 ],
93 'export_dependent_settings':
94 [
95 '<(angle_path)/src/angle.gyp:angle_common',
96 ],
97 'include_dirs':
98 [
99 '<(angle_path)/include',
100 '<(angle_path)/util',
101 ],
102 'sources':
103 [
104 '<@(util_sources)',
105 ],
Geoff Langee483762015-09-15 13:12:07 -0400106 'defines':
107 [
108 'GL_GLEXT_PROTOTYPES',
109 'EGL_EGLEXT_PROTOTYPES',
110 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400111 'direct_dependent_settings':
112 {
113 'include_dirs':
114 [
115 '<(angle_path)/include',
116 '<(angle_path)/util',
117 ],
Geoff Langee483762015-09-15 13:12:07 -0400118 'defines':
119 [
120 'GL_GLEXT_PROTOTYPES',
121 'EGL_EGLEXT_PROTOTYPES',
122 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400123 },
124 'conditions':
125 [
Austin Kinross9f2fd2b2015-09-02 12:29:07 -0700126 ['OS=="win" and angle_build_winrt==0',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400127 {
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400128 'sources':
129 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400130 '<@(util_win32_sources)',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400131 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400132 }],
Austin Kinross9f2fd2b2015-09-02 12:29:07 -0700133 ['OS=="win" and angle_build_winrt==1',
134 {
135 'sources':
136 [
137 '<@(util_winrt_sources)',
138 ],
139 }],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400140 ['OS=="linux"',
141 {
142 'sources':
143 [
144 '<@(util_linux_sources)',
145 ],
Corentin Wallez51e2ad12015-05-26 11:32:58 -0400146 }],
147 ['use_x11==1',
148 {
149 'sources':
150 [
151 '<@(util_x11_sources)',
152 ],
Geoff Lang4031b992015-05-29 10:57:55 -0400153 'link_settings':
154 {
155 'ldflags':
156 [
Sam Clegg31aabdf2015-12-16 10:53:46 -0800157 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400158 ],
Geoff Lang4031b992015-05-29 10:57:55 -0400159 'libraries':
160 [
Frank Henigman7d52be02016-03-24 14:40:58 -0400161 '<!@(<(pkg-config) --libs-only-l x11 xi)',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400162 ],
163 },
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400164 }],
Corentin Wallez87bef772015-06-19 15:42:09 -0700165 ['OS=="mac"',
166 {
167 'sources':
168 [
169 '<@(util_osx_sources)',
170 ],
Corentin Wallez31658f92015-07-15 12:57:34 -0700171 'link_settings':
172 {
173 'libraries':
174 [
Corentin Wallez2f29d782015-09-14 12:15:53 -0700175 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
176 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
Corentin Wallez31658f92015-07-15 12:57:34 -0700177 ],
178 },
Corentin Wallez87bef772015-06-19 15:42:09 -0700179 }],
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400180 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400181 },
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400182 ],
183}