50 int main(
int argc,
char **argv) {
54 if (!strcmp(argv[1],
"--parameter-list")) {
55 printf(
"parameter maybe one of:\n");
56 printf(
"\tPLUGININSTALLDIR\n");
58 printf(
"\t%s\n", cf_parameter_list[i].name);
63 if (!strcmp(argv[1],
"PLUGININSTALLDIR")) {
64 printf(
"%s/plugins/\n",
LIBDIR);
67 if (!strcmp(argv[1],
"--Dflags")) {
69 printf(
"-D%s=\\\"%s\\\" ", cf_parameter_list[i].name, cf_parameter_list[i].value);
76 if (!strcmp(argv[1], cf_parameter_list[i].name)) {
77 printf(
"%s\n", cf_parameter_list[i].value);
83 printf(
"usage: crossfire-config --Dflags");
84 printf(
" (gives complete Dflags line for compiler invocation)\n");
85 printf(
"usage: crossfire-config --parameter-list");
86 printf(
" (show the list of available parameters)\n");
87 printf(
"usage: crossfire-config <parameter name>");
88 printf(
" (extract a compilation parameter)\n");
const cf_parameter cf_parameter_list[]
const int cf_parameter_list_size
int main(int argc, char **argv)