blob: f3f97e373d9f8fe9fcbfb33227711b780cf5fff9 [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 Wallezfe2f3d62015-05-05 17:37:39 -040050 },
51 'targets':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040052 [
Jamie Madill1cfaaf82014-08-21 10:04:04 -040053 {
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040054 'target_name': 'angle_util',
55 'type': 'static_library',
56 'includes': [ '../build/common_defines.gypi', ],
57 'dependencies':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040058 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040059 '<(angle_path)/src/angle.gyp:angle_common',
60 '<(angle_path)/src/angle.gyp:libEGL',
61 '<(angle_path)/src/angle.gyp:libGLESv2',
62 ],
63 'export_dependent_settings':
64 [
65 '<(angle_path)/src/angle.gyp:angle_common',
66 ],
67 'include_dirs':
68 [
69 '<(angle_path)/include',
70 '<(angle_path)/util',
71 ],
72 'sources':
73 [
74 '<@(util_sources)',
75 ],
76 'direct_dependent_settings':
77 {
78 'include_dirs':
79 [
80 '<(angle_path)/include',
81 '<(angle_path)/util',
82 ],
83 },
84 'conditions':
85 [
86 ['OS=="win"',
Jamie Madill1cfaaf82014-08-21 10:04:04 -040087 {
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040088 'msvs_disabled_warnings': [ 4201 ],
Jamie Madill1cfaaf82014-08-21 10:04:04 -040089 'sources':
90 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040091 '<@(util_win32_sources)',
Jamie Madill1cfaaf82014-08-21 10:04:04 -040092 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040093 }],
94 ['OS=="linux"',
95 {
96 'sources':
97 [
98 '<@(util_linux_sources)',
99 ],
Corentin Wallez51e2ad12015-05-26 11:32:58 -0400100 }],
101 ['use_x11==1',
102 {
103 'sources':
104 [
105 '<@(util_x11_sources)',
106 ],
Geoff Lang4031b992015-05-29 10:57:55 -0400107 'link_settings':
108 {
109 'ldflags':
110 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400111 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
112 ],
Geoff Lang4031b992015-05-29 10:57:55 -0400113 'libraries':
114 [
Corentin Wallez4b6945a2015-05-14 15:30:36 -0400115 '<!@(pkg-config --libs-only-l x11 xi) -lrt',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400116 ],
117 },
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400118 }],
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400119 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400120 },
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400121 ],
122}