xref: /haiku/src/kits/mail/Jamfile (revision 19ae20e67e91fc09cc9fc5c0e60e21e24e7a53eb)
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 libbnetapi.so libtextencoding.so tracker
57	$(TARGET_LIBSTDC++)
58	$(TARGET_NETWORK_LIBS)
59	$(TARGET_SELECT_UNAME_ETC_LIB)
60	$(HAIKU_OPENSSL_LIBS)
61	$(HAIKU_LOCALE_LIBS)
62;
63
64
65DoCatalogs libmail.so :
66	x-vnd.Haiku-libmail
67	:
68	FileConfigView.cpp
69	ProtocolConfigView.cpp
70;
71