xref: /haiku/src/kits/mail/Jamfile (revision 0044a8c39ab5721051b6279506d1a8c511e20453)
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	b_mail_message.cpp
17	c_mail_api.cpp
18	crypt.cpp
19	des.c
20	FileConfigView.cpp
21	HaikuMailFormatFilter.cpp
22	mail_encoding.c
23	mail_util.cpp
24	MailAttachment.cpp
25	MailComponent.cpp
26	MailContainer.cpp
27	MailDaemon.cpp
28	MailMessage.cpp
29	MailProtocol.cpp
30	MailSettings.cpp
31	NodeMessage.cpp
32	numailkit.cpp
33	ProtocolConfigView.cpp
34	ServerConnection.cpp
35	StringList.cpp
36;
37
38
39# use OpenSSL, if enabled
40if $(HAIKU_OPENSSL_ENABLED) {
41	SubDirC++Flags -DUSE_SSL ;
42	SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ;
43	Includes [ FGristFiles $(sources) ] : $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ;
44		# Dependency needed to trigger downloading/unzipping the package before
45		# compiling the files.
46	SetupFeatureObjectsDir ssl ;
47} else {
48	SetupFeatureObjectsDir no-ssl ;
49}
50
51AddResources libmail.so : libmail.rdef ;
52
53SharedLibrary libmail.so :
54	$(sources)
55	:
56	be
57	libtextencoding.so
58	tracker
59	$(TARGET_LIBSTDC++)
60	$(TARGET_NETWORK_LIBS)
61	$(TARGET_SELECT_UNAME_ETC_LIB)
62	$(HAIKU_OPENSSL_LIBS)
63	$(HAIKU_LOCALE_LIBS)
64;
65
66
67DoCatalogs libmail.so :
68	x-vnd.Haiku-libmail
69	:
70	FileConfigView.cpp
71	ProtocolConfigView.cpp
72;
73