blob: 7b8b1d1e9d8f566ea094d58e1a1a129b4b827166 [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 [
Corentin Wallezdb39e7f2015-05-25 09:51:24 -040030 'win32/Win32_system_utils.cpp',
Corentin Wallez52445282015-06-09 09:15:54 +020031 'win32/Win32Pixmap.cpp',
32 'win32/Win32Pixmap.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040033 'win32/Win32Timer.cpp',
34 'win32/Win32Timer.h',
35 'win32/Win32Window.cpp',
36 'win32/Win32Window.h',
37 ],
38 'util_linux_sources':
39 [
Corentin Wallezdb39e7f2015-05-25 09:51:24 -040040 'linux/Linux_system_utils.cpp',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040041 'linux/LinuxTimer.cpp',
42 'linux/LinuxTimer.h',
Corentin Wallez5c798fe2015-05-25 10:03:35 -040043 'posix/Posix_system_utils.cpp',
Corentin Wallez51e2ad12015-05-26 11:32:58 -040044 ],
45 'util_x11_sources':
46 [
Corentin Wallez52445282015-06-09 09:15:54 +020047 'x11/X11Pixmap.cpp',
48 'x11/X11Pixmap.h',
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040049 'x11/X11Window.cpp',
50 'x11/X11Window.h',
Corentin Wallez51e2ad12015-05-26 11:32:58 -040051 ],
Corentin Wallez87bef772015-06-19 15:42:09 -070052 'util_osx_sources':
53 [
54 'osx/OSX_system_utils.cpp',
55 'osx/OSXTimer.cpp',
56 'osx/OSXTimer.h',
Corentin Wallez27593e02015-09-15 08:19:09 -070057 'osx/OSXPixmap.mm',
58 'osx/OSXPixmap.h',
Corentin Wallez31658f92015-07-15 12:57:34 -070059 'osx/OSXWindow.mm',
Corentin Wallez87bef772015-06-19 15:42:09 -070060 'osx/OSXWindow.h',
61 'posix/Posix_system_utils.cpp',
62 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040063 },
64 'targets':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040065 [
Jamie Madill1cfaaf82014-08-21 10:04:04 -040066 {
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040067 'target_name': 'angle_util',
68 'type': 'static_library',
69 'includes': [ '../build/common_defines.gypi', ],
70 'dependencies':
Jamie Madill1cfaaf82014-08-21 10:04:04 -040071 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040072 '<(angle_path)/src/angle.gyp:angle_common',
73 '<(angle_path)/src/angle.gyp:libEGL',
74 '<(angle_path)/src/angle.gyp:libGLESv2',
75 ],
76 'export_dependent_settings':
77 [
78 '<(angle_path)/src/angle.gyp:angle_common',
79 ],
80 'include_dirs':
81 [
82 '<(angle_path)/include',
83 '<(angle_path)/util',
84 ],
85 'sources':
86 [
87 '<@(util_sources)',
88 ],
Geoff Langee483762015-09-15 13:12:07 -040089 'defines':
90 [
91 'GL_GLEXT_PROTOTYPES',
92 'EGL_EGLEXT_PROTOTYPES',
93 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -040094 'direct_dependent_settings':
95 {
96 'include_dirs':
97 [
98 '<(angle_path)/include',
99 '<(angle_path)/util',
100 ],
Geoff Langee483762015-09-15 13:12:07 -0400101 'defines':
102 [
103 'GL_GLEXT_PROTOTYPES',
104 'EGL_EGLEXT_PROTOTYPES',
105 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400106 },
107 'conditions':
108 [
109 ['OS=="win"',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400110 {
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400111 'msvs_disabled_warnings': [ 4201 ],
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400112 'sources':
113 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400114 '<@(util_win32_sources)',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400115 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400116 }],
117 ['OS=="linux"',
118 {
119 'sources':
120 [
121 '<@(util_linux_sources)',
122 ],
Corentin Wallez51e2ad12015-05-26 11:32:58 -0400123 }],
124 ['use_x11==1',
125 {
126 'sources':
127 [
128 '<@(util_x11_sources)',
129 ],
Geoff Lang4031b992015-05-29 10:57:55 -0400130 'link_settings':
131 {
132 'ldflags':
133 [
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400134 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
135 ],
Geoff Lang4031b992015-05-29 10:57:55 -0400136 'libraries':
137 [
Corentin Wallez4b6945a2015-05-14 15:30:36 -0400138 '<!@(pkg-config --libs-only-l x11 xi) -lrt',
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400139 ],
140 },
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400141 }],
Corentin Wallez87bef772015-06-19 15:42:09 -0700142 ['OS=="mac"',
143 {
144 'sources':
145 [
146 '<@(util_osx_sources)',
147 ],
Corentin Wallez31658f92015-07-15 12:57:34 -0700148 'link_settings':
149 {
150 'libraries':
151 [
Corentin Wallez2f29d782015-09-14 12:15:53 -0700152 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
153 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
Corentin Wallez31658f92015-07-15 12:57:34 -0700154 ],
155 },
Corentin Wallez87bef772015-06-19 15:42:09 -0700156 }],
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400157 ],
Corentin Wallezfe2f3d62015-05-05 17:37:39 -0400158 },
Jamie Madill1cfaaf82014-08-21 10:04:04 -0400159 ],
160}