blob: 213ea56dc4d971f36d9c3e3ac069df0b8babb314 [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',
13 'path_utils.h',
14 'random_utils.cpp',
15 'random_utils.h',
16 'shader_utils.cpp',
17 'shader_utils.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040018 'EGLWindow.cpp',
19 'EGLWindow.h',
20 'Event.h',
21 'OSWindow.cpp',
22 'OSWindow.h',
23 'Timer.h',
24 ],
25 'util_win32_sources':
26 [
27 'win32/Win32_path_utils.cpp',
28 'win32/Win32Timer.cpp',
29 'win32/Win32Timer.h',
30 'win32/Win32Window.cpp',
31 'win32/Win32Window.h',
32 ],
33 'util_linux_sources':
34 [
35 'linux/Linux_path_utils.cpp',
36 'linux/LinuxTimer.cpp',
37 'linux/LinuxTimer.h',
38 'x11/X11Window.cpp',
39 'x11/X11Window.h',
40 ]
41 },
42 'targets':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040043 [
Jamie Madill1cfaaf82014-08-21 10:04:04 -040044 {
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040045 'target_name': 'angle_util',
46 'type': 'static_library',
47 'includes': [ '../build/common_defines.gypi', ],
48 'dependencies':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040049 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040050 '<(angle_path)/src/angle.gyp:angle_common',
51 '<(angle_path)/src/angle.gyp:libEGL',
52 '<(angle_path)/src/angle.gyp:libGLESv2',
53 ],
54 'export_dependent_settings':
55 [
56 '<(angle_path)/src/angle.gyp:angle_common',
57 ],
58 'include_dirs':
59 [
60 '<(angle_path)/include',
61 '<(angle_path)/util',
62 ],
63 'sources':
64 [
65 '<@(util_sources)',
66 ],
67 'direct_dependent_settings':
68 {
69 'include_dirs':
70 [
71 '<(angle_path)/include',
72 '<(angle_path)/util',
73 ],
74 },
75 'conditions':
76 [
77 ['OS=="win"',
Jamie Madill1cfaaf82014-08-21 10:04:04 -040078 {
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040079 'msvs_disabled_warnings': [ 4201 ],
Jamie Madill1cfaaf82014-08-21 10:04:04 -040080 'sources':
81 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040082 '<@(util_win32_sources)',
Jamie Madill1cfaaf82014-08-21 10:04:04 -040083 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040084 }],
85 ['OS=="linux"',
86 {
87 'sources':
88 [
89 '<@(util_linux_sources)',
90 ],
91 'link_settings': {
92 'ldflags': [
93 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
94 ],
95 'libraries': [
Corentin Wallez4b6945a2015-05-14 15:30:36 -040096 '<!@(pkg-config --libs-only-l x11 xi) -lrt',
Jamie Madill1cfaaf82014-08-21 10:04:04 -040097 ],
98 },
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040099 }],
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400100 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400101 },
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400102 ],
103}