xref: /haiku/src/add-ons/mail_daemon/outbound_protocols/smtp/Jamfile (revision adb0d19d561947362090081e81d90dde59142026)
1SubDir HAIKU_TOP src add-ons mail_daemon outbound_protocols smtp ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4
5if $(TARGET_PLATFORM) != haiku {
6	UsePublicHeaders mail ;
7}
8
9UsePublicHeaders [ FDirName add-ons mail_daemon ] ;
10UsePrivateHeaders mail ;
11
12SubDirHdrs [ FDirName $(HAIKU_TOP) headers os add-ons mail_daemon ] ;
13
14local sources =
15	smtp.cpp
16	md5c.c
17;
18
19# use OpenSSL, if enabled
20if $(HAIKU_OPENSSL_ENABLED) {
21	SubDirC++Flags -DUSE_SSL ;
22	SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ;
23	Includes [ FGristFiles $(sources) ] : $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ;
24		# Dependency needed to trigger downloading/unzipping the package before
25		# compiling the files.
26	SetupFeatureObjectsDir ssl ;
27} else {
28	SetupFeatureObjectsDir no-ssl ;
29}
30
31Addon SMTP
32	: $(sources)
33	: be libmail.so $(TARGET_NETWORK_LIBS) $(TARGET_LIBSTDC++)
34		$(HAIKU_OPENSSL_LIBS)
35;
36
37Package haiku-maildaemon-cvs :
38	SMTP :
39	boot home config add-ons mail_daemon outbound_protocols
40;
41