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', |
| 31 | ], |
| 32 | 'util_win32_sources': |
| 33 | [ |
Austin Kinross | 9f2fd2b | 2015-09-02 12:29:07 -0700 | [diff] [blame] | 34 | 'windows/win32/Win32_system_utils.cpp', |
| 35 | 'windows/win32/Win32Pixmap.cpp', |
| 36 | 'windows/win32/Win32Pixmap.h', |
| 37 | 'windows/win32/Win32Window.cpp', |
| 38 | 'windows/win32/Win32Window.h', |
| 39 | 'windows/Windows_system_utils.cpp', |
| 40 | 'windows/WindowsTimer.cpp', |
| 41 | 'windows/WindowsTimer.h', |
| 42 | ], |
| 43 | 'util_winrt_sources': |
| 44 | [ |
| 45 | 'windows/winrt/WinRT_system_utils.cpp', |
| 46 | 'windows/winrt/WinRTPixmap.cpp', |
| 47 | 'windows/winrt/WinRTWindow.cpp', |
| 48 | 'windows/winrt/WinRTWindow.h', |
| 49 | 'windows/Windows_system_utils.cpp', |
| 50 | 'windows/WindowsTimer.cpp', |
| 51 | 'windows/WindowsTimer.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 52 | ], |
| 53 | 'util_linux_sources': |
| 54 | [ |
Corentin Wallez | db39e7f | 2015-05-25 09:51:24 -0400 | [diff] [blame] | 55 | 'linux/Linux_system_utils.cpp', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 56 | 'linux/LinuxTimer.cpp', |
| 57 | 'linux/LinuxTimer.h', |
Corentin Wallez | 5c798fe | 2015-05-25 10:03:35 -0400 | [diff] [blame] | 58 | 'posix/Posix_system_utils.cpp', |
Corentin Wallez | 51e2ad1 | 2015-05-26 11:32:58 -0400 | [diff] [blame] | 59 | ], |
| 60 | 'util_x11_sources': |
| 61 | [ |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 62 | 'x11/X11Pixmap.cpp', |
| 63 | 'x11/X11Pixmap.h', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 64 | 'x11/X11Window.cpp', |
| 65 | 'x11/X11Window.h', |
Corentin Wallez | 51e2ad1 | 2015-05-26 11:32:58 -0400 | [diff] [blame] | 66 | ], |
Frank Henigman | 538281f | 2016-04-13 23:36:55 -0400 | [diff] [blame] | 67 | 'util_ozone_sources': |
| 68 | [ |
| 69 | 'ozone/OzonePixmap.cpp', |
| 70 | 'ozone/OzoneWindow.cpp', |
| 71 | 'ozone/OzoneWindow.h', |
| 72 | ], |
Corentin Wallez | 87bef77 | 2015-06-19 15:42:09 -0700 | [diff] [blame] | 73 | 'util_osx_sources': |
| 74 | [ |
| 75 | 'osx/OSX_system_utils.cpp', |
| 76 | 'osx/OSXTimer.cpp', |
| 77 | 'osx/OSXTimer.h', |
Corentin Wallez | 27593e0 | 2015-09-15 08:19:09 -0700 | [diff] [blame] | 78 | 'osx/OSXPixmap.mm', |
| 79 | 'osx/OSXPixmap.h', |
Corentin Wallez | 31658f9 | 2015-07-15 12:57:34 -0700 | [diff] [blame] | 80 | 'osx/OSXWindow.mm', |
Corentin Wallez | 87bef77 | 2015-06-19 15:42:09 -0700 | [diff] [blame] | 81 | 'osx/OSXWindow.h', |
| 82 | 'posix/Posix_system_utils.cpp', |
| 83 | ], |
Yuly Novikov | a6426d6 | 2016-06-03 00:18:38 -0400 | [diff] [blame] | 84 | 'util_android_sources': |
| 85 | [ |
Yuly Novikov | ca05a08 | 2016-08-12 14:46:30 -0400 | [diff] [blame] | 86 | 'android/AndroidPixmap.cpp', |
Yuly Novikov | a6426d6 | 2016-06-03 00:18:38 -0400 | [diff] [blame] | 87 | 'android/AndroidWindow.cpp', |
| 88 | 'android/AndroidWindow.h', |
| 89 | 'android/third_party/android_native_app_glue.c', |
| 90 | 'android/third_party/android_native_app_glue.h', |
| 91 | ], |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 92 | }, |
| 93 | 'targets': |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 94 | [ |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 95 | { |
Jamie Madill | 80ab03c | 2017-01-03 11:03:23 -0500 | [diff] [blame^] | 96 | 'target_name': 'angle_util_config', |
| 97 | 'type': 'none', |
| 98 | 'direct_dependent_settings': |
| 99 | { |
| 100 | 'include_dirs': |
| 101 | [ |
| 102 | '<(angle_path)/include', |
| 103 | '<(angle_path)/util', |
| 104 | ], |
| 105 | 'sources': |
| 106 | [ |
| 107 | '<@(util_sources)', |
| 108 | ], |
| 109 | 'defines': |
| 110 | [ |
| 111 | 'GL_GLEXT_PROTOTYPES', |
| 112 | 'EGL_EGLEXT_PROTOTYPES', |
| 113 | 'LIBANGLE_UTIL_IMPLEMENTATION', |
| 114 | ], |
| 115 | 'conditions': |
| 116 | [ |
| 117 | ['OS=="win" and angle_build_winrt==0', |
| 118 | { |
| 119 | 'sources': |
| 120 | [ |
| 121 | '<@(util_win32_sources)', |
| 122 | ], |
| 123 | }], |
| 124 | ['OS=="win" and angle_build_winrt==1', |
| 125 | { |
| 126 | 'sources': |
| 127 | [ |
| 128 | '<@(util_winrt_sources)', |
| 129 | ], |
| 130 | }], |
| 131 | ['OS=="linux"', |
| 132 | { |
| 133 | 'sources': |
| 134 | [ |
| 135 | '<@(util_linux_sources)', |
| 136 | ], |
| 137 | 'link_settings': |
| 138 | { |
| 139 | 'libraries': |
| 140 | [ |
| 141 | '-ldl', |
| 142 | ], |
| 143 | }, |
| 144 | }], |
| 145 | ['use_x11==1', |
| 146 | { |
| 147 | 'sources': |
| 148 | [ |
| 149 | '<@(util_x11_sources)', |
| 150 | ], |
| 151 | 'link_settings': |
| 152 | { |
| 153 | 'ldflags': |
| 154 | [ |
| 155 | '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)', |
| 156 | ], |
| 157 | 'libraries': |
| 158 | [ |
| 159 | '<!@(<(pkg-config) --libs-only-l x11 xi)', |
| 160 | ], |
| 161 | }, |
| 162 | }], |
| 163 | ['use_ozone==1', |
| 164 | { |
| 165 | 'sources': |
| 166 | [ |
| 167 | '<@(util_ozone_sources)', |
| 168 | ], |
| 169 | }], |
| 170 | ['OS=="mac"', |
| 171 | { |
| 172 | 'sources': |
| 173 | [ |
| 174 | '<@(util_osx_sources)', |
| 175 | ], |
| 176 | 'xcode_settings': |
| 177 | { |
| 178 | 'DYLIB_INSTALL_NAME_BASE': '@rpath', |
| 179 | }, |
| 180 | 'link_settings': |
| 181 | { |
| 182 | 'libraries': |
| 183 | [ |
| 184 | '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
| 185 | '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', |
| 186 | ], |
| 187 | }, |
| 188 | }], |
| 189 | ], |
| 190 | }, |
| 191 | }, |
| 192 | |
| 193 | { |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 194 | 'target_name': 'angle_util', |
Yuly Novikov | e3352f9 | 2016-08-12 20:40:14 -0400 | [diff] [blame] | 195 | 'type': 'shared_library', |
Corentin Wallez | 7f07caa | 2016-10-25 07:43:33 -0400 | [diff] [blame] | 196 | 'includes': [ '../gyp/common_defines.gypi', ], |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 197 | 'dependencies': |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 198 | [ |
Jamie Madill | 80ab03c | 2017-01-03 11:03:23 -0500 | [diff] [blame^] | 199 | 'angle_util_config', |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 200 | '<(angle_path)/src/angle.gyp:angle_common', |
| 201 | '<(angle_path)/src/angle.gyp:libEGL', |
| 202 | '<(angle_path)/src/angle.gyp:libGLESv2', |
| 203 | ], |
| 204 | 'export_dependent_settings': |
| 205 | [ |
| 206 | '<(angle_path)/src/angle.gyp:angle_common', |
| 207 | ], |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 208 | 'direct_dependent_settings': |
| 209 | { |
| 210 | 'include_dirs': |
| 211 | [ |
| 212 | '<(angle_path)/include', |
| 213 | '<(angle_path)/util', |
| 214 | ], |
Geoff Lang | ee48376 | 2015-09-15 13:12:07 -0400 | [diff] [blame] | 215 | 'defines': |
| 216 | [ |
| 217 | 'GL_GLEXT_PROTOTYPES', |
| 218 | 'EGL_EGLEXT_PROTOTYPES', |
| 219 | ], |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 220 | }, |
Jamie Madill | 80ab03c | 2017-01-03 11:03:23 -0500 | [diff] [blame^] | 221 | }, |
| 222 | |
| 223 | { |
| 224 | 'target_name': 'angle_util_static', |
| 225 | 'type': 'static_library', |
| 226 | 'includes': [ '../gyp/common_defines.gypi', ], |
| 227 | 'dependencies': |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 228 | [ |
Jamie Madill | 80ab03c | 2017-01-03 11:03:23 -0500 | [diff] [blame^] | 229 | 'angle_util_config', |
| 230 | '<(angle_path)/src/angle.gyp:angle_common', |
| 231 | '<(angle_path)/src/angle.gyp:libEGL_static', |
| 232 | '<(angle_path)/src/angle.gyp:libGLESv2_static', |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 233 | ], |
Jamie Madill | 80ab03c | 2017-01-03 11:03:23 -0500 | [diff] [blame^] | 234 | 'export_dependent_settings': |
| 235 | [ |
| 236 | '<(angle_path)/src/angle.gyp:angle_common', |
| 237 | ], |
| 238 | 'direct_dependent_settings': |
| 239 | { |
| 240 | 'include_dirs': |
| 241 | [ |
| 242 | '<(angle_path)/include', |
| 243 | '<(angle_path)/util', |
| 244 | ], |
| 245 | 'defines': |
| 246 | [ |
| 247 | 'GL_GLEXT_PROTOTYPES', |
| 248 | 'EGL_EGLEXT_PROTOTYPES', |
| 249 | ], |
| 250 | }, |
Corentin Wallez | fe2f3d6 | 2015-05-05 17:37:39 -0400 | [diff] [blame] | 251 | }, |
Jamie Madill | 1cfaaf8 | 2014-08-21 10:04:04 -0400 | [diff] [blame] | 252 | ], |
| 253 | } |