SubDir HAIKU_TOP src tests bin makeudfimage ;

SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;

UsePublicHeaders add-ons/file_system ;			# For fsproto.h
UsePrivateHeaders [ FDirName kernel util ] ;	# For kernel_cpp.h
SubDirHdrs [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems udf ] ;
SubDirHdrs [ FDirName $(HAIKU_TOP) src bin makeudfimage ] ;

UnitTestLib libmakeudfimagetest.so
	: MakeudfimageTestAddon.cpp
        # test files
		AllocatorTest.cpp
		
		# makeudfimage files
		Allocator.cpp
		PhysicalPartitionAllocator.cpp
		
		# udf files
		UdfDebug.cpp
		UdfString.cpp
		UdfStructures.cpp
		Utils.cpp

	: be $(TARGET_LIBSTDC++)
;

SEARCH on [ FGristFiles Allocator.cpp PhysicalPartitionAllocator.cpp ]
	= [ FDirName $(HAIKU_TOP) src bin makeudfimage ] ;
SEARCH on [ FGristFiles UdfDebug.cpp UdfString.cpp UdfStructures.cpp Utils.cpp ] #DString.cpp UdfDebug.cpp UdfString.cpp UdfStructures.cpp Utils.cpp ]
	= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems udf ] ;
