SubDir HAIKU_TOP src add-ons translators jpeg2000 ; SetSubDirSupportedPlatformsBeOSCompatible ; SubDirSysHdrs [ FDirName $(SUBDIR) libjasper ] ; SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) shared ] ; #for BaseTranslator.h and friends # Exclude unwanted formats CCFLAGS += -DEXCLUDE_MIF_SUPPORT -DEXCLUDE_PNM_SUPPORT -DEXCLUDE_BMP_SUPPORT -DEXCLUDE_RAS_SUPPORT -DEXCLUDE_JPG_SUPPORT -DEXCLUDE_PGX_SUPPORT ; SubDirC++Flags [ FDefines BEOS_R5_COMPATIBLE ] ; local jasper_files = # libjasper (Base) jas_debug.c jas_getopt.c jas_image.c jas_init.c jas_malloc.c jas_seq.c jas_stream.c jas_string.c jas_tvp.c jas_version.c # libjasper (JP2) jp2_cod.c jp2_dec.c jp2_enc.c # libjasper (JPC) jpc_bs.c jpc_cs.c jpc_dec.c jpc_enc.c jpc_math.c jpc_mct.c jpc_mqcod.c jpc_mqdec.c jpc_mqenc.c jpc_qmfb.c jpc_t1cod.c jpc_t1dec.c jpc_t1enc.c jpc_t2cod.c jpc_t2dec.c jpc_t2enc.c jpc_tagtree.c jpc_tsfb.c jpc_util.c ; AddResources JPEG2000Translator : JPEG2000Translator.rdef ; local architectureObject ; for architectureObject in [ MultiArchSubDirSetup ] { on $(architectureObject) { # Let Jam know where to find some of our source files SEARCH_SOURCE += [ FDirName $(SUBDIR) libjasper ] ; ObjectCcFlags [ FGristFiles $(jasper_files:S=$(SUFOBJ)) ] : -w ; Translator [ MultiArchDefaultGristFiles JPEG2000Translator ] : # JPEG2000Translator JPEG2000Translator.cpp $(jasper_files) : be translation [ MultiArchDefaultGristFiles libtranslatorsutils.a ] $(TARGET_LIBSUPC++) localestub : true ; } } DoCatalogs JPEG2000Translator : x-vnd.Haiku-JPEG2000Translator : JPEG2000Translator.h JPEG2000Translator.cpp ;