xref: /haiku/src/add-ons/mail_daemon/inbound_protocols/pop3/Jamfile (revision a5a3b2d9a3d95cbae71eaf371708c73a1780ac0d)
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 ]
38		[ TargetLibstdc++ ] [ TargetLibsupc++ ]
39		$(TARGET_NETWORK_LIBS)
40;
41
42DoCatalogs POP3 :
43	x-vnd.Haiku-POP3
44	:
45	ConfigView.cpp
46	POP3.cpp
47;
48