More on premake5

This commit is contained in:
balhau@balhau.net 2021-12-25 10:19:24 +00:00
parent 3b2fb68973
commit 55f0152b01
No known key found for this signature in database
GPG key ID: 1E666F326A121830
3 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View file

@ -2,6 +2,7 @@ bin/
*Darwin.* *Darwin.*
install_manifest.txt install_manifest.txt
obj/
*.dis *.dis
*.o *.o
*.dylib *.dylib

View file

@ -13,7 +13,7 @@ endif
ifeq ($(config),debug) ifeq ($(config),debug)
RESCOMP = windres RESCOMP = windres
TARGETDIR = bin/Debug TARGETDIR = bin/Debug
TARGET = $(TARGETDIR)/HelloWorld TARGET = $(TARGETDIR)/CppCmds
OBJDIR = obj/Debug OBJDIR = obj/Debug
DEFINES += -DDEBUG -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ DEFINES += -DDEBUG -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__
INCLUDES += -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 INCLUDES += -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0
@ -40,7 +40,7 @@ endif
ifeq ($(config),release) ifeq ($(config),release)
RESCOMP = windres RESCOMP = windres
TARGETDIR = bin/Release TARGETDIR = bin/Release
TARGET = $(TARGETDIR)/HelloWorld TARGET = $(TARGETDIR)/CppCmds
OBJDIR = obj/Release OBJDIR = obj/Release
DEFINES += -DNDEBUG -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ DEFINES += -DNDEBUG -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__
INCLUDES += -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 INCLUDES += -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0
@ -99,7 +99,7 @@ ifeq (.exe,$(findstring .exe,$(ComSpec)))
endif endif
$(TARGET): $(GCH) ${CUSTOMFILES} $(OBJECTS) $(LDDEPS) $(RESOURCES) | $(TARGETDIR) $(TARGET): $(GCH) ${CUSTOMFILES} $(OBJECTS) $(LDDEPS) $(RESOURCES) | $(TARGETDIR)
@echo Linking HelloWorld @echo Linking CppCmds
$(SILENT) $(LINKCMD) $(SILENT) $(LINKCMD)
$(POSTBUILDCMDS) $(POSTBUILDCMDS)
@ -122,7 +122,7 @@ else
endif endif
clean: clean:
@echo Cleaning HelloWorld @echo Cleaning CppCmds
ifeq (posix,$(SHELLTYPE)) ifeq (posix,$(SHELLTYPE))
$(SILENT) rm -f $(TARGET) $(SILENT) rm -f $(TARGET)
$(SILENT) rm -rf $(OBJDIR) $(SILENT) rm -rf $(OBJDIR)

View file

@ -2,7 +2,7 @@ workspace "CppLib"
configurations {"Debug", "Release" } configurations {"Debug", "Release" }
system "linux" system "linux"
project "HelloWorld" project "CppCmds"
kind "ConsoleApp" kind "ConsoleApp"
language "c++" language "c++"
targetdir "bin/%{cfg.buildcfg}" targetdir "bin/%{cfg.buildcfg}"