Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 1 | # 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 Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 6 | 'variables': |
| 7 | { |
| 8 | 'util_sources': |
| 9 | [ |
| 10 | 'com_utils.h', |
| 11 | 'keyboard.h', |
| 12 | 'mouse.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 13 | 'random_utils.cpp', |
| 14 | 'random_utils.h', |
| 15 | 'shader_utils.cpp', |
| 16 | 'shader_utils.h', |
Corentin Wallez | db39e7f | 2015-05-25 09:51:24 -0400 | [diff] [blame] | 17 | 'system_utils.h', |
| 18 | 'Event.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 19 | 'EGLWindow.cpp', |
| 20 | 'EGLWindow.h', |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 21 | 'OSPixmap.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 22 | 'OSWindow.cpp', |
| 23 | 'OSWindow.h', |
| 24 | 'Timer.h', |
| 25 | ], |
| 26 | 'util_win32_sources': |
| 27 | [ |
Corentin Wallez | db39e7f | 2015-05-25 09:51:24 -0400 | [diff] [blame] | 28 | 'win32/Win32_system_utils.cpp', |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 29 | 'win32/Win32Pixmap.cpp', |
| 30 | 'win32/Win32Pixmap.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 31 | 'win32/Win32Timer.cpp', |
| 32 | 'win32/Win32Timer.h', |
| 33 | 'win32/Win32Window.cpp', |
| 34 | 'win32/Win32Window.h', |
| 35 | ], |
| 36 | 'util_linux_sources': |
| 37 | [ |
Corentin Wallez | db39e7f | 2015-05-25 09:51:24 -0400 | [diff] [blame] | 38 | 'linux/Linux_system_utils.cpp', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 39 | 'linux/LinuxTimer.cpp', |
| 40 | 'linux/LinuxTimer.h', |
Corentin Wallez | 5c798fe | 2015-05-25 10:03:35 -0400 | [diff] [blame] | 41 | 'posix/Posix_system_utils.cpp', |
Corentin Wallez | 51e2ad1 | 2015-05-26 11:32:58 -0400 | [diff] [blame] | 42 | ], |
| 43 | 'util_x11_sources': |
| 44 | [ |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 45 | 'x11/X11Pixmap.cpp', |
| 46 | 'x11/X11Pixmap.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 47 | 'x11/X11Window.cpp', |
| 48 | 'x11/X11Window.h', |
Corentin Wallez | 51e2ad1 | 2015-05-26 11:32:58 -0400 | [diff] [blame] | 49 | ], |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 50 | }, |
| 51 | 'targets': |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 52 | [ |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 53 | { |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 54 | 'target_name': 'angle_util', |
| 55 | 'type': 'static_library', |
| 56 | 'includes': [ '../build/common_defines.gypi', ], |
| 57 | 'dependencies': |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 58 | [ |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 59 | '<(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 Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 87 | { |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 88 | 'msvs_disabled_warnings': [ 4201 ], |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 89 | 'sources': |
| 90 | [ |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 91 | '<@(util_win32_sources)', |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 92 | ], |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 93 | }], |
| 94 | ['OS=="linux"', |
| 95 | { |
| 96 | 'sources': |
| 97 | [ |
| 98 | '<@(util_linux_sources)', |
| 99 | ], |
Corentin Wallez | 51e2ad1 | 2015-05-26 11:32:58 -0400 | [diff] [blame] | 100 | }], |
| 101 | ['use_x11==1', |
| 102 | { |
| 103 | 'sources': |
| 104 | [ |
| 105 | '<@(util_x11_sources)', |
| 106 | ], |
Geoff Lang | 4031b99 | 2015-05-29 10:57:55 -0400 | [diff] [blame] | 107 | 'link_settings': |
| 108 | { |
| 109 | 'ldflags': |
| 110 | [ |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 111 | '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)', |
| 112 | ], |
Geoff Lang | 4031b99 | 2015-05-29 10:57:55 -0400 | [diff] [blame] | 113 | 'libraries': |
| 114 | [ |
Corentin Wallez | 4b6945a | 2015-05-14 15:30:36 -0400 | [diff] [blame] | 115 | '<!@(pkg-config --libs-only-l x11 xi) -lrt', |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 116 | ], |
| 117 | }, |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 118 | }], |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 119 | ], |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 120 | }, |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 121 | ], |
| 122 | } |