parent
e73fca5a85
commit
f57c69aac6
|
@ -208,15 +208,15 @@ all: $(SCINTILLA_TARGET) $(LEXILLA_TARGET)
|
|||
$(AT)$(MAKE) -f $(firstword $(MAKEFILE_LIST)) $(SUBMAKEFLAGS) binary
|
||||
|
||||
$(BUILD_DIRECTORY):
|
||||
@echo * creating BUILD_DIRECTORY $@
|
||||
@echo + creating BUILD_DIRECTORY $@
|
||||
$(AT)$(MKDIR) $(call normalize-path,$(sort $@ $(patsubst %/,%,$(dir $(CXX_TARGETS) $(RC_TARGETS)))))
|
||||
|
||||
$(SCINTILLA_BUILD_DIRECTORY):
|
||||
@echo * creating SCINTILLA_BUILD_DIRECTORY $@
|
||||
@echo + creating SCINTILLA_BUILD_DIRECTORY $@
|
||||
$(AT)$(MKDIR) $(call normalize-path,$(SCINTILLA_BUILD_DIRECTORY))
|
||||
|
||||
$(LEXILLA_BUILD_DIRECTORY):
|
||||
@echo * creating LEXILLA_BUILD_DIRECTORY $@
|
||||
@echo + creating LEXILLA_BUILD_DIRECTORY $@
|
||||
$(AT)$(MKDIR) $(call normalize-path,$(LEXILLA_BUILD_DIRECTORY))
|
||||
|
||||
ifeq "$(MAKELEVEL)" "0"
|
||||
|
@ -231,47 +231,47 @@ $(LEXILLA_TARGET): | $(BUILD_DIRECTORY) $(LEXILLA_BUILD_DIRECTORY)
|
|||
$(AT)$(MAKE) $(SUBMAKEFLAGS) -C $(LEXILLA_DIRECTORY)/src DIR_O=$(LEXILLA_BUILD_PATH) LIBLEXILLA=$(LEXILLA_TARGET_PATH) $(LEXILLA_TARGET_PATH)
|
||||
|
||||
binary: $(TARGET_BINARY) data
|
||||
@echo *** $(TARGET_CPU) $(BUILD_TYPE) : $(CURDIR)/$(TARGET_BINARY) ***
|
||||
@echo +++ $(TARGET_CPU) $(BUILD_TYPE) : $(CURDIR)/$(TARGET_BINARY) ***
|
||||
|
||||
$(CXX_TARGETS): $(BUILD_DIRECTORY)/%.o: %.cpp | $(BUILD_DIRECTORY)
|
||||
@echo * compiling $<
|
||||
@echo + compiling $<
|
||||
$(AT)$(CXX) $(CXXFLAGS) $(addprefix -I,$(CPP_PATH)) $(addprefix -D,$(CPP_DEFINE)) -MMD -c -o $@ $<
|
||||
|
||||
$(RC_TARGETS): $(BUILD_DIRECTORY)/%.res: %.rc | $(BUILD_DIRECTORY)
|
||||
@echo * compiling $<
|
||||
@echo + compiling $<
|
||||
$(AT)$(RC) $(RCFLAGS) $(addprefix -I,$(CPP_PATH)) $(addprefix -D,$(CPP_DEFINE)) -O coff -o $@ -i $<
|
||||
|
||||
ifeq "$(TARGET_CPU)" "i686"
|
||||
$(TARGET_BINARY): $(BUILD_DIRECTORY)/libsensapi.a
|
||||
$(BUILD_DIRECTORY)/libsensapi.a: | $(BUILD_DIRECTORY)
|
||||
@echo * generating $@
|
||||
@echo + generating $@
|
||||
$(AT)gendef $(call normalize-path,$(firstword $(wildcard $(WIN_DIR)/syswow64/SensApi.dll $(WIN_DIR)/system32/SensApi.dll)))
|
||||
$(AT)dlltool -mi386 -f--32 -d SensApi.def -k -l $(call normalize-path,$@)
|
||||
$(AT)$(RM) SensApi.def
|
||||
endif
|
||||
|
||||
$(TARGET_DIRECTORY):
|
||||
@echo * creating TARGET_DIRECTORY $@
|
||||
@echo + creating TARGET_DIRECTORY $@
|
||||
$(AT)$(MKDIR) $(call normalize-path,$@)
|
||||
|
||||
$(TARGET_BINARY): $(CXX_TARGETS) $(RC_TARGETS) $(SCINTILLA_TARGET) $(LEXILLA_TARGET) | $(TARGET_DIRECTORY)
|
||||
@echo * linking $@
|
||||
@echo + linking $@
|
||||
$(AT)$(LD) $(LDFLAGS) $(filter-out %.a,$^) $(addprefix -L,$(LD_PATH)) $(addprefix -l,$(LD_LINK)) -static -o $@
|
||||
|
||||
data: $(patsubst %/,%,$(SRC_DATA) $(BIN_DATA) $(INSTALLER_DATA))
|
||||
|
||||
$(patsubst %/,%,$(filter %/,$(SRC_DATA))): $(TARGET_DIRECTORY)/%: $(SRC_DIRECTORY)/% | $(TARGET_DIRECTORY)
|
||||
@echo * copying $@
|
||||
@echo + copying $@
|
||||
$(AT)$(CPDIR) $(call normalize-path,$< $@)
|
||||
$(filter-out %/,$(SRC_DATA)): $(TARGET_DIRECTORY)/%: $(SRC_DIRECTORY)/% | $(TARGET_DIRECTORY)
|
||||
@echo * copying $@
|
||||
@echo + copying $@
|
||||
$(AT)$(CP) $(call normalize-path,$< $@)
|
||||
|
||||
$(patsubst %/,%,$(filter %/,$(BIN_DATA))): $(TARGET_DIRECTORY)/%: $(BIN_DIRECTORY)/% | $(TARGET_DIRECTORY)
|
||||
@echo * copying $@
|
||||
@echo + copying $@
|
||||
$(AT)$(CPDIR) $(call normalize-path,$< $@)
|
||||
$(filter-out %/,$(BIN_DATA)): $(TARGET_DIRECTORY)/%: $(BIN_DIRECTORY)/% | $(TARGET_DIRECTORY)
|
||||
@echo * copying $@
|
||||
@echo + copying $@
|
||||
$(AT)$(CP) $(call normalize-path,$< $@)
|
||||
|
||||
$(TARGET_DIRECTORY)/autoCompletion: $(INSTALLER_DIRECTORY)/APIs
|
||||
|
@ -279,10 +279,10 @@ $(TARGET_DIRECTORY)/functionList: $(INSTALLER_DIRECTORY)/functionList
|
|||
$(TARGET_DIRECTORY)/localization: $(INSTALLER_DIRECTORY)/nativeLang
|
||||
$(TARGET_DIRECTORY)/themes: $(INSTALLER_DIRECTORY)/themes
|
||||
$(patsubst %/,%,$(filter %/,$(INSTALLER_DATA))): | $(TARGET_DIRECTORY)
|
||||
@echo * copying $@
|
||||
@echo + copying $@
|
||||
$(AT)$(CPDIR) $(call normalize-path,$< $@)
|
||||
$(filter-out %/,$(INSTALLER_DATA)): | $(TARGET_DIRECTORY)
|
||||
@echo * copying $@
|
||||
@echo + copying $@
|
||||
$(AT)$(CP) $(call normalize-path,$< $@)
|
||||
|
||||
clean:
|
||||
|
|
|
@ -106,7 +106,6 @@ SET(src_files
|
|||
./WinControls/FunctionList/functionParser.cpp
|
||||
./ScintillaComponent/GoToLineDlg.cpp
|
||||
./WinControls/DockingWnd/Gripper.cpp
|
||||
./MISC/PluginsManager/IDAllocator.cpp
|
||||
./WinControls/ImageListSet/ImageListSet.cpp
|
||||
./uchardet/JpCntx.cpp
|
||||
./uchardet/LangBulgarianModel.cpp
|
||||
|
@ -382,6 +381,7 @@ SET(rcFiles
|
|||
IF (WIN32)
|
||||
SET(option WIN32)
|
||||
SET(win32_LIBRARIES comctl32 shlwapi dbghelp version crypt32 wintrust sensapi wininet imm32 msimg32 uxtheme)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
if ( MSVC )
|
||||
#do not use for mingw builds
|
||||
SET(CMAKE_CXX_FLAGS "/EHa /MP /W4")
|
||||
|
@ -390,7 +390,7 @@ if ( MSVC )
|
|||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
|
||||
else ( MSVC )
|
||||
# For possible MinGW compilation
|
||||
SET(CMAKE_CXX_FLAGS "-include../gcc/gcc-fixes.h -std=c++17 -fpermissive -municode")
|
||||
SET(CMAKE_CXX_FLAGS "-include../gcc/gcc-fixes.h -std=c++20 -fpermissive -municode")
|
||||
SET(defs -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0600 -D_USE_64BIT_TIME_T -DTIXML_USE_STL -DTIXMLA_USE_STL )
|
||||
endif ( MSVC )
|
||||
ENDIF (WIN32)
|
||||
|
|
Loading…
Reference in New Issue