Exemplo n.º 1
0
int vs6_generate()
{
	int i;

	puts("Generating Visual Studio 6 workspace and project files:");

	for (i = 0; i < prj_get_numpackages(); ++i)
	{
		prj_select_package(i);

		printf("...%s\n", prj_get_pkgname());

		if (prj_is_lang("c++") || prj_is_lang("c"))
		{
			vs6_cpp();
		}
		else if (prj_is_lang("c#"))
		{
			puts("** Error: C# projects are not supported by Visual Studio 6");
			return 0;
		}
		else
		{
			printf("** Error: unrecognized language '%s'\n", prj_get_language());
			return 0;
		}
	}

	return writeWorkspace();
}
Exemplo n.º 2
0
bool CMake::writeFiles()
{
  if(!writeWorkspace())
    return false;
  if(!writeProjects())
    return false;
  return true;
}