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 | beb8158 | 2015-09-02 10:30:55 -0400 | [diff] [blame] | 6 | # Everything below this is duplicated in the GN build, except Mac support. |
| 7 | # If you change anything also change angle/BUILD.gn |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 8 | 'variables': |
| 9 | { |
| 10 | 'util_sources': |
| 11 | [ |
| 12 | 'com_utils.h', |
| 13 | 'keyboard.h', |
Jamie Madill | ad60e8e | 2015-09-22 12:40:31 -0400 | [diff] [blame] | 14 | 'geometry_utils.cpp', |
| 15 | 'geometry_utils.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 16 | 'mouse.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 17 | 'random_utils.cpp', |
| 18 | 'random_utils.h', |
| 19 | 'shader_utils.cpp', |
| 20 | 'shader_utils.h', |
Corentin Wallez | db39e7f | 2015-05-25 09:51:24 -0400 | [diff] [blame] | 21 | 'system_utils.h', |
| 22 | 'Event.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 23 | 'EGLWindow.cpp', |
| 24 | 'EGLWindow.h', |
Jamie Madill | ad60e8e | 2015-09-22 12:40:31 -0400 | [diff] [blame] | 25 | 'Matrix.cpp', |
| 26 | 'Matrix.h', |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 27 | 'OSPixmap.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 28 | 'OSWindow.cpp', |
| 29 | 'OSWindow.h', |
| 30 | 'Timer.h', |
Jamie Madill | ad60e8e | 2015-09-22 12:40:31 -0400 | [diff] [blame] | 31 | 'Vector.cpp', |
| 32 | 'Vector.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 33 | ], |
| 34 | 'util_win32_sources': |
| 35 | [ |
Austin Kinross | 9f2fd2b | 2015-09-02 12:29:07 -0700 | [diff] [blame] | 36 | 'windows/win32/Win32_system_utils.cpp', |
| 37 | 'windows/win32/Win32Pixmap.cpp', |
| 38 | 'windows/win32/Win32Pixmap.h', |
| 39 | 'windows/win32/Win32Window.cpp', |
| 40 | 'windows/win32/Win32Window.h', |
| 41 | 'windows/Windows_system_utils.cpp', |
| 42 | 'windows/WindowsTimer.cpp', |
| 43 | 'windows/WindowsTimer.h', |
| 44 | ], |
| 45 | 'util_winrt_sources': |
| 46 | [ |
| 47 | 'windows/winrt/WinRT_system_utils.cpp', |
| 48 | 'windows/winrt/WinRTPixmap.cpp', |
| 49 | 'windows/winrt/WinRTWindow.cpp', |
| 50 | 'windows/winrt/WinRTWindow.h', |
| 51 | 'windows/Windows_system_utils.cpp', |
| 52 | 'windows/WindowsTimer.cpp', |
| 53 | 'windows/WindowsTimer.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 54 | ], |
| 55 | 'util_linux_sources': |
| 56 | [ |
Corentin Wallez | db39e7f | 2015-05-25 09:51:24 -0400 | [diff] [blame] | 57 | 'linux/Linux_system_utils.cpp', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 58 | 'linux/LinuxTimer.cpp', |
| 59 | 'linux/LinuxTimer.h', |
Corentin Wallez | 5c798fe | 2015-05-25 10:03:35 -0400 | [diff] [blame] | 60 | 'posix/Posix_system_utils.cpp', |
Corentin Wallez | 51e2ad1 | 2015-05-26 11:32:58 -0400 | [diff] [blame] | 61 | ], |
| 62 | 'util_x11_sources': |
| 63 | [ |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 64 | 'x11/X11Pixmap.cpp', |
| 65 | 'x11/X11Pixmap.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 66 | 'x11/X11Window.cpp', |
| 67 | 'x11/X11Window.h', |
Corentin Wallez | 51e2ad1 | 2015-05-26 11:32:58 -0400 | [diff] [blame] | 68 | ], |
Corentin Wallez | 87bef77 | 2015-06-19 15:42:09 -0700 | [diff] [blame] | 69 | 'util_osx_sources': |
| 70 | [ |
| 71 | 'osx/OSX_system_utils.cpp', |
| 72 | 'osx/OSXTimer.cpp', |
| 73 | 'osx/OSXTimer.h', |
Corentin Wallez | 27593e0 | 2015-09-15 08:19:09 -0700 | [diff] [blame] | 74 | 'osx/OSXPixmap.mm', |
| 75 | 'osx/OSXPixmap.h', |
Corentin Wallez | 31658f9 | 2015-07-15 12:57:34 -0700 | [diff] [blame] | 76 | 'osx/OSXWindow.mm', |
Corentin Wallez | 87bef77 | 2015-06-19 15:42:09 -0700 | [diff] [blame] | 77 | 'osx/OSXWindow.h', |
| 78 | 'posix/Posix_system_utils.cpp', |
| 79 | ], |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 80 | }, |
| 81 | 'targets': |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 82 | [ |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 83 | { |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 84 | 'target_name': 'angle_util', |
| 85 | 'type': 'static_library', |
| 86 | 'includes': [ '../build/common_defines.gypi', ], |
| 87 | 'dependencies': |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 88 | [ |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 89 | '<(angle_path)/src/angle.gyp:angle_common', |
| 90 | '<(angle_path)/src/angle.gyp:libEGL', |
| 91 | '<(angle_path)/src/angle.gyp:libGLESv2', |
| 92 | ], |
| 93 | 'export_dependent_settings': |
| 94 | [ |
| 95 | '<(angle_path)/src/angle.gyp:angle_common', |
| 96 | ], |
| 97 | 'include_dirs': |
| 98 | [ |
| 99 | '<(angle_path)/include', |
| 100 | '<(angle_path)/util', |
| 101 | ], |
| 102 | 'sources': |
| 103 | [ |
| 104 | '<@(util_sources)', |
| 105 | ], |
Geoff Lang | ee48376 | 2015-09-15 13:12:07 -0400 | [diff] [blame] | 106 | 'defines': |
| 107 | [ |
| 108 | 'GL_GLEXT_PROTOTYPES', |
| 109 | 'EGL_EGLEXT_PROTOTYPES', |
| 110 | ], |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 111 | 'direct_dependent_settings': |
| 112 | { |
| 113 | 'include_dirs': |
| 114 | [ |
| 115 | '<(angle_path)/include', |
| 116 | '<(angle_path)/util', |
| 117 | ], |
Geoff Lang | ee48376 | 2015-09-15 13:12:07 -0400 | [diff] [blame] | 118 | 'defines': |
| 119 | [ |
| 120 | 'GL_GLEXT_PROTOTYPES', |
| 121 | 'EGL_EGLEXT_PROTOTYPES', |
| 122 | ], |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 123 | }, |
| 124 | 'conditions': |
| 125 | [ |
Austin Kinross | 9f2fd2b | 2015-09-02 12:29:07 -0700 | [diff] [blame] | 126 | ['OS=="win" and angle_build_winrt==0', |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 127 | { |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 128 | 'sources': |
| 129 | [ |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 130 | '<@(util_win32_sources)', |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 131 | ], |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 132 | }], |
Austin Kinross | 9f2fd2b | 2015-09-02 12:29:07 -0700 | [diff] [blame] | 133 | ['OS=="win" and angle_build_winrt==1', |
| 134 | { |
| 135 | 'sources': |
| 136 | [ |
| 137 | '<@(util_winrt_sources)', |
| 138 | ], |
| 139 | }], |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 140 | ['OS=="linux"', |
| 141 | { |
| 142 | 'sources': |
| 143 | [ |
| 144 | '<@(util_linux_sources)', |
| 145 | ], |
Corentin Wallez | 51e2ad1 | 2015-05-26 11:32:58 -0400 | [diff] [blame] | 146 | }], |
| 147 | ['use_x11==1', |
| 148 | { |
| 149 | 'sources': |
| 150 | [ |
| 151 | '<@(util_x11_sources)', |
| 152 | ], |
Geoff Lang | 4031b99 | 2015-05-29 10:57:55 -0400 | [diff] [blame] | 153 | 'link_settings': |
| 154 | { |
| 155 | 'ldflags': |
| 156 | [ |
Sam Clegg | 31aabdf | 2015-12-16 10:53:46 -0800 | [diff] [blame] | 157 | '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 158 | ], |
Geoff Lang | 4031b99 | 2015-05-29 10:57:55 -0400 | [diff] [blame] | 159 | 'libraries': |
| 160 | [ |
Frank Henigman | 7d52be0 | 2016-03-24 14:40:58 -0400 | [diff] [blame^] | 161 | '<!@(<(pkg-config) --libs-only-l x11 xi)', |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 162 | ], |
| 163 | }, |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 164 | }], |
Corentin Wallez | 87bef77 | 2015-06-19 15:42:09 -0700 | [diff] [blame] | 165 | ['OS=="mac"', |
| 166 | { |
| 167 | 'sources': |
| 168 | [ |
| 169 | '<@(util_osx_sources)', |
| 170 | ], |
Corentin Wallez | 31658f9 | 2015-07-15 12:57:34 -0700 | [diff] [blame] | 171 | 'link_settings': |
| 172 | { |
| 173 | 'libraries': |
| 174 | [ |
Corentin Wallez | 2f29d78 | 2015-09-14 12:15:53 -0700 | [diff] [blame] | 175 | '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
| 176 | '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', |
Corentin Wallez | 31658f9 | 2015-07-15 12:57:34 -0700 | [diff] [blame] | 177 | ], |
| 178 | }, |
Corentin Wallez | 87bef77 | 2015-06-19 15:42:09 -0700 | [diff] [blame] | 179 | }], |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 180 | ], |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 181 | }, |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 182 | ], |
| 183 | } |