فهرست منبع

Fix building with wayland (#2412)

Julian Sikorski 4 سال پیش
والد
کامیت
39cdaace39
2فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 7 0
      scripts/geometryv.lua
  2. 7 0
      scripts/texturev.lua

+ 7 - 0
scripts/geometryv.lua

@@ -30,6 +30,13 @@ project ("geometryv")
 		defines { "ENTRY_CONFIG_USE_SDL=1" }
 		links   { "SDL2" }
 
+		configuration { "linux or freebsd" }
+			if _OPTIONS["with-wayland"]  then
+				links {
+					"wayland-egl",
+				}
+			end
+
 		configuration { "x32", "windows" }
 			libdirs { "$(SDL2_DIR)/lib/x86" }
 

+ 7 - 0
scripts/texturev.lua

@@ -30,6 +30,13 @@ project ("texturev")
 		defines { "ENTRY_CONFIG_USE_SDL=1" }
 		links   { "SDL2" }
 
+		configuration { "linux or freebsd" }
+			if _OPTIONS["with-wayland"]  then
+				links {
+					"wayland-egl",
+				}
+			end
+
 		configuration { "x32", "windows" }
 			libdirs { "$(SDL2_DIR)/lib/x86" }