Geoff Lang | 39d5166 | 2013-08-29 16:08:23 -0400 | [diff] [blame] | 1 | # Copyright (c) 2013 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 | { |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 6 | 'variables': |
| 7 | { |
Geoff Lang | 591e6af | 2014-06-18 18:08:57 -0400 | [diff] [blame] | 8 | 'angle_enable_d3d9%': 1, |
| 9 | 'angle_enable_d3d11%': 1, |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 10 | # This file list is shared with the GN build. |
| 11 | 'angle_libegl_sources': |
| 12 | [ |
| 13 | '../include/EGL/egl.h', |
| 14 | '../include/EGL/eglext.h', |
| 15 | '../include/EGL/eglplatform.h', |
| 16 | '../include/GLES2/gl2.h', |
| 17 | '../include/GLES2/gl2ext.h', |
| 18 | '../include/GLES2/gl2platform.h', |
| 19 | '../include/GLES3/gl3.h', |
| 20 | '../include/GLES3/gl3ext.h', |
| 21 | '../include/GLES3/gl3platform.h', |
| 22 | '../include/GLSLANG/ShaderLang.h', |
Jamie Madill | 13cfd27 | 2014-07-17 14:16:28 -0400 | [diff] [blame] | 23 | '../include/GLSLANG/ShaderVars.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 24 | '../include/KHR/khrplatform.h', |
| 25 | '../include/angle_gl.h', |
| 26 | 'common/RefCountObject.cpp', |
| 27 | 'common/RefCountObject.h', |
Geoff Lang | da5777c | 2014-07-11 09:52:58 -0400 | [diff] [blame] | 28 | 'common/angleutils.cpp', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 29 | 'common/angleutils.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 30 | 'common/debug.cpp', |
| 31 | 'common/debug.h', |
| 32 | 'common/event_tracer.cpp', |
| 33 | 'common/event_tracer.h', |
| 34 | 'common/mathutil.cpp', |
| 35 | 'common/mathutil.h', |
| 36 | 'common/platform.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 37 | 'common/tls.cpp', |
| 38 | 'common/tls.h', |
| 39 | 'common/utilities.cpp', |
| 40 | 'common/utilities.h', |
| 41 | 'common/version.h', |
| 42 | 'libEGL/Config.cpp', |
| 43 | 'libEGL/Config.h', |
| 44 | 'libEGL/Display.cpp', |
| 45 | 'libEGL/Display.h', |
| 46 | 'libEGL/Surface.cpp', |
| 47 | 'libEGL/Surface.h', |
| 48 | 'libEGL/libEGL.cpp', |
| 49 | 'libEGL/libEGL.def', |
| 50 | 'libEGL/libEGL.rc', |
| 51 | 'libEGL/main.cpp', |
| 52 | 'libEGL/main.h', |
| 53 | 'libEGL/resource.h', |
| 54 | ], |
| 55 | }, |
| 56 | # Everything below this is duplicated in the GN build. If you change |
| 57 | # anything also change angle/BUILD.gn |
Geoff Lang | 39d5166 | 2013-08-29 16:08:23 -0400 | [diff] [blame] | 58 | 'conditions': |
| 59 | [ |
| 60 | ['OS=="win"', |
| 61 | { |
| 62 | 'targets': |
| 63 | [ |
| 64 | { |
| 65 | 'target_name': 'libEGL', |
| 66 | 'type': 'shared_library', |
Jamie Madill | 049108d | 2013-11-19 10:41:49 -0500 | [diff] [blame] | 67 | 'dependencies': [ 'libGLESv2', 'commit_id' ], |
Geoff Lang | 39d5166 | 2013-08-29 16:08:23 -0400 | [diff] [blame] | 68 | 'include_dirs': |
| 69 | [ |
| 70 | '.', |
| 71 | '../include', |
| 72 | 'libGLESv2', |
| 73 | ], |
Geoff Lang | d5da329 | 2014-02-06 13:24:33 -0500 | [diff] [blame] | 74 | 'sources': |
| 75 | [ |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 76 | '<@(angle_libegl_sources)', |
Geoff Lang | d5da329 | 2014-02-06 13:24:33 -0500 | [diff] [blame] | 77 | ], |
Geoff Lang | d7e7d73 | 2014-05-27 16:10:46 -0400 | [diff] [blame] | 78 | 'defines': |
| 79 | [ |
| 80 | 'GL_APICALL=', |
| 81 | 'GL_GLEXT_PROTOTYPES=', |
| 82 | 'EGLAPI=', |
| 83 | ], |
Geoff Lang | 591e6af | 2014-06-18 18:08:57 -0400 | [diff] [blame] | 84 | 'conditions': |
| 85 | [ |
| 86 | ['angle_enable_d3d9==1', |
| 87 | { |
| 88 | 'defines': |
| 89 | [ |
| 90 | 'ANGLE_ENABLE_D3D9', |
| 91 | ], |
| 92 | }], |
| 93 | ['angle_enable_d3d11==1', |
| 94 | { |
| 95 | 'defines': |
| 96 | [ |
| 97 | 'ANGLE_ENABLE_D3D11', |
| 98 | ], |
| 99 | }], |
| 100 | ], |
Geoff Lang | d095bda | 2014-04-07 14:21:14 -0400 | [diff] [blame] | 101 | 'includes': [ '../build/common_defines.gypi', ], |
Geoff Lang | 39d5166 | 2013-08-29 16:08:23 -0400 | [diff] [blame] | 102 | 'msvs_settings': |
| 103 | { |
| 104 | 'VCLinkerTool': |
| 105 | { |
| 106 | 'AdditionalDependencies': |
| 107 | [ |
| 108 | 'd3d9.lib', |
Geoff Lang | 39d5166 | 2013-08-29 16:08:23 -0400 | [diff] [blame] | 109 | ], |
| 110 | }, |
| 111 | }, |
Geoff Lang | f571312 | 2013-10-07 17:06:30 -0400 | [diff] [blame] | 112 | 'configurations': |
| 113 | { |
| 114 | 'Debug': |
| 115 | { |
| 116 | 'defines': |
| 117 | [ |
| 118 | 'ANGLE_ENABLE_PERF', |
| 119 | ], |
| 120 | }, |
| 121 | }, |
Geoff Lang | 39d5166 | 2013-08-29 16:08:23 -0400 | [diff] [blame] | 122 | }, |
| 123 | ], |
| 124 | }, |
| 125 | ], |
| 126 | ], |
| 127 | } |