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