xref: /haiku/src/add-ons/translators/jpeg2000/Jamfile (revision 99d027cd0238c1d86da86d7c3f4200509ccc61a6)
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
65AddResources JPEG2000Translator : JPEG2000Translator.rdef ;
66
67Translator JPEG2000Translator :
68
69	# JPEG2000Translator
70	JPEG2000Translator.cpp
71
72	$(jasper_files)
73
74	: be translation libtranslatorsutils.a $(TARGET_LIBSUPC++)
75	$(HAIKU_LOCALE_LIBS)
76	: true
77;
78
79DoCatalogs JPEG2000Translator :
80	x-vnd.Haiku-JPEG2000Translator
81	:
82	JPEG2000Translator.h
83	JPEG2000Translator.cpp
84;
85
86Package haiku-translationkit-cvs :
87	JPEG2000Translator :
88	boot home config add-ons Translators ;
89
90