SubDir HAIKU_TOP src add-ons mail_daemon inbound_protocols pop3 ; if $(TARGET_PLATFORM) != haiku { UsePublicHeaders mail ; } UsePublicHeaders [ FDirName add-ons mail_daemon ] ; UsePrivateHeaders mail shared ; SubDirHdrs [ FDirName $(HAIKU_TOP) headers os add-ons mail_daemon ] ; local sources = ConfigView.cpp MessageIO.cpp pop3.cpp md5c.c ; # use OpenSSL, if enabled if [ FIsBuildFeatureEnabled openssl ] { SubDirC++Flags -DUSE_SSL ; UseBuildFeatureHeaders openssl ; Includes [ FGristFiles $(sources) ] : [ BuildFeatureAttribute openssl : headers ] ; # Dependency needed to trigger downloading/unzipping the package before # compiling the files. SetupFeatureObjectsDir ssl ; } else { SetupFeatureObjectsDir no-ssl ; } AddResources POP3 : POP3.rdef ; Addon POP3 : $(sources) : be libbnetapi.so libmail.so localestub [ BuildFeatureAttribute openssl : libraries ] $(TARGET_LIBSUPC++) $(TARGET_NETWORK_LIBS) ; DoCatalogs POP3 : x-vnd.Haiku-POP3 : ConfigView.cpp pop3.cpp ;