xref: /haiku/src/kits/mail/Jamfile (revision 4cc4f7bb1845789f95d5ebc68cbb0b859e72f6ff)
1SubDir HAIKU_TOP src kits mail ;
2
3UsePrivateHeaders mail shared ;
4UsePublicHeaders [ FDirName add-ons mail_daemon ] ;
5
6if $(CHECK_MALLOC) {
7	SubDirC++Flags -D_NO_INLINE_ASM -fcheck-memory-usage ;
8}
9
10SubDirC++Flags -D_BUILDING_mail=1 ;
11
12UsePrivateHeaders textencoding ;
13
14
15local sources =
16	c_mail_api.cpp
17	crypt.cpp
18	des.c
19	FileConfigView.cpp
20	HaikuMailFormatFilter.cpp
21	mail_encoding.c
22	mail_util.cpp
23	MailAttachment.cpp
24	MailComponent.cpp
25	MailContainer.cpp
26	MailDaemon.cpp
27	MailMessage.cpp
28	MailProtocol.cpp
29	MailSettings.cpp
30	NodeMessage.cpp
31	numailkit.cpp
32	ProtocolConfigView.cpp
33	ServerConnection.cpp
34	StringList.cpp
35;
36
37
38# use OpenSSL, if enabled
39if $(HAIKU_OPENSSL_ENABLED) {
40	SubDirC++Flags -DUSE_SSL ;
41	SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ;
42	Includes [ FGristFiles $(sources) ] : $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ;
43		# Dependency needed to trigger downloading/unzipping the package before
44		# compiling the files.
45	SetupFeatureObjectsDir ssl ;
46} else {
47	SetupFeatureObjectsDir no-ssl ;
48}
49
50
51SharedLibrary libmail.so :
52	$(sources)
53	:
54	be
55	libtextencoding.so
56	tracker
57	$(TARGET_LIBSTDC++)
58	$(TARGET_NETWORK_LIBS)
59	$(TARGET_SELECT_UNAME_ETC_LIB)
60	$(HAIKU_OPENSSL_LIBS)
61;
62