Changeset 5679:4622adf8136f in roaraudio


Ignore:
Timestamp:
09/24/12 00:45:34 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for a function printing help for "common" options as supported by the lib's parser.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • build-system/configure.lib

    r5678 r5679  
    3131} 
    3232 
     33write_help() { 
     34 echo 'COMMON OPTIONS:' 
     35 echo 
     36 echo '--ldpath DIR                - Add DIR to (compile time) search list for libs' 
     37 echo '--incpath DIR               - Add DIR to search list for headers' 
     38 echo '--addpath DIR               - Add DIR/lib to lib, DIR/include to header search list' 
     39 echo '--root DIR                  - The same as "--addpath DIR --prefix DIR"' 
     40 echo 
     41 echo '--cflags FLAGS              - Sets additional compiler flags (default: '"$CFLAGS"')' 
     42 echo '--ldflags FLAGS             - Sets additional linker flags (default: '"$LDFLAGS"')' 
     43 echo '--opti LEVEL                - Sets optimizer level (default: '"$OPTI_O"')' 
     44 echo '--link-deps MODE            - Model for linking dependencies: auto, full or indirect' 
     45 echo 
     46 echo '--cc CC                     - Set name of C compiler (CC) to CC' 
     47 echo '--ranlib RANLIB             - Set name of ranlib (RANLIB) to RANLIB' 
     48 echo 
     49 echo '--root-uid UID              - Sets User ID (UID) of the root user/superuser' 
     50 echo 
     51 echo '--no-LIB                    - disable library LIB' 
     52 echo '--maybe-LIB                 - autodetect library LIB (default)' 
     53 echo 
     54 echo '--prefix DIR                - Set general prefix (default: '"$PREFIX"')' 
     55 echo '--prefix-bin DIR            - Set prefix for binaries (default: $PREFIX/bin)' 
     56 echo '--prefix-lib DIR            - Set prefix for libraries (default: $PREFIX/libs)' 
     57 echo '--prefix-inc DIR            - Set prefix for include files (default: $PREFIX/include)' 
     58 echo '--prefix-man DIR            - Set prefix for manpages (default: $PREFIX/man)' 
     59 echo '--prefix-pc DIR             - Set prefix for pkg-config (default: $PREFIX_LIB/pkgconfig)' 
     60 echo 
     61 echo '--without-beta              - Disable beta code' 
     62 echo '--without-experimental      - Disable experimental code' 
     63 echo 
     64 echo '--distribution-version-string STRING' 
     65 echo '                            - Sets distribution part of version string' 
     66 echo 
     67 echo '--mmcu MMCU                 - Sets -mmcu compiler/linker option' 
     68 echo '--target-win32              - Disable everything useful' 
     69 echo '--exec-helper HELPER        - Exec all test programms using this command (HELPER $cmd $args)' 
     70 echo '                              use '\''--exec-helper wine'\'' when building win32 binaries' 
     71 echo 
     72} 
     73 
    3374parse_option() { 
    3475 # Options are given via $n. 
  • configure

    r5677 r5679  
    109109 case "$1" in 
    110110  '--help') 
     111   write_help 
    111112   echo 'OPTIONS:' 
    112113   echo 
    113114   echo '--help                      - This Help' 
    114    echo 
    115    echo '--ldpath DIR                - Add DIR to (compile time) search list for libs' 
    116    echo '--incpath DIR               - Add DIR to search list for headers' 
    117    echo '--addpath DIR               - Add DIR/lib to lib, DIR/include to header search list' 
    118    echo '--root DIR                  - The same as "--addpath DIR --prefix DIR"' 
    119    echo 
    120    echo '--cflags FLAGS              - Sets additional compiler flags (default: '"$CFLAGS"')' 
    121    echo '--ldflags FLAGS             - Sets additional linker flags (default: '"$LDFLAGS"')' 
    122    echo '--opti LEVEL                - Sets optimizer level (default: '"$OPTI_O"')' 
    123    echo '--link-deps MODE            - Model for linking dependencies: auto, full or indirect' 
    124    echo 
    125    echo '--cc CC                     - Set name of C compiler (CC) to CC' 
    126    echo '--ranlib RANLIB             - Set name of ranlib (RANLIB) to RANLIB' 
    127115   echo 
    128116   echo '--cdrom DEV                 - Set default CDRum device' 
     
    136124   echo '--proc-net-arp FILE         - Set file for IP neighbour (ARP) table' 
    137125   echo '--audio-group GROUP         - Sets group of audio permitted users' 
    138    echo '--root-uid UID              - Sets User ID (UID) of the root user/superuser' 
    139    echo 
    140    echo '--no-LIB                    - disable library LIB' 
    141    echo '--maybe-LIB                 - autodetect library LIB (default)' 
     126   echo 
    142127   echo '--runtime-detect            - do as much as posible auto detecting on runtime (for distributors)' 
    143128   echo 
     
    146131   echo '--audacious-install-dir DIR - Set install dir for Audacious plugin' 
    147132   echo 
    148    echo '--prefix DIR                - Set general prefix (default: '"$PREFIX"')' 
    149    echo '--prefix-bin DIR            - Set prefix for binaries (default: $PREFIX/bin)' 
    150    echo '--prefix-lib DIR            - Set prefix for libraries (default: $PREFIX/libs)' 
    151    echo '--prefix-inc DIR            - Set prefix for include files (default: $PREFIX/include)' 
    152    echo '--prefix-man DIR            - Set prefix for manpages (default: $PREFIX/man)' 
    153    echo '--prefix-pc DIR             - Set prefix for pkg-config (default: $PREFIX_LIB/pkgconfig)' 
    154133   echo '--prefix-comp-libs DIR      - Set prefix for compatibility libraries (default: $PREFIX_LIB/roaraudio/complibs)' 
    155134   echo '--prefix-comp-bins DIR      - Set prefix for compatibility binaries  (default: $PREFIX_LIB/roaraudio/compbins)' 
     
    192171   echo '                              This is the same as allways using --no-listen' 
    193172   echo 
    194    echo '--without-beta              - Disable beta code' 
    195    echo '--without-experimental      - Disable experimental code' 
    196    echo 
    197    echo '--distribution-version-string STRING' 
    198    echo '                            - Sets distribution part of version string' 
    199    echo 
    200173   echo '--roard-cfreq FREQ          - Sets the cycle frequency of roard in Hz' 
    201174   echo '--roard-bits  BITS          - Sets the number of bits per sample used by roard' 
     
    206179#   echo '--without-audacious         - Disable build of Audacious plugin' 
    207180   echo 
    208    echo '--mmcu MMCU                 - Sets -mmcu compiler/linker option' 
    209181   echo '--minimal                   - Disable all optional components' 
    210182   echo '--cross-compile             - Enable cross compiler workarounds' 
    211183   echo '--target-microcontroller    - Set Options for mircocontrollers without a OS' 
    212184   echo '                              Implys --cross-compile' 
    213    echo '--target-win32              - Disable everything useful' 
    214    echo '--exec-helper HELPER        - Exec all test programms using this command (HELPER $cmd $args)' 
    215    echo '                              use '\''--exec-helper wine'\'' when building win32 binaries' 
    216185   echo 
    217186   echo 
Note: See TracChangeset for help on using the changeset viewer.