fix warning

This commit is contained in:
2025-08-23 15:12:21 -04:00
parent b62d6b1a61
commit a2bc8dd002
6 changed files with 50 additions and 10 deletions

View File

@@ -113,5 +113,16 @@ int create_project(manifest_t manifest)
abort();
}
if (manifest.libraries.ncurses)
system("git submodule add --quiet https://github.com/mirror/ncurses");
if (manifest.libraries.raylib)
system("git submodule add --quiet https://github.com/raysan5/raylib");
if (manifest.libraries.stb)
system("git submodule add --quiet https://github.com/nothings/stb");
if (manifest.libraries.uthash)
system("git submodule add --quiet https://github.com/troydhanson/uthash");
if (manifest.libraries.linenoise)
system("git submodule add --quiet https://github.com/antirez/linenoise");
return 0;
}

View File

@@ -84,7 +84,24 @@ static int parse_arguments(manifest_t *conf, int argc, char **argv)
conf->licence = TOlicence(optarg);
break;
case 'l':
#warning "Implement -l <lib>"
if (strcmp(optarg, "list") == 0) {
puts("ncurses\nraylib\nstb\nuthash\nlinenoise");
exit(EXIT_SUCCESS);
}
if (strcmp(optarg, "ncurses") == 0)
conf->libraries.ncurses = true;
else if (strcmp(optarg, "raylib") == 0)
conf->libraries.raylib = true;
else if (strcmp(optarg, "stb") == 0)
conf->libraries.stb = true;
else if (strcmp(optarg, "uthash") == 0)
conf->libraries.uthash = true;
else if (strcmp(optarg, "linenoise") == 0)
conf->libraries.linenoise = true;
else
fprintf(stderr,
"warning: %s is not a support library",
optarg);
break;
default:
return 1;