Skip to content

Commit

Permalink
Merge pull request ocornut#4 from LovelySanta/patch-2
Browse files Browse the repository at this point in the history
Update premake script to allow building on Linux - part2: docking branch
  • Loading branch information
TheCherno authored Jul 7, 2019
2 parents cf5a93a + bdf83ba commit 5b0b18b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 26 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Directories
.vs/
bin/
bin-int/

# Files
*.user
Makefile
63 changes: 37 additions & 26 deletions premake5.lua
Original file line number Diff line number Diff line change
@@ -1,28 +1,39 @@
project "ImGui"
kind "StaticLib"
language "C++"

targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
kind "StaticLib"
language "C++"

files
{
"imconfig.h",
"imgui.h",
"imgui.cpp",
"imgui_draw.cpp",
"imgui_internal.h",
"imgui_widgets.cpp",
"imstb_rectpack.h",
"imstb_textedit.h",
"imstb_truetype.h",
"imgui_demo.cpp"
}

filter "system:windows"
systemversion "latest"
cppdialect "C++17"
staticruntime "On"

filter { "system:windows", "configurations:Release" }
buildoptions "/MT"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")

files
{
"imconfig.h",
"imgui.h",
"imgui.cpp",
"imgui_draw.cpp",
"imgui_internal.h",
"imgui_widgets.cpp",
"imstb_rectpack.h",
"imstb_textedit.h",
"imstb_truetype.h",
"imgui_demo.cpp"
}

filter "system:windows"
systemversion "latest"
cppdialect "C++17"
staticruntime "On"

filter "system:linux"
pic "On"
systemversion "latest"
cppdialect "C++17"
staticruntime "On"

filter "configurations:Debug"
runtime "Debug"
symbols "on"

filter "configurations:Release"
runtime "Release"
optimize "on"

0 comments on commit 5b0b18b

Please sign in to comment.