diff options
-rw-r--r-- | premake5.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/premake5.lua b/premake5.lua index 171de21..8b2b18c 100644 --- a/premake5.lua +++ b/premake5.lua @@ -6,6 +6,7 @@ project("Pong") language("C") files {"src/*.c", "src/*.h", } includedirs {"raylib/src"} + -- Prefix Option newoption { trigger = "prefix", @@ -23,11 +24,11 @@ project("Pong") flatpak = _OPTIONS["flatpak"] or "false" -- Find raylib - RaylibStaticLibrary = os.findlib("libraylib.a", "raylib", "raylib/src") + RaylibStaticLibrary = os.findlib("libraylib.a", {"raylib", "raylib/src"}) if(RaylibStaticLibrary == nil) then os.exit(1) end - libdirs {"raylib", "raylib/src"} + libdirs {RaylibStaticLibrary} linkoptions {"`pkgconf --libs glfw3`", "`pkgconf --libs gl`"} -- Detect OS @@ -81,5 +82,7 @@ project("Pong") os.executef("rm -rvf %s/flatpak_repo", _MAIN_SCRIPT_DIR) os.executef("rm -rvf %s/.flatpak-builder", _MAIN_SCRIPT_DIR) os.executef("rm -rvf %s/build-dir", _MAIN_SCRIPT_DIR) + os.executef("rm -vf %s/*.flatpak", _MAIN_SCRIPT_DIR) + end } \ No newline at end of file |