xref: /haiku/src/add-ons/mail_daemon/inbound_protocols/pop3/Jamfile (revision 040a81419dda83d1014e9dc94936a4cb3f027303)
1SubDir HAIKU_TOP src add-ons mail_daemon inbound_protocols pop3 ;
2
3if $(TARGET_PLATFORM) != haiku {
4	UsePublicHeaders mail ;
5}
6
7UsePublicHeaders [ FDirName add-ons mail_daemon ] ;
8UsePrivateHeaders mail shared ;
9
10SubDirHdrs [ FDirName $(HAIKU_TOP) headers os add-ons mail_daemon ] ;
11
12local sources =
13	ConfigView.cpp
14	MessageIO.cpp
15	pop3.cpp
16	md5c.c
17;
18
19# use OpenSSL, if enabled
20if [ FIsBuildFeatureEnabled openssl ] {
21	SubDirC++Flags -DUSE_SSL ;
22	UseBuildFeatureHeaders openssl ;
23	Includes [ FGristFiles $(sources) ]
24		: [ BuildFeatureAttribute openssl : headers ] ;
25		# Dependency needed to trigger downloading/unzipping the package before
26		# compiling the files.
27	SetupFeatureObjectsDir ssl ;
28} else {
29	SetupFeatureObjectsDir no-ssl ;
30}
31
32AddResources POP3 : POP3.rdef ;
33
34Addon POP3
35	: $(sources)
36	: be libbnetapi.so libmail.so localestub
37		[ BuildFeatureAttribute openssl : libraries ] $(TARGET_LIBSUPC++)
38		$(TARGET_NETWORK_LIBS)
39;
40
41DoCatalogs POP3 :
42	x-vnd.Haiku-POP3
43	:
44	ConfigView.cpp
45	pop3.cpp
46;
47