xref: /haiku/src/add-ons/translators/jpeg2000/Jamfile (revision 9a6a20d4689307142a7ed26a1437ba47e244e73f)
1SubDir HAIKU_TOP src add-ons translators jpeg2000 ;
2
3SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) shared ] ;
4	#for BaseTranslator.h and friends
5
6# Exclude unwanted formats
7CCFLAGS += -DEXCLUDE_MIF_SUPPORT
8	-DEXCLUDE_PNM_SUPPORT
9	-DEXCLUDE_BMP_SUPPORT
10	-DEXCLUDE_RAS_SUPPORT
11	-DEXCLUDE_JPG_SUPPORT
12	-DEXCLUDE_PGX_SUPPORT ;
13
14AddResources JPEG2000Translator : JPEG2000Translator.rdef ;
15
16local architectureObject ;
17for architectureObject in [ MultiArchSubDirSetup ] {
18	on $(architectureObject) {
19		UseBuildFeatureHeaders jasper ;
20
21		Translator [ MultiArchDefaultGristFiles JPEG2000Translator ] :
22
23			# JPEG2000Translator
24			JPEG2000Translator.cpp
25
26			: be translation
27			[ MultiArchDefaultGristFiles libtranslatorsutils.a ]
28			[ BuildFeatureAttribute jasper : library ]
29			[ TargetLibsupc++ ] localestub
30			: true
31		;
32
33		Includes [ FGristFiles JPEG2000Translator.cpp ]
34			: [ BuildFeatureAttribute jasper : headers ] ;
35	}
36}
37
38DoCatalogs JPEG2000Translator :
39	x-vnd.Haiku-JPEG2000Translator
40	:
41	JPEG2000Translator.h
42	JPEG2000Translator.cpp
43;
44