From 3b7e7947193f510352206830705519fff109b184 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 19 Feb 2010 11:02:51 +0000 Subject: Improved IDE support: Fluid now compiles fine under Xcode (and all framework on which it depends). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/ide_xcode.cxx | 86 +++++++++++++++++++++++++++++------------------------ 1 file changed, 47 insertions(+), 39 deletions(-) (limited to 'fluid/ide_xcode.cxx') diff --git a/fluid/ide_xcode.cxx b/fluid/ide_xcode.cxx index d6057dbe5..d35e38439 100644 --- a/fluid/ide_xcode.cxx +++ b/fluid/ide_xcode.cxx @@ -188,6 +188,16 @@ public: fprintf(out, "\t\t%s /* %s.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = %s /* %s.framework */; };\n", xcBuildFrameworkID, name, xcProductID, name); fprintf(out, "\t\t%s /* %s.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = %s /* %s.framework */; };\n", xcCopyFrameworkID, name, xcProductID, name); } + Fl_Preferences extsDB(targetDB, "externals"); n = extsDB.groups(); + for (i=0; i\"; };\n", + xcFileID, fileDB.fileName(), fileDB.fileName() ); + filetype = 0L; } else if (strcmp(ext, ".plist")==0) { filetype = "text.plist.xml"; } - fprintf(out, + if (filetype) + fprintf(out, "\t\t%s /* %s */ = {isa = PBXFileReference; fileEncoding = 4; " "lastKnownFileType = %s; name = %s; " "path = ../../%s; sourceTree = SOURCE_ROOT; };\n", xcFileID, fullName, filetype, fullName, pathAndName); } -#if 0 - // write all sources from the given target - Fl_Preferences sourcesDB(targetDB, "sources"); - int i, n = sourcesDB.groups(); - for (i=0; i