cleanup
This commit is contained in:
parent
d65c77eaca
commit
1968db8540
|
|
@ -393,4 +393,6 @@ Editor/bin
|
||||||
Editor/intermediate-files
|
Editor/intermediate-files
|
||||||
Game/bin
|
Game/bin
|
||||||
|
|
||||||
imgui.ini
|
lib/
|
||||||
|
|
||||||
|
imgui.ini
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
[submodule "imgui-sfml-premake"]
|
|
||||||
path = imgui-sfml-premake
|
|
||||||
url = https://gitlab.com/JosephA1997/imgui-sfml-premake.git
|
|
||||||
[submodule "third-party"]
|
[submodule "third-party"]
|
||||||
path = third-party
|
path = third-party
|
||||||
url = https://gitlab.com/JosephA1997/imgui-sfml-premake.git
|
url = https://gitlab.com/JosephA1997/imgui-sfml-premake.git
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
.\vendor\premake5\premake5.exe vs2022
|
|
||||||
PAUSE
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
#! /bin/bash
|
|
||||||
|
|
||||||
./vendor/premake5/premake5 ninja
|
|
||||||
ninja $1
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
#! /bin/bash
|
|
||||||
if [ -z "$1" ] || [ $# -eq 0 ]
|
|
||||||
then
|
|
||||||
ninja -t clean
|
|
||||||
else
|
|
||||||
ninja -t clean $1
|
|
||||||
fi
|
|
||||||
7
clean.sh
7
clean.sh
|
|
@ -1,7 +0,0 @@
|
||||||
#! /bin/bash
|
|
||||||
if [ -z "$1" ] || [ $# -eq 0 ]
|
|
||||||
then
|
|
||||||
make config=Debug clean && make config=Release clean
|
|
||||||
else
|
|
||||||
make config=$1 clean
|
|
||||||
fi
|
|
||||||
7
ecc.sh
7
ecc.sh
|
|
@ -1,7 +0,0 @@
|
||||||
#! /bin/bash
|
|
||||||
if [ -z "$1" ] || [ $# -eq 0 ]
|
|
||||||
then
|
|
||||||
./vendor/premake5/premake5 --config=Debug ecc
|
|
||||||
else
|
|
||||||
./vendor/premake5/premake5 --config=$1 ecc
|
|
||||||
fi
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 5223f725218bd8a62b2e5dac4e3d852b761731a6
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
154
premake5.lua
154
premake5.lua
|
|
@ -1,154 +0,0 @@
|
||||||
require "ecc/ecc"
|
|
||||||
require "ninja/ninja"
|
|
||||||
|
|
||||||
workspace "breakout"
|
|
||||||
architecture "x64"
|
|
||||||
|
|
||||||
output_dir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
|
|
||||||
vs_intdir = "!$(SolutionDir)intermediate-files/" .. output_dir
|
|
||||||
intdir = "%{wks.location}/intermediate-files/" .. output_dir
|
|
||||||
vs_bindir = "$(SolutionDir)bin/" .. output_dir
|
|
||||||
bindir = "%{wks.location}/bin/" .. output_dir
|
|
||||||
vs_coreinclude_dir = "$(SolutionDir)include"
|
|
||||||
vs_sfmldir = "$(SolutionDir)vendor/SFML"
|
|
||||||
sfmldir = "%{wks.location}/vendor/SFML"
|
|
||||||
vs_imguidir = "$(SolutionDir)vendor/imgui"
|
|
||||||
imguidir = "%{wks.location}/vendor/imgui"
|
|
||||||
vs_include_dir = "$(SolutionDir)include"
|
|
||||||
include_dir = "%{wks.location}/include"
|
|
||||||
|
|
||||||
configurations
|
|
||||||
{
|
|
||||||
"Debug",
|
|
||||||
"Release"
|
|
||||||
}
|
|
||||||
|
|
||||||
project "breakout"
|
|
||||||
language "C++"
|
|
||||||
cppdialect "C++20"
|
|
||||||
systemversion "latest"
|
|
||||||
kind "WindowedApp"
|
|
||||||
targetname "breakout"
|
|
||||||
|
|
||||||
files
|
|
||||||
{
|
|
||||||
"src/**.cpp",
|
|
||||||
"include/**.h",
|
|
||||||
"include/**.hpp",
|
|
||||||
"vendor/imgui/imgui.cpp",
|
|
||||||
"vendor/imgui/imgui_draw.cpp",
|
|
||||||
"vendor/imgui/imgui_tables.cpp",
|
|
||||||
"vendor/imgui/imgui_widgets.cpp",
|
|
||||||
"vendor/imgui/imgui-SFML.cpp"
|
|
||||||
}
|
|
||||||
|
|
||||||
--visual studio--
|
|
||||||
filter {"action:vs*", "system:windows"}
|
|
||||||
targetdir (vs_bindir)
|
|
||||||
objdir (vs_intdir)
|
|
||||||
debugdir "$(SolutionDir)"
|
|
||||||
includedirs
|
|
||||||
{
|
|
||||||
"src",
|
|
||||||
vs_include_dir,
|
|
||||||
vs_sfmldir .. "/include",
|
|
||||||
vs_imguidir
|
|
||||||
}
|
|
||||||
|
|
||||||
libdirs {vs_sfmldir .."/lib"}
|
|
||||||
|
|
||||||
--not visual studio --
|
|
||||||
filter {"not action:vs*", "system:windows"}
|
|
||||||
targetdir (bindir)
|
|
||||||
objdir (intdir)
|
|
||||||
debugdir "%{wks.location}"
|
|
||||||
includedirs
|
|
||||||
{
|
|
||||||
"src",
|
|
||||||
include_dir,
|
|
||||||
sfmldir .. "/include",
|
|
||||||
imguidir
|
|
||||||
}
|
|
||||||
|
|
||||||
libdirs {sfmldir .."/lib"}
|
|
||||||
|
|
||||||
--windows specific settings--
|
|
||||||
filter{"system:windows"}
|
|
||||||
defines {"PLATFORM_WINDOWS", "SFML_STATIC"}
|
|
||||||
staticruntime "on"
|
|
||||||
|
|
||||||
filter {"system:windows", "configurations:debug"}
|
|
||||||
defines{"_DEBUG", "_CONSOLE"}
|
|
||||||
links
|
|
||||||
{
|
|
||||||
"sfml-main-d",
|
|
||||||
"sfml-graphics-s-d",
|
|
||||||
"sfml-window-s-d",
|
|
||||||
"opengl32",
|
|
||||||
"gdi32",
|
|
||||||
"freetyped",
|
|
||||||
"sfml-audio-s-d",
|
|
||||||
"flacd",
|
|
||||||
"vorbisfiled",
|
|
||||||
"vorbisd",
|
|
||||||
"oggd",
|
|
||||||
"sfml-system-s-d",
|
|
||||||
"winmm"
|
|
||||||
}
|
|
||||||
|
|
||||||
filter {"system:windows", "configurations:release"}
|
|
||||||
defines{"NDEBUG"}
|
|
||||||
links
|
|
||||||
{
|
|
||||||
"sfml-main",
|
|
||||||
"sfml-graphics-s",
|
|
||||||
"sfml-window-s",
|
|
||||||
"opengl32",
|
|
||||||
"gdi32",
|
|
||||||
"freetype",
|
|
||||||
"sfml-audio-s",
|
|
||||||
"flac",
|
|
||||||
"vorbisfile",
|
|
||||||
"vorbis",
|
|
||||||
"ogg",
|
|
||||||
"sfml-system-s",
|
|
||||||
"winmm"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
--linux specific settings--
|
|
||||||
filter {"system:linux"}
|
|
||||||
defines {"PLATFORM_LINUX"}
|
|
||||||
targetdir (bindir)
|
|
||||||
objdir (intdir)
|
|
||||||
debugdir "%{wks.location}"
|
|
||||||
includedirs
|
|
||||||
{
|
|
||||||
"src",
|
|
||||||
include_dir,
|
|
||||||
imguidir
|
|
||||||
}
|
|
||||||
|
|
||||||
links
|
|
||||||
{
|
|
||||||
"sfml-graphics",
|
|
||||||
"sfml-window",
|
|
||||||
"sfml-audio",
|
|
||||||
"sfml-system",
|
|
||||||
"OpenGL",
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
--config settings--
|
|
||||||
filter "configurations:debug"
|
|
||||||
defines {"LOG_ENABLE", "GAME_DEBUG"}
|
|
||||||
symbols "on"
|
|
||||||
runtime "Debug"
|
|
||||||
warnings "Extra"
|
|
||||||
|
|
||||||
filter "configurations:release"
|
|
||||||
defines {"GAME_RELEASE"}
|
|
||||||
optimize "Speed"
|
|
||||||
inlining "Auto"
|
|
||||||
symbols "off"
|
|
||||||
runtime "Release"
|
|
||||||
Loading…
Reference in New Issue