about summary refs log tree commit diff stats
path: root/premake5.lua
diff options
context:
space:
mode:
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua21
1 files changed, 18 insertions, 3 deletions
diff --git a/premake5.lua b/premake5.lua
index 0c5b4b2..21d3845 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -71,6 +71,20 @@ project("Pong")
                 print("Can't find GLFW.")
                 AllGood = false
             end
+	    io.write("GL: ")
+	    io.flush()
+	    if (os.executef("pkgconf --modversion gl") == nil)
+	    then
+		    print("Can't find OpenGL")
+		    AllGood = false
+	    end
+	    io.write("GLU: ")
+	    io.flush()
+	    if (os.executef("pkgconf --modversion glu") == nil)
+	    then
+		    print("Can't find GLU")
+		    AllGood = false
+	    end
             if(AllGood == true)
             then
                 print("Found all dependencies!")
@@ -84,8 +98,7 @@ project("Pong")
     kind("WindowedApp")
     language("C")
     files {"src/*.c", "src/*.h", }
-    includedirs {"/usr/local/include"}
-    libdirs {"/usr/local/lib"}
+    --libdirs {"/usr/local/lib", "/usr/pkg/lib", "/usr/X11R7/include"}
 
     -- Prefix Option
     newoption {
@@ -108,4 +121,6 @@ project("Pong")
         linkoptions {"-L/app/lib"}
     end
 
-    linkoptions {"`pkgconf --libs raylib`", "`pkgconf --libs glfw3`", "`pkgconf --libs gl`", "`pkgconf --libs sdl2`", "`pkgconf --libs SDL2_mixer`"}
+
+    buildoptions {"`pkgconf --cflags raylib`", "`pkgconf --cflags glfw3`", "`pkgconf --cflags gl`", "`pkgconf --cflags sdl2`", "`pkgconf --cflags SDL2_mixer`", "`pkgconf --cflags glu`"}
+    linkoptions {"`pkgconf --libs raylib`", "`pkgconf --libs glfw3`", "`pkgconf --libs gl`", "`pkgconf --libs sdl2`", "`pkgconf --libs SDL2_mixer`", "`pkgconf --libs glu`"}