Build SciTE with SciteDirectory.properties (MinGW)

80 views
Skip to first unread message

George Hummet

unread,
Nov 26, 2017, 2:14:52 PM11/26/17
to scite-interest
For anyone using SciTE or intending to compile from Source; heres a SciTEDirectory.properties file:
enjoy, Thorsten.

###############################################
#
#	MinGW Project File for use with Scintilla and SciTE
#	See https://groups.google.com/forum/#!forum/scite-interest
#
#	@author: Mar...@HabMalNeFrage.de
#  
#	Note: Pathes in this File have to be related to $(SciteDirectoryHome)
#	Info: commence scite/src/scite.properties !
#
###############################################

ccopts=-pedantic  --std=gnu++11 -Og
cc=g++ $(ccopts)
ccc=gcc $(ccopts)


#~--- Commands

if PLAT_WIN
	includes=-I $(SciteDirectoryHome)\scintilla\include -I $(SciteDirectoryHome)\scite\src -I $(SciteDirectoryHome)\scite\lua\include
	make.cmd.scintilla=cmd /c cd "$(SciteDirectoryHome)\scintilla\win32" && mingw32-make
	make.cmd.scite=cd "$(SciteDirectoryHome)\scite\win32\" && mingw32-make
	
	#command.build.directory.*=$(SciteDirectoryHome)\scite\win32
	command.build.*=$(make.cmd.scintilla) && $(make.cmd.scite)
	
	command.compile.*.cxx="cmd /c $(ccc)  -c $(FileNameExt) -o $(FileName).o $(includes)"
	command.compile.*.rc="windres $(FileNameExt) $(FileName).o $(includes)"

	command.clean.*=cmd /c cd scite && del /S /Q *.exe *.o *.dll *.res *.map *.plist
	command.go.*=cmd /c "$(SciteDirectoryHome)\scite\bin\SciTE.exe"
	# To make the Go command both compile (if needed) and execute, use this setting:
	#command.go.needs.*=$(make.cmd.scite)

	command.help.$(file.patterns.cpp)=$(CurrentWord)!C:\Program Files\Microsoft Visual Studio\MSDN98\98VSa\1033\MSDNVS6A.COL
	command.help.subsystem.$(file.patterns.cpp)=4

if PLAT_GTK
	includes=-I $(SciteDirectoryHome)/scintilla/include -I $(SciteDirectoryHome)/scite/src -I $(SciteDirectoryHome)/scite/lua/include
	make.cmd.scintilla=cd "$(SciteDirectoryHome)/scintilla/gtk" && make
	make.cmd.scite=cd "$(SciteDirectoryHome)/scite/gtk" && make
	
	#command.build.directory.*=$(SciteDirectoryHome)/scite/gtk
	command.build.*=$(make.cmd.scintilla) && $(make.cmd.scite)
	
	command.compile.*.cxx=$(ccc)  -c $(FilePath) -o $(FileName).o $(includes)

	command.clean.*=find scite -name "*.o"  -delete
	command.go.*="$(SciteDirectoryHome)/scite/bin/SciTE"
	# To make the Go command both compile (if needed) and execute, use this setting:
	#command.go.needs.*=$(make.cmd.scite)

	command.help.$(file.patterns.cpp)=man $(CurrentWord) | col -b

[ various ]
output.horizontal.scroll.width.tracking=1
selection.always.visible=1
open.dialog.in.file.directory=1
view.whitespace=0
Reply all
Reply to author
Forward
0 new messages