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