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