SubDir HAIKU_TOP src add-ons translators icns ; SetSubDirSupportedPlatformsBeOSCompatible ; SubDirSysHdrs [ FDirName $(SUBDIR) openjpeg ] ; SubDirSysHdrs [ FDirName $(SUBDIR) libicns ] ; SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) shared ] ; #for BaseTranslator.h and friends SubDirC++Flags [ FDefines BEOS_R5_COMPATIBLE ] ; local openjpeg_files = bio.c cio.c dwt.c event.c image.c j2k.c j2k_lib.c jp2.c jpt.c mct.c mqc.c openjpeg.c pi.c raw.c t1.c t2.c tcd.c tgt.c cidx_manager.c phix_manager.c ppix_manager.c thix_manager.c tpix_manager.c ; ObjectCcFlags [ FGristFiles $(openjpeg_files:S=$(SUFOBJ)) ] : -w ; local libicns_files = icns_debug.c icns_element.c icns_family.c icns_image.c icns_io.c icns_jp2.c icns_png.c icns_rle24.c icns_utils.c ; ObjectCcFlags [ FGristFiles $(libicns_files:S=$(SUFOBJ)) ] : -w ; AddResources ICNSTranslator : ICNSTranslator.rdef ; local architectureObject ; for architectureObject in [ MultiArchSubDirSetup ] { on $(architectureObject) { # Let Jam know where to find some of our source files SEARCH_SOURCE += [ FDirName $(SUBDIR) openjpeg ] ; SEARCH_SOURCE += [ FDirName $(SUBDIR) libicns ] ; UseBuildFeatureHeaders libpng ; Includes [ FGristFiles icns_png.c ] : [ BuildFeatureAttribute libpng : headers ] ; Translator [ MultiArchDefaultGristFiles ICNSTranslator ] : # ICNSTranslator ICNSTranslator.cpp ICNSLoader.cpp ConfigView.cpp main.cpp $(openjpeg_files) $(libicns_files) : be translation [ MultiArchDefaultGristFiles libtranslatorsutils.a ] $(TARGET_LIBSUPC++) [ BuildFeatureAttribute libpng : library ] localestub : true ; } } DoCatalogs ICNSTranslator : x-vnd.Haiku-ICNSTranslator : ConfigView.cpp ICNSTranslator.h ICNSTranslator.cpp ;