blob: fb16c9219132875b33850c1d90dff7bc43928ca4 [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 Wallezfe2f3d62015-05-05 17:37:39 -04006 'variables':
7 {
8 'util_sources':
9 [
10 'com_utils.h',
11 'keyboard.h',
12 'mouse.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040013 'random_utils.cpp',
14 'random_utils.h',
15 'shader_utils.cpp',
16 'shader_utils.h',
Corentin Wallezdb39e7f2015-05-25 09:51:24 -040017 'system_utils.h',
18 'Event.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040019 'EGLWindow.cpp',
20 'EGLWindow.h',
Corentin Wallez52445282015-06-09 09:15:54 +020021 'OSPixmap.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040022 'OSWindow.cpp',
23 'OSWindow.h',
24 'Timer.h',
25 ],
26 'util_win32_sources':
27 [
Corentin Wallezdb39e7f2015-05-25 09:51:24 -040028 'win32/Win32_system_utils.cpp',
Corentin Wallez52445282015-06-09 09:15:54 +020029 'win32/Win32Pixmap.cpp',
30 'win32/Win32Pixmap.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040031 'win32/Win32Timer.cpp',
32 'win32/Win32Timer.h',
33 'win32/Win32Window.cpp',
34 'win32/Win32Window.h',
35 ],
36 'util_linux_sources':
37 [
Corentin Wallezdb39e7f2015-05-25 09:51:24 -040038 'linux/Linux_system_utils.cpp',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040039 'linux/LinuxTimer.cpp',
40 'linux/LinuxTimer.h',
Corentin Wallez5c798fe2015-05-25 10:03:35 -040041 'posix/Posix_system_utils.cpp',
Corentin Wallez51e2ad12015-05-26 11:32:58 -040042 ],
43 'util_x11_sources':
44 [
Corentin Wallez52445282015-06-09 09:15:54 +020045 'x11/X11Pixmap.cpp',
46 'x11/X11Pixmap.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040047 'x11/X11Window.cpp',
48 'x11/X11Window.h',
Corentin Wallez51e2ad12015-05-26 11:32:58 -040049 ],
Corentin Wallez87bef772015-06-19 15:42:09 -070050 'util_osx_sources':
51 [
52 'osx/OSX_system_utils.cpp',
53 'osx/OSXTimer.cpp',
54 'osx/OSXTimer.h',
55 'osx/OSXWindow.cpp',
56 'osx/OSXWindow.h',
57 'posix/Posix_system_utils.cpp',
58 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040059 },
60 'targets':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040061 [
Jamie Madill1cfaaf82014-08-21 10:04:04 -040062 {
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040063 'target_name': 'angle_util',
64 'type': 'static_library',
65 'includes': [ '../build/common_defines.gypi', ],
66 'dependencies':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040067 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040068 '<(angle_path)/src/angle.gyp:angle_common',
69 '<(angle_path)/src/angle.gyp:libEGL',
70 '<(angle_path)/src/angle.gyp:libGLESv2',
71 ],
72 'export_dependent_settings':
73 [
74 '<(angle_path)/src/angle.gyp:angle_common',
75 ],
76 'include_dirs':
77 [
78 '<(angle_path)/include',
79 '<(angle_path)/util',
80 ],
81 'sources':
82 [
83 '<@(util_sources)',
84 ],
85 'direct_dependent_settings':
86 {
87 'include_dirs':
88 [
89 '<(angle_path)/include',
90 '<(angle_path)/util',
91 ],
92 },
93 'conditions':
94 [
95 ['OS=="win"',
Jamie Madill1cfaaf82014-08-21 10:04:04 -040096 {
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040097 'msvs_disabled_warnings': [ 4201 ],
Jamie Madill1cfaaf82014-08-21 10:04:04 -040098 'sources':
99 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400100 '<@(util_win32_sources)',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400101 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400102 }],
103 ['OS=="linux"',
104 {
105 'sources':
106 [
107 '<@(util_linux_sources)',
108 ],
Corentin Wallez51e2ad12015-05-26 11:32:58 -0400109 }],
110 ['use_x11==1',
111 {
112 'sources':
113 [
114 '<@(util_x11_sources)',
115 ],
Geoff Lang4031b992015-05-29 10:57:55 -0400116 'link_settings':
117 {
118 'ldflags':
119 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400120 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
121 ],
Geoff Lang4031b992015-05-29 10:57:55 -0400122 'libraries':
123 [
Corentin Wallez4b6945a2015-05-14 15:30:36 -0400124 '<!@(pkg-config --libs-only-l x11 xi) -lrt',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400125 ],
126 },
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400127 }],
Corentin Wallez87bef772015-06-19 15:42:09 -0700128 ['OS=="mac"',
129 {
130 'sources':
131 [
132 '<@(util_osx_sources)',
133 ],
134 }],
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400135 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400136 },
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400137 ],
138}