⛏️ index : haiku.git

SubDir HAIKU_TOP src kits debug ;

UsePrivateHeaders debug ;
UsePrivateHeaders kernel ;
	# for <util/DoublyLinkedList.h>
UsePrivateHeaders libroot ;
UsePrivateHeaders runtime_loader ;
UsePrivateHeaders shared ;
SubDirHdrs [ FDirName $(SUBDIR) arch ] ;

local architectureObject ;
for architectureObject in [ MultiArchSubDirSetup ] {
	on $(architectureObject) {
		local architecture = $(TARGET_PACKAGING_ARCH) ;

		UsePrivateSystemHeaders ;

		SEARCH_SOURCE += [ FDirName $(SUBDIR) arch $(TARGET_ARCH) ] ;

		local libroot = [ MultiArchConditionalGristFiles libdebug.so
			: : $(architecture) ] ;

		SharedLibrary [ MultiArchDefaultGristFiles libdebug.so ] :
			debug_support.cpp
			DebugContext.cpp
			DebugEventStream.cpp
			DebugLooper.cpp
			DebugMessageHandler.cpp
			Image.cpp
			SymbolLookup.cpp
			TeamDebugger.cpp

			# architecture specific
			arch_debug_support.cpp

			: be [ TargetLibsupc++ ]
			;
	}
}