xref: /haiku/src/add-ons/translators/jpeg2000/Jamfile (revision cbe35e2031cb2bfb757422f35006bb9bd382bed1)
1SubDir HAIKU_TOP src add-ons translators jpeg2000 ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4
5# Exclude unwanted formats
6CCFLAGS += -DEXCLUDE_MIF_SUPPORT
7	-DEXCLUDE_PNM_SUPPORT
8	-DEXCLUDE_BMP_SUPPORT
9	-DEXCLUDE_RAS_SUPPORT
10	-DEXCLUDE_JPG_SUPPORT
11	-DEXCLUDE_PGX_SUPPORT ;
12
13# Let Jam know where to find some of our source files
14SEARCH_SOURCE += [ FDirName $(SUBDIR) libjasper ] ;
15
16SubDirC++Flags [ FDefines BEOS_R5_COMPATIBLE ] ;
17
18local jasper_files =
19	# libjasper (Base)
20	jas_debug.c
21	jas_getopt.c
22	jas_image.c
23	jas_init.c
24	jas_malloc.c
25	jas_seq.c
26	jas_stream.c
27	jas_string.c
28	jas_tvp.c
29	jas_version.c
30
31	# libjasper (JP2)
32	jp2_cod.c
33	jp2_dec.c
34	jp2_enc.c
35
36	# libjasper (JPC)
37	jpc_bs.c
38	jpc_cs.c
39	jpc_dec.c
40	jpc_enc.c
41	jpc_math.c
42	jpc_mct.c
43	jpc_mqcod.c
44	jpc_mqdec.c
45	jpc_mqenc.c
46	jpc_qmfb.c
47	jpc_t1cod.c
48	jpc_t1dec.c
49	jpc_t1enc.c
50	jpc_t2cod.c
51	jpc_t2dec.c
52	jpc_t2enc.c
53	jpc_tagtree.c
54	jpc_tsfb.c
55	jpc_util.c
56	;
57
58ObjectCcFlags [ FGristFiles $(jasper_files:S=$(SUFOBJ)) ] : -w ;
59
60Translator JPEG2000Translator :
61
62	# JPEG2000Translator
63	JPEG2000Translator.cpp
64
65	$(jasper_files)
66
67	: be translation
68;
69
70Package haiku-translationkit-cvs :
71	JPEG2000Translator :
72	boot home config add-ons Translators ;
73
74