1SubDir HAIKU_TOP src add-ons mail_daemon outbound_protocols smtp ; 2 3 4UsePublicHeaders [ FDirName add-ons mail_daemon ] ; 5UsePrivateHeaders mail shared ; 6 7SubDirHdrs [ FDirName $(HAIKU_TOP) headers os add-ons mail_daemon ] ; 8 9local sources = 10 ConfigView.cpp 11 smtp.cpp 12 md5c.c 13; 14 15# use OpenSSL, if enabled 16if [ FIsBuildFeatureEnabled openssl ] { 17 SubDirC++Flags -DUSE_SSL ; 18 UseBuildFeatureHeaders openssl ; 19 Includes [ FGristFiles $(sources) ] 20 : [ BuildFeatureAttribute openssl : headers ] ; 21 # Dependency needed to trigger downloading/unzipping the package before 22 # compiling the files. 23 SetupFeatureObjectsDir ssl ; 24} else { 25 SetupFeatureObjectsDir no-ssl ; 26} 27 28AddResources SMTP : SMTP.rdef ; 29 30Addon SMTP 31 : $(sources) 32 : be libmail.so $(TARGET_NETWORK_LIBS) $(TARGET_LIBSTDC++) 33 localestub [ BuildFeatureAttribute openssl : libraries ] 34; 35 36DoCatalogs SMTP : 37 x-vnd.Haiku-SMTP 38 : 39 ConfigView.cpp 40 smtp.cpp 41; 42