1SubDir HAIKU_TOP src tests add-ons mail imap ;
2
3UsePrivateHeaders mail shared ;
4SubDirHdrs [ FDirName $(HAIKU_TOP) src tests add-ons kernel file_systems
5	fs_shell ] ;
6SubDirHdrs [ FDirName $(HAIKU_TOP) src add-ons mail_daemon inbound_protocols
7	imap imap_lib ] ;
8
9local libSources = Commands.cpp Protocol.cpp Response.cpp ;
10#IMAPStorage.cpp
11
12# use OpenSSL, if enabled
13if $(HAIKU_BUILD_FEATURE_OPENSSL_ENABLED) {
14	SubDirC++Flags -DUSE_SSL ;
15	SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ;
16	Includes [ FGristFiles $(sources) ] : $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ;
17		# Dependency needed to trigger downloading/unzipping the package before
18		# compiling the files.
19	SetupFeatureObjectsDir ssl ;
20} else {
21	SetupFeatureObjectsDir no-ssl ;
22}
23
24SimpleTest imap_tester :
25	imap_tester.cpp
26	$(libSources)
27
28	# from fs_shell
29	argv.c
30
31	: be [ TargetLibstdc++ ] [ TargetLibsupc++ ] bnetapi mail
32;
33
34SimpleTest rfc3501_encoding_test :
35	rfc3501_encoding_test.cpp
36	$(libSources)
37
38	: be $(TARGET_LIBSTDC++) $(TARGET_LIBSUPC++) bnetapi
39;
40
41SEARCH on [ FGristFiles $(libSources) ]
42	= [ FDirName $(HAIKU_TOP) src add-ons mail_daemon inbound_protocols imap
43		imap_lib ] ;
44
45SEARCH on [ FGristFiles argv.c ] = [ FDirName $(HAIKU_TOP) src tests add-ons
46	kernel file_systems fs_shell ] ;
47