+ # Download the libgc/bdwgc sources
+ var nit_dir = toolcontext.nit_dir or else "."
+ var share_dir = (nit_dir/"share").realpath
+ if not share_dir.file_exists then
+ print "iOS project error: Nit share directory not found, please use the environment variable NIT_DIR"
+ exit 1
+ end
+
+ var bdwgc_dir = "{share_dir}/android-bdwgc/bdwgc"
+ self.bdwgc_dir = bdwgc_dir
+ if not bdwgc_dir.file_exists then
+ toolcontext.exec_and_check(["{share_dir}/android-bdwgc/setup.sh"], "iOS project error")
+ end
+