summarylogtreecommitdiffstats
path: root/0004-Link-against-dxguid-d3d9-and-gdi32.patch
blob: b3d3525a8f38b56bb40912c358ae54c74edd5848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
From 1d4cb8b14bb7d52ccec0828bcd489e683afb2aa7 Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 25 Sep 2016 23:05:02 +0200
Subject: [PATCH 04/10] Link against dxguid, d3d9 and gdi32

---
 src/libEGL.gypi    | 3 +++
 src/libGLESv2.gypi | 3 +++
 util/util.gyp      | 7 +++++++
 3 files changed, 13 insertions(+)

diff --git a/src/libEGL.gypi b/src/libEGL.gypi
index 05a2c24..aaa8bbf 100644
--- a/src/libEGL.gypi
+++ b/src/libEGL.gypi
@@ -41,6 +41,9 @@
                     'ldflags': [ '-Wl,--out-implib,libEGL.dll.a ../../../src/libEGL/libEGL.def' ],
                 }],
             ],
+            'libraries': [
+                '-ldxguid -ld3d9 -lgdi32'
+            ]
         },
     ],
 }
diff --git a/src/libGLESv2.gypi b/src/libGLESv2.gypi
index 325ffc8..cd69e44 100644
--- a/src/libGLESv2.gypi
+++ b/src/libGLESv2.gypi
@@ -1074,6 +1074,9 @@
                     'ldflags': [ '-Wl,--out-implib,libGLESv2.dll.a ../../../src/libGLESv2/libGLESv2.def' ],
                 }],
             ],
+            'libraries': [
+                '-ldxguid -ld3d9 -lgdi32'
+            ]
         },
     ],
 }
diff --git a/util/util.gyp b/util/util.gyp
index 08d4951..b8e08c1 100644
--- a/util/util.gyp
+++ b/util/util.gyp
@@ -144,6 +144,13 @@
                     [
                         '<@(util_win32_sources)',
                     ],
+                    'link_settings':
+                    {
+                        'libraries':
+                        [
+                            '-lgdi32',
+                        ]
+                    },
                 }],
                 ['OS=="win" and angle_build_winrt==1',
                 {
-- 
2.10.2