# Stand-alone "recipe" Jamfile for building Vision for haiku/on/genode
#
# Usage:
#	cd hai-ports/_contrib_remote/Vision/  # cd to this Jamfile, since it stands apart from the rest of the jam hierarchy
#	jam -q -j4


# Vision-specific requirements: a #define and some private headers
DEFINES += VERSION_STRING=\\\"0.10.6-959a5bb9\\\" ;
list_private_headers = interface ;

local hash = 959a5bb9f18975d8246411ff9082cd98325d0b44 ;

# General/mandatory config
app_name		= Vision ;
dload_url		= https://github.com/HaikuArchives/Vision/archive/$(hash).zip ;
patch_set		= patch_set.patch ;
patch_root		= destdir.unpatched/Vision-$(hash) ;
SEARCH_SOURCE	+= . ;  # to find the patch-set  XXX does not work, jam still whines about it
SEARCH_SOURCE	+= destdir/Vision-$(hash)/src ;

list_src =
	Agent.cpp
	ChannelAgent.cpp
	ClickView.cpp
	ClientAgent.cpp
	ClientAgentInputFilter.cpp
	ClientAgentLogger.cpp
	ClientWindow.cpp
	ClientWindowDock.cpp
	ColorSelector.cpp
	ColorSwatch.cpp
	DCCConnect.cpp
	DCCFileWindow.cpp
	DCCHandler.cpp
	HistoryList.cpp
	IconMenu.cpp
	ListAgent.cpp
	#LuaScript.cpp
	MessageAgent.cpp
	NameItem.cpp
	NamesView.cpp
	NetPrefsServerView.cpp
	NetworkMenu.cpp
	NetworkPrefsView.cpp
	NetworkWindow.cpp
	NotifyList.cpp
	NumericFilter.cpp
	ParseCmd.cpp
	ParseCTCP.cpp
	ParseENums.cpp
	ParseEvents.cpp
	PlayButton.cpp
	PrefAliases.cpp
	PrefApp.cpp
	PrefColor.cpp
	PrefCommand.cpp
	PrefDCC.cpp
	PrefEvent.cpp
	PrefFont.cpp
	PrefGeneral.cpp
	PrefLog.cpp
	PrefsWindow.cpp
	Prompt.cpp
	RunView.cpp
	ServerAgent.cpp
	ServerEntryWindow.cpp
	SettingsFile.cpp
	SetupWindow.cpp
	StatusView.cpp
	TestScript.cpp
	Theme.cpp
	URLCrunch.cpp
	Utilities.cpp
	Vision.cpp
	WindowList.cpp
	;

# Jam normally takes care of setting $(LOCATE) on files which already exist, but
# since we download and extract them from an archive, the jam "binding phase"
# does not find them, so we have to do the binding manually:
for src in $(list_src)
{
	LOCATE on $(src) = destdir/Vision-$(hash)/src ;
}


# We may now call the 'generic port engine', parametrized by the above setup
#
include ../Jam_generic.inc ;


