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