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