1SubDir HAIKU_TOP src add-ons mail_daemon inbound_protocols imap ; 2 3SetSubDirSupportedPlatformsBeOSCompatible ; 4 5if $(TARGET_PLATFORM) != haiku { 6 UsePublicHeaders mail ; 7} 8 9UsePublicHeaders [ FDirName add-ons mail_daemon ] ; 10UsePrivateHeaders mail ; 11 12SubDirHdrs [ FDirName $(HAIKU_TOP) headers os add-ons mail_daemon ] ; 13 14local sources = 15 imap_client.cpp 16 imap_config.cpp 17 NestedString.cpp 18; 19 20# use OpenSSL, if enabled 21if $(HAIKU_OPENSSL_ENABLED) { 22 SubDirC++Flags -DUSE_SSL ; 23 SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ; 24 Includes [ FGristFiles $(sources) ] : $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ; 25 # Dependency needed to trigger downloading/unzipping the package before 26 # compiling the files. 27 SetupFeatureObjectsDir ssl ; 28} else { 29 SetupFeatureObjectsDir no-ssl ; 30} 31 32Addon IMAP 33 : $(sources) 34 : be libmail.so $(TARGET_NETWORK_LIBS) $(HAIKU_OPENSSL_LIBS) 35; 36 37Package haiku-maildaemon-cvs : 38 IMAP : 39 boot home config add-ons mail_daemon inbound_protocols 40; 41