xref: /haiku/src/kits/mail/Jamfile (revision ca8ed5ea660fb6275799a3b7f138b201c41a667b)
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.cpp
23	mail_util.cpp
24	MailAttachment.cpp
25	MailComponent.cpp
26	MailContainer.cpp
27	MailDaemon.cpp
28	MailFilter.cpp
29	MailMessage.cpp
30	MailProtocol.cpp
31	MailSettings.cpp
32	MailSettingsView.cpp
33	NodeMessage.cpp
34	numailkit.cpp
35	ProtocolConfigView.cpp
36;
37
38
39local architectureObject ;
40for architectureObject in [ MultiArchSubDirSetup ] {
41	on $(architectureObject) {
42		# use OpenSSL, if enabled
43		if [ FIsBuildFeatureEnabled openssl ] {
44			SubDirC++Flags -DUSE_SSL ;
45			UseBuildFeatureHeaders openssl ;
46			Includes [ FGristFiles $(sources) ]
47				: [ BuildFeatureAttribute openssl : headers ] ;
48				# Dependency needed to trigger downloading/unzipping the package before
49				# compiling the files.
50			SetupFeatureObjectsDir ssl ;
51		} else {
52			SetupFeatureObjectsDir no-ssl ;
53		}
54
55		local libmail = [ MultiArchDefaultGristFiles libmail.so ] ;
56		AddResources $(libmail) : libmail.rdef ;
57
58		SharedLibrary $(libmail) :
59			$(sources)
60			:
61			be bnetapi textencoding tracker
62			[ TargetLibstdc++ ]
63			$(TARGET_NETWORK_LIBS)
64			$(TARGET_SELECT_UNAME_ETC_LIB)
65			[ BuildFeatureAttribute openssl : libraries ]
66			localestub
67			;
68	}
69}
70
71
72DoCatalogs libmail.so :
73	x-vnd.Haiku-libmail
74	:
75	FileConfigView.cpp
76	ProtocolConfigView.cpp
77;
78