Compare commits
5 Commits
features/s
...
docking
Author | SHA1 | Date |
---|---|---|
|
07a5333fbd | ago%!(EXTRA string=7 months) |
|
b165973d1a | ago%!(EXTRA string=10 months) |
|
6465614581 | ago%!(EXTRA string=10 months) |
|
f40265864e | ago%!(EXTRA string=10 months) |
|
12ed7ce125 | ago%!(EXTRA string=10 months) |
5 changed files with 210 additions and 1 deletions
@ -0,0 +1,157 @@ |
|||||||
|
# Alternative GNU Make project makefile autogenerated by Premake
|
||||||
|
|
||||||
|
ifndef config |
||||||
|
config=debug
|
||||||
|
endif |
||||||
|
|
||||||
|
ifndef verbose |
||||||
|
SILENT = @
|
||||||
|
endif |
||||||
|
|
||||||
|
.PHONY: clean prebuild |
||||||
|
|
||||||
|
SHELLTYPE := posix
|
||||||
|
ifeq (.exe,$(findstring .exe,$(ComSpec))) |
||||||
|
SHELLTYPE := msdos
|
||||||
|
endif |
||||||
|
|
||||||
|
# Configurations
|
||||||
|
# #############################################
|
||||||
|
|
||||||
|
RESCOMP = windres
|
||||||
|
DEFINES +=
|
||||||
|
INCLUDES +=
|
||||||
|
FORCE_INCLUDE +=
|
||||||
|
ALL_CPPFLAGS += $(CPPFLAGS) -MD -MP $(DEFINES) $(INCLUDES)
|
||||||
|
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
||||||
|
LIBS +=
|
||||||
|
LDDEPS +=
|
||||||
|
LINKCMD = $(AR) -rcs "$@" $(OBJECTS)
|
||||||
|
define PREBUILDCMDS |
||||||
|
endef |
||||||
|
define PRELINKCMDS |
||||||
|
endef |
||||||
|
define POSTBUILDCMDS |
||||||
|
endef |
||||||
|
|
||||||
|
ifeq ($(config),debug) |
||||||
|
TARGETDIR = ../../bin/linux-x86_64-Debug/ImGuiDocking
|
||||||
|
TARGET = $(TARGETDIR)/libImGuiDocking.a
|
||||||
|
OBJDIR = ../../bin-int/linux-x86_64-Debug/ImGuiDocking
|
||||||
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -fPIC -g
|
||||||
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -fPIC -g -std=c++17
|
||||||
|
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -m64
|
||||||
|
|
||||||
|
else ifeq ($(config),release) |
||||||
|
TARGETDIR = ../../bin/linux-x86_64-Release/ImGuiDocking
|
||||||
|
TARGET = $(TARGETDIR)/libImGuiDocking.a
|
||||||
|
OBJDIR = ../../bin-int/linux-x86_64-Release/ImGuiDocking
|
||||||
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -O2 -fPIC
|
||||||
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -O2 -fPIC -std=c++17
|
||||||
|
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -m64 -s
|
||||||
|
|
||||||
|
endif |
||||||
|
|
||||||
|
# Per File Configurations
|
||||||
|
# #############################################
|
||||||
|
|
||||||
|
|
||||||
|
# File sets
|
||||||
|
# #############################################
|
||||||
|
|
||||||
|
GENERATED :=
|
||||||
|
OBJECTS :=
|
||||||
|
|
||||||
|
GENERATED += $(OBJDIR)/imgui.o
|
||||||
|
GENERATED += $(OBJDIR)/imgui_demo.o
|
||||||
|
GENERATED += $(OBJDIR)/imgui_draw.o
|
||||||
|
GENERATED += $(OBJDIR)/imgui_tables.o
|
||||||
|
GENERATED += $(OBJDIR)/imgui_widgets.o
|
||||||
|
OBJECTS += $(OBJDIR)/imgui.o
|
||||||
|
OBJECTS += $(OBJDIR)/imgui_demo.o
|
||||||
|
OBJECTS += $(OBJDIR)/imgui_draw.o
|
||||||
|
OBJECTS += $(OBJDIR)/imgui_tables.o
|
||||||
|
OBJECTS += $(OBJDIR)/imgui_widgets.o
|
||||||
|
|
||||||
|
# Rules
|
||||||
|
# #############################################
|
||||||
|
|
||||||
|
all: $(TARGET) |
||||||
|
@:
|
||||||
|
|
||||||
|
$(TARGET): $(GENERATED) $(OBJECTS) $(LDDEPS) | $(TARGETDIR) |
||||||
|
$(PRELINKCMDS)
|
||||||
|
@echo Linking ImGuiDocking
|
||||||
|
$(SILENT) $(LINKCMD)
|
||||||
|
$(POSTBUILDCMDS)
|
||||||
|
|
||||||
|
$(TARGETDIR): |
||||||
|
@echo Creating $(TARGETDIR)
|
||||||
|
ifeq (posix,$(SHELLTYPE)) |
||||||
|
$(SILENT) mkdir -p $(TARGETDIR)
|
||||||
|
else |
||||||
|
$(SILENT) mkdir $(subst /,\\,$(TARGETDIR))
|
||||||
|
endif |
||||||
|
|
||||||
|
$(OBJDIR): |
||||||
|
@echo Creating $(OBJDIR)
|
||||||
|
ifeq (posix,$(SHELLTYPE)) |
||||||
|
$(SILENT) mkdir -p $(OBJDIR)
|
||||||
|
else |
||||||
|
$(SILENT) mkdir $(subst /,\\,$(OBJDIR))
|
||||||
|
endif |
||||||
|
|
||||||
|
clean: |
||||||
|
@echo Cleaning ImGuiDocking
|
||||||
|
ifeq (posix,$(SHELLTYPE)) |
||||||
|
$(SILENT) rm -f $(TARGET)
|
||||||
|
$(SILENT) rm -rf $(GENERATED)
|
||||||
|
$(SILENT) rm -rf $(OBJDIR)
|
||||||
|
else |
||||||
|
$(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
|
||||||
|
$(SILENT) if exist $(subst /,\\,$(GENERATED)) del /s /q $(subst /,\\,$(GENERATED))
|
||||||
|
$(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
|
||||||
|
endif |
||||||
|
|
||||||
|
prebuild: | $(OBJDIR) |
||||||
|
$(PREBUILDCMDS)
|
||||||
|
|
||||||
|
ifneq (,$(PCH)) |
||||||
|
$(OBJECTS): $(GCH) | $(PCH_PLACEHOLDER) |
||||||
|
$(GCH): $(PCH) | prebuild |
||||||
|
@echo $(notdir $<)
|
||||||
|
$(SILENT) $(CXX) -x c++-header $(ALL_CXXFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<"
|
||||||
|
$(PCH_PLACEHOLDER): $(GCH) | $(OBJDIR) |
||||||
|
ifeq (posix,$(SHELLTYPE)) |
||||||
|
$(SILENT) touch "$@"
|
||||||
|
else |
||||||
|
$(SILENT) echo $null >> "$@"
|
||||||
|
endif |
||||||
|
else |
||||||
|
$(OBJECTS): | prebuild |
||||||
|
endif |
||||||
|
|
||||||
|
|
||||||
|
# File Rules
|
||||||
|
# #############################################
|
||||||
|
|
||||||
|
$(OBJDIR)/imgui.o: imgui.cpp |
||||||
|
@echo "$(notdir $<)"
|
||||||
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
||||||
|
$(OBJDIR)/imgui_demo.o: imgui_demo.cpp |
||||||
|
@echo "$(notdir $<)"
|
||||||
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
||||||
|
$(OBJDIR)/imgui_draw.o: imgui_draw.cpp |
||||||
|
@echo "$(notdir $<)"
|
||||||
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
||||||
|
$(OBJDIR)/imgui_tables.o: imgui_tables.cpp |
||||||
|
@echo "$(notdir $<)"
|
||||||
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
||||||
|
$(OBJDIR)/imgui_widgets.o: imgui_widgets.cpp |
||||||
|
@echo "$(notdir $<)"
|
||||||
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
||||||
|
|
||||||
|
-include $(OBJECTS:%.o=%.d) |
||||||
|
ifneq (,$(PCH)) |
||||||
|
-include $(PCH_PLACEHOLDER).d
|
||||||
|
endif |
@ -0,0 +1 @@ |
|||||||
|
IncludeDirs["imgui-docking"] = "%{wks.location}/vendor/imgui" |
@ -0,0 +1,14 @@ |
|||||||
|
{ |
||||||
|
"name": "ImGuiDocking", |
||||||
|
"author": "anulax1225", |
||||||
|
"git": "https://github.com/anulax1225/imgui-docking", |
||||||
|
"links": |
||||||
|
[ |
||||||
|
"ImGuiDocking" |
||||||
|
], |
||||||
|
"includes": |
||||||
|
[ |
||||||
|
"imgui-docking" |
||||||
|
], |
||||||
|
"packages":[] |
||||||
|
} |
@ -0,0 +1,37 @@ |
|||||||
|
project "ImGuiDocking" |
||||||
|
kind "StaticLib" |
||||||
|
language "C++" |
||||||
|
systemversion "latest" |
||||||
|
cppdialect "C++17" |
||||||
|
staticruntime "On" |
||||||
|
|
||||||
|
targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") |
||||||
|
objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") |
||||||
|
|
||||||
|
files |
||||||
|
{ |
||||||
|
"%{prj.location}/imconfig.h", |
||||||
|
"%{prj.location}/imgui.h", |
||||||
|
"%{prj.location}/imgui.cpp", |
||||||
|
"%{prj.location}/imgui_draw.cpp", |
||||||
|
"%{prj.location}/imgui_internal.h", |
||||||
|
"%{prj.location}/imgui_widgets.cpp", |
||||||
|
"%{prj.location}/imstb_rectpack.h", |
||||||
|
"%{prj.location}/imstb_textedit.h", |
||||||
|
"%{prj.location}/imstb_truetype.h", |
||||||
|
"%{prj.location}/imgui_demo.cpp", |
||||||
|
"%{prj.location}/imgui_tables.cpp", |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
filter "system:linux" |
||||||
|
pic "On" |
||||||
|
|
||||||
|
filter "configurations:Debug" |
||||||
|
runtime "Debug" |
||||||
|
symbols "on" |
||||||
|
|
||||||
|
filter "configurations:Release" |
||||||
|
runtime "Release" |
||||||
|
optimize "on" |
Loading…
Reference in New Issue