diff options
author | Charadon <dev@iotib.net> | 2022-06-08 03:13:03 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-06-08 03:13:03 -0400 |
commit | 67ed1bfabcd50383a3d5c074e10e39aa634c5852 (patch) | |
tree | 20114dae7cd1f262713df69568cfbe904739bed6 /premake5.lua | |
parent | 17a70c07f8fc65ee6241590a11acbb4988fb06e0 (diff) | |
download | Pong-C-67ed1bfabcd50383a3d5c074e10e39aa634c5852.tar.gz |
More portability woooo
Diffstat (limited to 'premake5.lua')
-rw-r--r-- | premake5.lua | 21 |
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`"} |