1SubDir HAIKU_TOP src add-ons translators png ; 2 3SetSubDirSupportedPlatformsBeOSCompatible ; 4 5UseBuildFeatureHeaders libpng ; 6UseBuildFeatureHeaders zlib ; 7SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) shared ] ; 8 9AddResources PNGTranslator : PNGTranslator.rdef ; 10 11if $(TARGET_GCC_VERSION_$(TARGET_PACKAGING_ARCH)[1]) = 2 { 12 SubDirCcFlags -DPNG_NO_PEDANTIC_WARNINGS ; 13} 14 15Includes [ FGristFiles PNGTranslator.cpp PNGView.cpp ] 16 : [ BuildFeatureAttribute libpng : headers ] ; 17 18Translator PNGTranslator : 19 PNGMain.cpp 20 PNGTranslator.cpp 21 PNGView.cpp 22 23 : be translation 24 [ BuildFeatureAttribute libpng : library ] 25 [ BuildFeatureAttribute zlib : library ] 26 $(TARGET_LIBSUPC++) libtranslatorsutils.a 27 localestub 28 : true 29; 30 31DoCatalogs PNGTranslator : 32 x-vnd.Haiku-PNGTranslator 33 : 34 PNGMain.cpp 35 PNGTranslator.cpp 36 PNGView.cpp 37; 38