blob: 7df13e76a0dda72fcb163f005472cb0e0f5a37d9 [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 [
Austin Kinross9f2fd2b2015-09-02 12:29:07 -070030 'windows/win32/Win32_system_utils.cpp',
31 'windows/win32/Win32Pixmap.cpp',
32 'windows/win32/Win32Pixmap.h',
33 'windows/win32/Win32Window.cpp',
34 'windows/win32/Win32Window.h',
35 'windows/Windows_system_utils.cpp',
36 'windows/WindowsTimer.cpp',
37 'windows/WindowsTimer.h',
38 ],
39 'util_winrt_sources':
40 [
41 'windows/winrt/WinRT_system_utils.cpp',
42 'windows/winrt/WinRTPixmap.cpp',
43 'windows/winrt/WinRTWindow.cpp',
44 'windows/winrt/WinRTWindow.h',
45 'windows/Windows_system_utils.cpp',
46 'windows/WindowsTimer.cpp',
47 'windows/WindowsTimer.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040048 ],
49 'util_linux_sources':
50 [
Corentin Wallezdb39e7f2015-05-25 09:51:24 -040051 'linux/Linux_system_utils.cpp',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040052 'linux/LinuxTimer.cpp',
53 'linux/LinuxTimer.h',
Corentin Wallez5c798fe2015-05-25 10:03:35 -040054 'posix/Posix_system_utils.cpp',
Corentin Wallez51e2ad12015-05-26 11:32:58 -040055 ],
56 'util_x11_sources':
57 [
Corentin Wallez52445282015-06-09 09:15:54 +020058 'x11/X11Pixmap.cpp',
59 'x11/X11Pixmap.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040060 'x11/X11Window.cpp',
61 'x11/X11Window.h',
Corentin Wallez51e2ad12015-05-26 11:32:58 -040062 ],
Corentin Wallez87bef772015-06-19 15:42:09 -070063 'util_osx_sources':
64 [
65 'osx/OSX_system_utils.cpp',
66 'osx/OSXTimer.cpp',
67 'osx/OSXTimer.h',
Corentin Wallez27593e02015-09-15 08:19:09 -070068 'osx/OSXPixmap.mm',
69 'osx/OSXPixmap.h',
Corentin Wallez31658f92015-07-15 12:57:34 -070070 'osx/OSXWindow.mm',
Corentin Wallez87bef772015-06-19 15:42:09 -070071 'osx/OSXWindow.h',
72 'posix/Posix_system_utils.cpp',
73 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040074 },
75 'targets':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040076 [
Jamie Madill1cfaaf82014-08-21 10:04:04 -040077 {
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040078 'target_name': 'angle_util',
79 'type': 'static_library',
80 'includes': [ '../build/common_defines.gypi', ],
81 'dependencies':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040082 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040083 '<(angle_path)/src/angle.gyp:angle_common',
84 '<(angle_path)/src/angle.gyp:libEGL',
85 '<(angle_path)/src/angle.gyp:libGLESv2',
86 ],
87 'export_dependent_settings':
88 [
89 '<(angle_path)/src/angle.gyp:angle_common',
90 ],
91 'include_dirs':
92 [
93 '<(angle_path)/include',
94 '<(angle_path)/util',
95 ],
96 'sources':
97 [
98 '<@(util_sources)',
99 ],
Geoff Langee483762015-09-15 13:12:07 -0400100 'defines':
101 [
102 'GL_GLEXT_PROTOTYPES',
103 'EGL_EGLEXT_PROTOTYPES',
104 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400105 'direct_dependent_settings':
106 {
107 'include_dirs':
108 [
109 '<(angle_path)/include',
110 '<(angle_path)/util',
111 ],
Geoff Langee483762015-09-15 13:12:07 -0400112 'defines':
113 [
114 'GL_GLEXT_PROTOTYPES',
115 'EGL_EGLEXT_PROTOTYPES',
116 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400117 },
118 'conditions':
119 [
Austin Kinross9f2fd2b2015-09-02 12:29:07 -0700120 ['OS=="win" and angle_build_winrt==0',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400121 {
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400122 'sources':
123 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400124 '<@(util_win32_sources)',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400125 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400126 }],
Austin Kinross9f2fd2b2015-09-02 12:29:07 -0700127 ['OS=="win" and angle_build_winrt==1',
128 {
129 'sources':
130 [
131 '<@(util_winrt_sources)',
132 ],
133 }],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400134 ['OS=="linux"',
135 {
136 'sources':
137 [
138 '<@(util_linux_sources)',
139 ],
Corentin Wallez51e2ad12015-05-26 11:32:58 -0400140 }],
141 ['use_x11==1',
142 {
143 'sources':
144 [
145 '<@(util_x11_sources)',
146 ],
Geoff Lang4031b992015-05-29 10:57:55 -0400147 'link_settings':
148 {
149 'ldflags':
150 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400151 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
152 ],
Geoff Lang4031b992015-05-29 10:57:55 -0400153 'libraries':
154 [
Corentin Wallez4b6945a2015-05-14 15:30:36 -0400155 '<!@(pkg-config --libs-only-l x11 xi) -lrt',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400156 ],
157 },
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400158 }],
Corentin Wallez87bef772015-06-19 15:42:09 -0700159 ['OS=="mac"',
160 {
161 'sources':
162 [
163 '<@(util_osx_sources)',
164 ],
Corentin Wallez31658f92015-07-15 12:57:34 -0700165 'link_settings':
166 {
167 'libraries':
168 [
Corentin Wallez2f29d782015-09-14 12:15:53 -0700169 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
170 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
Corentin Wallez31658f92015-07-15 12:57:34 -0700171 ],
172 },
Corentin Wallez87bef772015-06-19 15:42:09 -0700173 }],
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400174 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400175 },
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400176 ],
177}