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