From 67ed1bfabcd50383a3d5c074e10e39aa634c5852 Mon Sep 17 00:00:00 2001 From: Charadon Date: Wed, 8 Jun 2022 03:13:03 -0400 Subject: More portability woooo --- premake5.lua | 21 ++++++++++++++++++--- 1 file 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`"} -- cgit 1.4.1-2-gfad0 >stats
path: root/TODO
blob: b33a08d9580a9f674f6adcfadc65a2ecfb19ef4f (plain) (blame)
1
2
3
4
- add a flag to Key to execute the command on release (needed for commands
		affecting the keyboard grab, see scrot -s for example)
- add updategeom() hook for external tools like dzen
- consider onscreenkeyboard hooks for tablet deployment