define pathListSep = ":";
#endif
-#ifdef _DEBUG
+#if defined(_DEBUG) && defined(__WIN32__)
extern int getch(void);
#endif
bool noGlobalSettings = false;
bool noResources = false;
bool noWarnings = false;
- char * overrideObjDir = null;
- char * includemkPath = null;
+ const char * overrideObjDir = null;
+ const char * includemkPath = null;
/*
for(c = 0; c < this.argc; c++)
for(c = 1; c < argc; c++)
{
- char * arg = argv[c];
+ const char * arg = argv[c];
if(arg[0] == '-')
{
if(!strcmpi(arg+1, "make"))
else if(arg[1] == 'i')
{
if(++c < argc)
- ParseDirList(argv[c], optionsCompiler.includeDirs);
+ ParseDirList((char *)argv[c], optionsCompiler.includeDirs);
else
valid = false;
}
else if(arg[1] == 'l')
{
if(++c < argc)
- ParseDirList(argv[c], optionsCompiler.libraryDirs);
+ ParseDirList((char *)argv[c], optionsCompiler.libraryDirs);
else
valid = false;
}
}
if(!epjPath)
valid = false;
-
+
if(!valid)
{
printf($"Syntax:\n");
}
else
{
- char * compiler = getenv("COMPILER");
+ const char * compiler = getenv("COMPILER");
if(!compiler) compiler = "Default";
settingsContainer.Load();
//incref ideSettings;
delete settingsContainer;
// TODO: Command line option to choose between the two
- // or a command line option to not use global settings
+ // or a command line option to not use global settings
//defaultCompiler = MakeDefaultCompiler();
defaultCompiler = ideSettings.GetCompilerConfig(compiler);
// possible TODO: use the workspace to select the active compiler
}
if(valid)
{
- project.GenerateCompilerCf(defaultCompiler);
- project.GenerateCrossPlatformMk();
+ project.GenerateCompilerCf(defaultCompiler, project.topNode.ContainsFilesWithExtension("ec", project.config));
+ project.GenerateCrossPlatformMk(null);
if(project.GenerateMakefile(makePath, noResources, includemkPath, project.config))
{
if(makePath)
// CheckMemory();
delete ideSettings;
-#ifdef _DEBUG
+#if defined(_DEBUG) && defined(__WIN32__)
getch();
#endif
}