2014-08-21 18:04:04 +04:00
|
|
|
# Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
{
|
2015-09-02 17:30:55 +03:00
|
|
|
# Everything below this is duplicated in the GN build, except Mac support.
|
|
|
|
# If you change anything also change angle/BUILD.gn
|
2015-05-06 00:37:39 +03:00
|
|
|
'variables':
|
|
|
|
{
|
|
|
|
'util_sources':
|
|
|
|
[
|
|
|
|
'com_utils.h',
|
|
|
|
'keyboard.h',
|
|
|
|
'mouse.h',
|
|
|
|
'random_utils.cpp',
|
|
|
|
'random_utils.h',
|
|
|
|
'shader_utils.cpp',
|
|
|
|
'shader_utils.h',
|
2015-05-25 16:51:24 +03:00
|
|
|
'system_utils.h',
|
|
|
|
'Event.h',
|
2015-05-06 00:37:39 +03:00
|
|
|
'EGLWindow.cpp',
|
|
|
|
'EGLWindow.h',
|
2015-06-09 10:15:54 +03:00
|
|
|
'OSPixmap.h',
|
2015-05-06 00:37:39 +03:00
|
|
|
'OSWindow.cpp',
|
|
|
|
'OSWindow.h',
|
|
|
|
'Timer.h',
|
|
|
|
],
|
|
|
|
'util_win32_sources':
|
|
|
|
[
|
2015-05-25 16:51:24 +03:00
|
|
|
'win32/Win32_system_utils.cpp',
|
2015-06-09 10:15:54 +03:00
|
|
|
'win32/Win32Pixmap.cpp',
|
|
|
|
'win32/Win32Pixmap.h',
|
2015-05-06 00:37:39 +03:00
|
|
|
'win32/Win32Timer.cpp',
|
|
|
|
'win32/Win32Timer.h',
|
|
|
|
'win32/Win32Window.cpp',
|
|
|
|
'win32/Win32Window.h',
|
|
|
|
],
|
|
|
|
'util_linux_sources':
|
|
|
|
[
|
2015-05-25 16:51:24 +03:00
|
|
|
'linux/Linux_system_utils.cpp',
|
2015-05-06 00:37:39 +03:00
|
|
|
'linux/LinuxTimer.cpp',
|
|
|
|
'linux/LinuxTimer.h',
|
2015-05-25 17:03:35 +03:00
|
|
|
'posix/Posix_system_utils.cpp',
|
2015-05-26 18:32:58 +03:00
|
|
|
],
|
|
|
|
'util_x11_sources':
|
|
|
|
[
|
2015-06-09 10:15:54 +03:00
|
|
|
'x11/X11Pixmap.cpp',
|
|
|
|
'x11/X11Pixmap.h',
|
2015-05-06 00:37:39 +03:00
|
|
|
'x11/X11Window.cpp',
|
|
|
|
'x11/X11Window.h',
|
2015-05-26 18:32:58 +03:00
|
|
|
],
|
2015-06-20 01:42:09 +03:00
|
|
|
'util_osx_sources':
|
|
|
|
[
|
|
|
|
'osx/OSX_system_utils.cpp',
|
|
|
|
'osx/OSXTimer.cpp',
|
|
|
|
'osx/OSXTimer.h',
|
2015-07-15 22:57:34 +03:00
|
|
|
'osx/OSXWindow.mm',
|
2015-06-20 01:42:09 +03:00
|
|
|
'osx/OSXWindow.h',
|
|
|
|
'posix/Posix_system_utils.cpp',
|
|
|
|
],
|
2015-05-06 00:37:39 +03:00
|
|
|
},
|
|
|
|
'targets':
|
2014-08-21 18:04:04 +04:00
|
|
|
[
|
|
|
|
{
|
2015-05-06 00:37:39 +03:00
|
|
|
'target_name': 'angle_util',
|
|
|
|
'type': 'static_library',
|
|
|
|
'includes': [ '../build/common_defines.gypi', ],
|
|
|
|
'dependencies':
|
2014-08-21 18:04:04 +04:00
|
|
|
[
|
2015-05-06 00:37:39 +03:00
|
|
|
'<(angle_path)/src/angle.gyp:angle_common',
|
|
|
|
'<(angle_path)/src/angle.gyp:libEGL',
|
|
|
|
'<(angle_path)/src/angle.gyp:libGLESv2',
|
|
|
|
],
|
|
|
|
'export_dependent_settings':
|
|
|
|
[
|
|
|
|
'<(angle_path)/src/angle.gyp:angle_common',
|
|
|
|
],
|
|
|
|
'include_dirs':
|
|
|
|
[
|
|
|
|
'<(angle_path)/include',
|
|
|
|
'<(angle_path)/util',
|
|
|
|
],
|
|
|
|
'sources':
|
|
|
|
[
|
|
|
|
'<@(util_sources)',
|
|
|
|
],
|
2015-09-11 20:52:12 +03:00
|
|
|
'defines':
|
|
|
|
[
|
|
|
|
'GL_GLEXT_PROTOTYPES',
|
|
|
|
'EGL_EGLEXT_PROTOTYPES',
|
|
|
|
],
|
2015-05-06 00:37:39 +03:00
|
|
|
'direct_dependent_settings':
|
|
|
|
{
|
|
|
|
'include_dirs':
|
|
|
|
[
|
|
|
|
'<(angle_path)/include',
|
|
|
|
'<(angle_path)/util',
|
|
|
|
],
|
2015-09-11 20:52:12 +03:00
|
|
|
'defines':
|
|
|
|
[
|
|
|
|
'GL_GLEXT_PROTOTYPES',
|
|
|
|
'EGL_EGLEXT_PROTOTYPES',
|
|
|
|
],
|
2015-05-06 00:37:39 +03:00
|
|
|
},
|
|
|
|
'conditions':
|
|
|
|
[
|
|
|
|
['OS=="win"',
|
2014-08-21 18:04:04 +04:00
|
|
|
{
|
2015-05-06 00:37:39 +03:00
|
|
|
'msvs_disabled_warnings': [ 4201 ],
|
|
|
|
'sources':
|
2014-08-21 18:04:04 +04:00
|
|
|
[
|
2015-05-06 00:37:39 +03:00
|
|
|
'<@(util_win32_sources)',
|
2014-08-21 18:04:04 +04:00
|
|
|
],
|
2015-05-06 00:37:39 +03:00
|
|
|
}],
|
|
|
|
['OS=="linux"',
|
|
|
|
{
|
2014-08-21 18:04:04 +04:00
|
|
|
'sources':
|
|
|
|
[
|
2015-05-06 00:37:39 +03:00
|
|
|
'<@(util_linux_sources)',
|
2014-08-21 18:04:04 +04:00
|
|
|
],
|
2015-05-26 18:32:58 +03:00
|
|
|
}],
|
|
|
|
['use_x11==1',
|
|
|
|
{
|
|
|
|
'sources':
|
|
|
|
[
|
|
|
|
'<@(util_x11_sources)',
|
|
|
|
],
|
2015-05-29 17:57:55 +03:00
|
|
|
'link_settings':
|
|
|
|
{
|
|
|
|
'ldflags':
|
|
|
|
[
|
2015-05-06 00:37:39 +03:00
|
|
|
'<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
|
|
|
|
],
|
2015-05-29 17:57:55 +03:00
|
|
|
'libraries':
|
|
|
|
[
|
2015-05-14 22:30:36 +03:00
|
|
|
'<!@(pkg-config --libs-only-l x11 xi) -lrt',
|
2014-08-21 18:04:04 +04:00
|
|
|
],
|
|
|
|
},
|
2015-05-06 00:37:39 +03:00
|
|
|
}],
|
2015-06-20 01:42:09 +03:00
|
|
|
['OS=="mac"',
|
|
|
|
{
|
|
|
|
'sources':
|
|
|
|
[
|
|
|
|
'<@(util_osx_sources)',
|
|
|
|
],
|
2015-07-15 22:57:34 +03:00
|
|
|
'link_settings':
|
|
|
|
{
|
2015-08-12 22:37:48 +03:00
|
|
|
# TODO(cwallez) Chromium uses an SDKROOT prefix, use it when we want to
|
|
|
|
# support compiling ANGLE in Chromium on Mac
|
2015-07-15 22:57:34 +03:00
|
|
|
'libraries':
|
|
|
|
[
|
2015-08-12 22:37:48 +03:00
|
|
|
'AppKit.framework',
|
|
|
|
'QuartzCore.framework',
|
2015-07-15 22:57:34 +03:00
|
|
|
],
|
|
|
|
},
|
2015-06-20 01:42:09 +03:00
|
|
|
}],
|
2014-08-21 18:04:04 +04:00
|
|
|
],
|
2015-05-06 00:37:39 +03:00
|
|
|
},
|
2014-08-21 18:04:04 +04:00
|
|
|
],
|
|
|
|
}
|