diff options
-rw-r--r-- | .gitmodules | 4 | ||||
-rw-r--r-- | premake5.lua | 51 | ||||
m--------- | raylib | 0 |
3 files changed, 27 insertions, 28 deletions
diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index cba3ac7..0000000 --- a/.gitmodules +++ /dev/null @@ -1,4 +0,0 @@ -[submodule "raylib"] - path = raylib - url = https://github.com/raysan5/raylib - branch = 3.7.0 diff --git a/premake5.lua b/premake5.lua index f42bea7..310499f 100644 --- a/premake5.lua +++ b/premake5.lua @@ -2,6 +2,33 @@ workspace("Pong") configurations {"Debug", "Release"} project("Pong") + newaction { + trigger = "install", + description = "Install the game to prefix.", + execute = function() + os.executef("mkdir -p %s/Pong/resources", prefix) + os.executef("cp -v resources/* %s/Pong/resources/", prefix) + os.executef("install -Dm755 bin/*/Pong %s/Pong/pong", prefix) + os.exit(0) + end + } + + newaction { + trigger = "clean", + description = "Clean the work environment.", + execute = function() + os.executef("rm -rvf %s/obj", _MAIN_SCRIPT_DIR) + os.executef("rm -rvf %s/bin", _MAIN_SCRIPT_DIR) + os.executef("rm -rvf %s/app", _MAIN_SCRIPT_DIR) + os.executef("rm -vf %s/Makefile", _MAIN_SCRIPT_DIR) + os.executef("rm -vf %s/Pong.make", _MAIN_SCRIPT_DIR) + 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) + os.exit(0) + end + } kind("WindowedApp") language("C") files {"src/*.c", "src/*.h", } @@ -67,28 +94,4 @@ project("Pong") links {RaylibStaticLibrary, "m", "pthread", "dl"} end - newaction { - trigger = "install", - description = "Install the game to prefix.", - execute = function() - os.executef("mkdir -p %s/Pong/resources", prefix) - os.executef("cp -v resources/* %s/Pong/resources/", prefix) - os.executef("install -Dm755 bin/*/Pong %s/Pong/pong", prefix) - end - } - newaction { - trigger = "clean", - description = "Clean the work environment.", - execute = function() - os.executef("rm -rvf %s/obj", _MAIN_SCRIPT_DIR) - os.executef("rm -rvf %s/bin", _MAIN_SCRIPT_DIR) - os.executef("rm -rvf %s/app", _MAIN_SCRIPT_DIR) - os.executef("rm -vf %s/Makefile", _MAIN_SCRIPT_DIR) - os.executef("rm -vf %s/Pong.make", _MAIN_SCRIPT_DIR) - 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 - } diff --git a/raylib b/raylib deleted file mode 160000 -Subproject b6c8d343dca2ef19c23c50975328a028124cf3c |