1SubDir HAIKU_TOP src add-ons translators icns ; 2 3SetSubDirSupportedPlatformsBeOSCompatible ; 4 5SubDirSysHdrs [ FDirName $(SUBDIR) openjpeg ] ; 6SubDirSysHdrs [ FDirName $(SUBDIR) libicns ] ; 7 8SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) shared ] ; 9 #for BaseTranslator.h and friends 10 11SubDirC++Flags [ FDefines BEOS_R5_COMPATIBLE ] ; 12 13local openjpeg_files = 14 bio.c 15 cio.c 16 dwt.c 17 event.c 18 image.c 19 j2k.c 20 j2k_lib.c 21 jp2.c 22 jpt.c 23 mct.c 24 mqc.c 25 openjpeg.c 26 pi.c 27 raw.c 28 t1.c 29 t2.c 30 tcd.c 31 tgt.c 32 cidx_manager.c 33 phix_manager.c 34 ppix_manager.c 35 thix_manager.c 36 tpix_manager.c 37 ; 38 39ObjectCcFlags [ FGristFiles $(openjpeg_files:S=$(SUFOBJ)) ] : -w ; 40 41local libicns_files = 42 icns_debug.c 43 icns_element.c 44 icns_family.c 45 icns_image.c 46 icns_io.c 47 icns_jp2.c 48 icns_png.c 49 icns_rle24.c 50 icns_utils.c 51 ; 52 53ObjectCcFlags [ FGristFiles $(libicns_files:S=$(SUFOBJ)) ] : -w ; 54 55AddResources ICNSTranslator : ICNSTranslator.rdef ; 56 57local architectureObject ; 58for architectureObject in [ MultiArchSubDirSetup ] { 59 on $(architectureObject) { 60 # Let Jam know where to find some of our source files 61 SEARCH_SOURCE += [ FDirName $(SUBDIR) openjpeg ] ; 62 SEARCH_SOURCE += [ FDirName $(SUBDIR) libicns ] ; 63 64 UseBuildFeatureHeaders libpng ; 65 Includes [ FGristFiles icns_png.c ] 66 : [ BuildFeatureAttribute libpng : headers ] ; 67 Translator [ MultiArchDefaultGristFiles ICNSTranslator ] : 68 69 # ICNSTranslator 70 ICNSTranslator.cpp 71 ICNSLoader.cpp 72 ConfigView.cpp 73 main.cpp 74 75 $(openjpeg_files) 76 77 $(libicns_files) 78 79 : be translation 80 [ MultiArchDefaultGristFiles libtranslatorsutils.a ] 81 $(TARGET_LIBSUPC++) 82 [ BuildFeatureAttribute libpng : library ] 83 localestub 84 : true 85 ; 86 } 87} 88 89DoCatalogs ICNSTranslator : 90 x-vnd.Haiku-ICNSTranslator 91 : 92 ConfigView.cpp 93 ICNSTranslator.h 94 ICNSTranslator.cpp 95; 96