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