From 3d0915d1265280ecb070da15cd7a31e9a0b16e7c Mon Sep 17 00:00:00 2001 From: Charadon Date: Thu, 16 Jun 2022 22:36:30 -0400 Subject: I, uh, did it wrong lol --- premake5.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'premake5.lua') diff --git a/premake5.lua b/premake5.lua index b327395..7b8f642 100644 --- a/premake5.lua +++ b/premake5.lua @@ -42,47 +42,47 @@ project("Pong") AllGood = true if(Pkgconf_Result == nil) then - print("You do not have pkgconf installed. Aborting.") + print("You do not have pkg-config installed. Aborting.") os.exit(1) end io.write("Raylib: ") io.flush() - if(os.executef("pkgconf --modversion raylib") == nil) + if(os.executef("pkg-config --modversion raylib") == nil) then print("Can't find raylib.") AllGood = false end io.write("SDL2: ") io.flush() - if(os.executef("pkgconf --modversion sdl2") == nil) + if(os.executef("pkg-config --modversion sdl2") == nil) then print("Can't find SDL2.") AllGood = false end io.write("SDL2_mixer: ") io.flush() - if (os.executef("pkgconf --modversion SDL2_mixer") == nil) + if (os.executef("pkg-config --modversion SDL2_mixer") == nil) then print("Can't find SDL2_mixer.") AllGood = false end io.write("GLFW3: ") io.flush() - if (os.executef("pkgconf --modversion glfw3") == nil) + if (os.executef("pkg-config --modversion glfw3") == nil) then print("Can't find GLFW.") AllGood = false end io.write("GL: ") io.flush() - if (os.executef("pkgconf --modversion gl") == nil) + if (os.executef("pkg-config --modversion gl") == nil) then print("Can't find OpenGL") AllGood = false end io.write("GLU: ") io.flush() - if (os.executef("pkgconf --modversion glu") == nil) + if (os.executef("pkg-config --modversion glu") == nil) then print("Can't find GLU") AllGood = false @@ -122,7 +122,7 @@ project("Pong") if (flatpak == true) then else - buildoptions {"-g", "-ggdb", "`pkgconf --cflags raylib`", "`pkgconf --cflags glfw3`", "`pkgconf --cflags gl`", "`pkgconf --cflags sdl2`", "`pkgconf --cflags SDL2_mixer`", "`pkgconf --cflags glu`"} - linkoptions {"-g", "-ggdb", "`pkgconf --libs raylib`", "`pkgconf --libs glfw3`", "`pkgconf --libs gl`", "`pkgconf --libs sdl2`", "`pkgconf --libs SDL2_mixer`", "`pkgconf --libs glu`"} + buildoptions {"-g", "-ggdb", "`pkg-config --cflags raylib`", "`pkg-config --cflags glfw3`", "`pkg-config --cflags gl`", "`pkg-config --cflags sdl2`", "`pkg-config --cflags SDL2_mixer`", "`pkg-config --cflags glu`"} + linkoptions {"-g", "-ggdb", "`pkg-config --libs raylib`", "`pkg-config --libs glfw3`", "`pkg-config --libs gl`", "`pkg-config --libs sdl2`", "`pkg-config --libs SDL2_mixer`", "`pkg-config --libs glu`"} end -- cgit 1.4.1-2-gfad0