浏览代码

OSX: Fixed GLFW3 linkage.

Бранимир Караџић 6 年之前
父节点
当前提交
9aa77262dd
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. 4 1
      scripts/genie.lua
  2. 4 1
      scripts/texturev.lua

+ 4 - 1
scripts/genie.lua

@@ -192,7 +192,6 @@ function exampleProjectDefaults()
 
 	if _OPTIONS["with-glfw"] then
 		defines { "ENTRY_CONFIG_USE_GLFW=1" }
-		links   { "glfw3" }
 
 		configuration { "linux or freebsd" }
 			if _OPTIONS["with-wayland"] then
@@ -209,7 +208,11 @@ function exampleProjectDefaults()
 				}
 			end
 
+		configuration { "not osx" }
+			links { "glfw3" }
+
 		configuration { "osx" }
+			links { "glfw" }
 			linkoptions {
 				"-framework CoreVideo",
 				"-framework IOKit",

+ 4 - 1
scripts/texturev.lua

@@ -41,7 +41,6 @@ project ("texturev")
 
 	if _OPTIONS["with-glfw"] then
 		defines { "ENTRY_CONFIG_USE_GLFW=1" }
-		links   { "glfw3" }
 
 		configuration { "linux or freebsd" }
 			links {
@@ -52,7 +51,11 @@ project ("texturev")
 				"Xcursor",
 			}
 
+		configuration { "not osx" }
+			links { "glfw3" }
+
 		configuration { "osx" }
+			links { "glfw" }
 			linkoptions {
 				"-framework CoreVideo",
 				"-framework IOKit",