Debian Codegraph @

tools/faust-config

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 #
3
4 function usagescip-shell shell shell-project 0.0.0 usage(). {
5 echoscip-shell system . . echo. "usage: faust-config <OPTION>..."
6 echoscip-shell system . . echo.
7 echoscip-shell system . . echo. "Get various configuration information needed to compile programs which use"
8 echoscip-shell system . . echo. "Faust. Typically called from 'configure' scripts. Examples:"
9 echoscip-shell system . . echo. " faust-config --cflags"
10 echoscip-shell system . . echo.
11 echoscip-shell system . . echo. "Options:"
12 echoscip-shell system . . echo. " --version Print Faust version."
13 echoscip-shell system . . echo. " --cflags C compiler flags for files that include Faust headers."
14 echoscip-shell system . . echo. " --ldflags Print Linker flags."
15 echoscip-shell system . . echo. " --system-libs System Libraries needed to link against LLVM components."
16 }
17
18 function getscip-shell shell shell-project 0.0.0 get(). {
19 case $1 in
20 --version)
21 faust --version
22 ;;
23
24 --cflags)
25 OUT="$OUT -I$(faust --includedir)"
26 ;;
27
28 --ldflags)
29 OUT="$OUT -L$(faust --libdir)"
30 ;;
31
32 --system-libs)
33 OUT="$OUT $SYSTEMLIBS"
34 ;;
35 *)
36 usagescip-shell shell shell-project 0.0.0 usage().
37 ;;
38 esac
39 }
40
41 SYSTEMLIBS="-lm -lz -lcurses -lxml2"
42
43 if [scip-shell system . . `[`. "$#" -eq 0 ]
44 then
45 usagescip-shell shell shell-project 0.0.0 usage().
46 exit 1
47 fi
48
49
50 while [scip-shell system . . `[`. $1 ]
51 do
52 getscip-shell shell shell-project 0.0.0 get(). $1
53 shift
54 done
55
56 echoscip-shell system . . echo. $OUT
57
58 exit 0
59
60
61