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 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 60AddResources JPEG2000Translator : JPEG2000Translator.rdef ; 61 62local architectureObject ; 63for architectureObject in [ MultiArchSubDirSetup ] { 64 on $(architectureObject) { 65 # Let Jam know where to find some of our source files 66 SEARCH_SOURCE += [ FDirName $(SUBDIR) libjasper ] ; 67 68 ObjectCcFlags [ FGristFiles $(jasper_files:S=$(SUFOBJ)) ] : -w ; 69 70 Translator [ MultiArchDefaultGristFiles JPEG2000Translator ] : 71 72 # JPEG2000Translator 73 JPEG2000Translator.cpp 74 75 $(jasper_files) 76 77 : be translation 78 [ MultiArchDefaultGristFiles libtranslatorsutils.a ] 79 $(TARGET_LIBSUPC++) localestub 80 : true 81 ; 82 } 83} 84 85DoCatalogs JPEG2000Translator : 86 x-vnd.Haiku-JPEG2000Translator 87 : 88 JPEG2000Translator.h 89 JPEG2000Translator.cpp 90; 91