Mercurial > projects > qtd
comparison 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 |
comparison
equal
deleted
inserted
replaced
264:da7c867ef2ef | 265:6cd923119ab1 |
---|---|
151 } | 151 } |
152 } | 152 } |
153 | 153 |
154 source_dir = args.value("source-directory"); | 154 source_dir = args.value("source-directory"); |
155 fileName = args.value("arg-1"); | 155 fileName = args.value("arg-1"); |
156 if (!source_dir.isEmpty()) | 156 if (!source_dir.isEmpty() && !QFileInfo(fileName).exists()) |
157 { | 157 { |
158 fileName = source_dir + "/" + fileName; | 158 fileName = source_dir + "/" + fileName; |
159 if(!QFileInfo(fileName).exists()) | |
160 { | |
161 fprintf(stderr, "Master include '%s' is not found", fileName.toAscii().data()); | |
162 return 1; | |
163 } | |
159 } | 164 } |
160 | 165 |
161 typesystemFileName = args.value("arg-2"); | 166 typesystemFileName = args.value("arg-2"); |
162 if (args.contains("arg-3")) | 167 if (args.contains("arg-3")) |
163 displayHelp(gs); | 168 displayHelp(gs); |