diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-04-12 15:15:03 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-04-12 15:15:03 +0000 |
| commit | 9100fc0b51969cbb2ae83d1d355bf584dd00d406 (patch) | |
| tree | ebe240ef8545c7ac8787a93cd8120b42c8f9d853 /fluid/ide_maketools.cxx | |
| parent | 9604b556b82f1c858bae5271adf2de8d79461231 (diff) | |
Solved MSWin type conflict UUID
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/ide_maketools.cxx')
| -rw-r--r-- | fluid/ide_maketools.cxx | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/fluid/ide_maketools.cxx b/fluid/ide_maketools.cxx index 68c0872a8..e8d796bda 100644 --- a/fluid/ide_maketools.cxx +++ b/fluid/ide_maketools.cxx @@ -62,11 +62,11 @@ class Maketools_IDE { char *rootDir; char projectName[80]; - Fl_Preferences tgtAppsDB; + Fl_IDE_Prefs tgtAppsDB; int nTgtApps; - Fl_Preferences tgtLibsDB; + Fl_IDE_Prefs tgtLibsDB; int nTgtLibs; - Fl_Preferences tgtTestsDB; + Fl_IDE_Prefs tgtTestsDB; int nTgtTests; Fl_Preferences filesDB; int nFiles; @@ -223,6 +223,15 @@ public: } int writeFluidMakefile(const char *filepath) { + int i, n; + + Fl_Preferences::ID fluidID = tgtAppsDB.find_by_key("name", "Fluid"); + if (!fluidID) { + fprintf(stderr, "Target \"Fluid\" not found!\n"); + return -1; + } + Fl_Target_Prefs fluidDB(fluidID); + FILE *f = fopen(filepath, "wb"); fputs("#\n", f); fputs("# \"$Id: Makefile 6614 2009-01-01 16:11:32Z matt $\"\n", f); @@ -252,6 +261,18 @@ public: fputs("#\n", f); fputs("\n", f); fputs("CPPFILES = \\\n", f); + + Fl_Preferences sourcesDB(fluidDB, "sources"); + n = sourcesDB.groups(); + for (i=0; i<n; i++) { + Fl_Preferences sourceDB(sourcesDB, i); + GET_UUID(refUUID, sourceDB); + Fl_File_Prefs fileDB(filesDB, refUUID); + fprintf(f, "\t%s", fileDB.fullName()); + if (i<n-1) fputs(" \\", f); + fputs("\n", f); + } +/* fputs("\tCodeEditor.cxx \\\n", f); fputs("\tFl_Function_Type.cxx \\\n", f); fputs("\tFl_Group_Type.cxx \\\n", f); @@ -275,6 +296,7 @@ public: fputs("\ttemplate_panel.cxx \\\n", f); fputs("\tundo.cxx \\\n", f); fputs("\twidget_panel.cxx\n", f); +*/ fputs("\n", f); fputs("################################################################\n", f); fputs("\n", f); |
