int vs2005_generate(int target) { int p; if (target == 2005) { vs_setversion(VS2005); printf("Generating Visual Studio 2005 solution and project files:\n"); } else { vs_setversion(VS2008); printf("Generating Visual Studio 2008 solution and project files:\n"); } /* Assign GUIDs to packages */ vs_assign_guids(); /* Generate the project files */ for (p = 0; p < prj_get_numpackages(); ++p) { prj_select_package(p); prj_select_config(0); printf("...%s\n", prj_get_pkgname()); if (prj_is_kind("aspnet")) { /* No project files?! */ } else if (prj_is_lang("c++") || prj_is_lang("c")) { if (!vs_write_cpp()) return 0; } else if (prj_is_lang("c#")) { if (!vs2005_cs()) return 0; } else { printf("** Warning: %s packages are not supported by this generator\n", prj_get_language()); } } return vs2005_write_solution(target); }
int vs2002_generate(int target) { int i; vs_setversion(target == 2002 ? VS2002 : VS2003); printf("Generating Visual Studio %d solution and project files:\n", target); /* Assign GUIDs to packages */ vs_assign_guids(); /* Generate the 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")) { if (!vs_write_cpp()) return 0; } else if (prj_is_lang("c#")) { if (!vs2002_cs()) return 0; } else { printf("** Warning: %s packages are not supported by this generator\n", prj_get_language()); } } return vs2002_write_solution(); }