diff generator/main.cpp @ 265:6cd923119ab1

Another attempt for supporting MacOS. Now qtjambi_masterinclude.h is generated in the cmake script and contains absolute paths. See, http://www.dsource.org/forums/viewtopic.php?t=4745&sid=2657de5e8bc30456762ad8a4990afeed
author SokoL_SD
date Mon, 07 Sep 2009 15:23:31 +0000
parents 0a29ce1ae854
children d2f48c4cb3e3
line wrap: on
line diff
--- a/generator/main.cpp	Mon Sep 07 11:37:16 2009 +0000
+++ b/generator/main.cpp	Mon Sep 07 15:23:31 2009 +0000
@@ -153,9 +153,14 @@
 
     source_dir = args.value("source-directory");
     fileName = args.value("arg-1");
-    if (!source_dir.isEmpty())
+    if (!source_dir.isEmpty() && !QFileInfo(fileName).exists())
     {
         fileName = source_dir + "/" + fileName;
+        if(!QFileInfo(fileName).exists())
+        {
+            fprintf(stderr, "Master include '%s' is not found", fileName.toAscii().data());
+            return 1;
+        }
     }
 
     typesystemFileName = args.value("arg-2");