mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 18:36:30 +01:00
topology: define -I option only for alsa-lib 1.2.6+
Link: https://github.com/alsa-project/alsa-utils/pull/125 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
79f8ae46b6
commit
c8c348e28a
1 changed files with 6 additions and 2 deletions
|
@ -58,6 +58,7 @@ _("Usage: %s [OPTIONS]...\n"
|
||||||
"-o, --output=FILE set output file\n"
|
"-o, --output=FILE set output file\n"
|
||||||
#if SND_LIB_VER(1, 2, 5) < SND_LIB_VERSION
|
#if SND_LIB_VER(1, 2, 5) < SND_LIB_VERSION
|
||||||
"-D, --define=ARGS define variables (VAR1=VAL1[,VAR2=VAL2] ...)\n"
|
"-D, --define=ARGS define variables (VAR1=VAL1[,VAR2=VAL2] ...)\n"
|
||||||
|
"-I, --inc-dir=DIR set include path\n"
|
||||||
#endif
|
#endif
|
||||||
"-s, --sort sort the identifiers in the normalized output\n"
|
"-s, --sort sort the identifiers in the normalized output\n"
|
||||||
"-g, --group save configuration by group indexes\n"
|
"-g, --group save configuration by group indexes\n"
|
||||||
|
@ -381,9 +382,9 @@ static int decode(const char *source_file, const char *output_file,
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
static const char short_options[] = "hc:d:n:u:v:o:pP:sgxzVI:"
|
static const char short_options[] = "hc:d:n:u:v:o:pP:sgxzV"
|
||||||
#if SND_LIB_VER(1, 2, 5) < SND_LIB_VERSION
|
#if SND_LIB_VER(1, 2, 5) < SND_LIB_VERSION
|
||||||
"D:"
|
"D:I:"
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
static const struct option long_options[] = {
|
static const struct option long_options[] = {
|
||||||
|
@ -397,6 +398,7 @@ int main(int argc, char *argv[])
|
||||||
{"output", 1, NULL, 'o'},
|
{"output", 1, NULL, 'o'},
|
||||||
#if SND_LIB_VER(1, 2, 5) < SND_LIB_VERSION
|
#if SND_LIB_VER(1, 2, 5) < SND_LIB_VERSION
|
||||||
{"define", 1, NULL, 'D'},
|
{"define", 1, NULL, 'D'},
|
||||||
|
{"inc-dir", 1, NULL, 'I'},
|
||||||
#endif
|
#endif
|
||||||
{"sort", 0, NULL, 's'},
|
{"sort", 0, NULL, 's'},
|
||||||
{"group", 0, NULL, 'g'},
|
{"group", 0, NULL, 'g'},
|
||||||
|
@ -451,9 +453,11 @@ int main(int argc, char *argv[])
|
||||||
op = 'P';
|
op = 'P';
|
||||||
source_file = optarg;
|
source_file = optarg;
|
||||||
break;
|
break;
|
||||||
|
#if SND_LIB_VER(1, 2, 5) < SND_LIB_VERSION
|
||||||
case 'I':
|
case 'I':
|
||||||
inc_path = optarg;
|
inc_path = optarg;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case 'p':
|
case 'p':
|
||||||
pre_process_config = true;
|
pre_process_config = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue