SubDir TOP haiku-on-genode sys-icon ;

SetupHeadersHoG ;
SubDirHdrs $(TOP)/haiku-on-genode/headers/private/interface ;  # find Icon.h for IconUtils.cpp
SubDirHdrs $(TOP)/haiku-on-genode/headers/private/shared ;  # find AutoDeleter.h
SubDirHdrs $(TOP)/haiku-on-genode/sys-libroot/interim ;  # find fs_attr.h for IconUtils.cpp
SubDirHdrs $(TOP)/haiku-on-genode/sys-icon/shape ; # find ShapeContainer.h
SubDirHdrs $(TOP)/hai-src/libs/agg ;


if $(LayerLevel) >= 6
{
	# Make the code part of haiku.lib.so (instead of a
	# separate libicon.a? like in upstream)
	#
	SolibFromObjects haiku.lib.so :
		IconUtils.o
		;
	Library haiku.lib.a :
		IconUtils.cpp
		# Careful with this one, it bears the same name as kits/interface-private/Icon.cpp (which is a completely different file!) :
		# Icon.cpp...
		;
}
