File: 672.patch

package info (click to toggle)
nanovg 0.0~git20230826.f93799c%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,352 kB
  • sloc: ansic: 8,981; makefile: 6
file content (37 lines) | stat: -rw-r--r-- 1,334 bytes parent folder | download | duplicates (2)
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
From c18ea99ae345b6fd8ed9c0106bdfcd38464448ed Mon Sep 17 00:00:00 2001
From: Andrius Merkys <andrius.merkys@gmail.com>
Date: Tue, 19 Mar 2024 08:24:58 +0200
Subject: [PATCH] Define missing `NANOVG_GLEW` for Linux configurations.

---
 premake4.lua | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/premake4.lua b/premake4.lua
index 0f861686..53411b28 100644
--- a/premake4.lua
+++ b/premake4.lua
@@ -152,6 +152,7 @@ solution "nanovg"
 		configuration { "linux" }
 			 linkoptions { "`pkg-config --libs glfw3`" }
 			 links { "GL", "GLU", "m", "GLEW" }
+			 defines { "NANOVG_GLEW" }
 
 		configuration { "windows" }
 			 links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
@@ -180,6 +181,7 @@ solution "nanovg"
 		configuration { "linux" }
 			 linkoptions { "`pkg-config --libs glfw3`" }
 			 links { "GL", "GLU", "m", "GLEW" }
+			 defines { "NANOVG_GLEW" }
 
 		configuration { "windows" }
 			 links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
@@ -208,6 +210,7 @@ solution "nanovg"
 		configuration { "linux" }
 			 linkoptions { "`pkg-config --libs glfw3`" }
 			 links { "GL", "GLU", "m", "GLEW" }
+			 defines { "NANOVG_GLEW" }
 
 		configuration { "windows" }
 			 links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }