|
|
@ -51,7 +51,7 @@ void generate_project(const char *str) {
|
|
|
|
} else if (!strcmp(str, "static") || !strcmp(str, "shared")) {
|
|
|
|
} else if (!strcmp(str, "static") || !strcmp(str, "shared")) {
|
|
|
|
std::ofstream ofs("src/lib.cpp");
|
|
|
|
std::ofstream ofs("src/lib.cpp");
|
|
|
|
if (ofs.is_open()) {
|
|
|
|
if (ofs.is_open()) {
|
|
|
|
ofs << "int dll_main() {\n\treturn 0;\n}";
|
|
|
|
ofs << "int test() {\n\treturn 0;\n}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ofs.flush();
|
|
|
|
ofs.flush();
|
|
|
|
ofs.close();
|
|
|
|
ofs.close();
|
|
|
|