Vv
PURPOSE:
Builds Vely applications.
SYNTAX:
vv <options> [ <app name> ]
DESCRIPTION:
vv is a
vely tool for application building.
Command-line options
- -q Build Vely application. The following options can be used when building:
- --db="[#]<database vendor>:<db config file> ..."
Specify a list of databases used in your application. Each element of the list is <database vendor> (which is 'mariadb', 'postgres' or 'sqlite'), followed by a colon (:) and then <db config file>, where <db config file> is used to refer to a database in language_statements such as start-query. Each <database vendor>:<db config file> is separated by a space. You can list any number of databases for use in your application. A file with name <db config file> must exist and contain the connection parameters for database access, and is copied once to Vely's database configuration directory (see how_vely_works). If an optional "#" precedes <database vendor>, then database configuration file is overwritten even if already present. See database_config_file for more details on the content of this file, the defaults used, and changing them to fit your needs.
- --lflag <linker flags>
If you wish to add any additional linker flags (such as any non-Vely libraries), specify them quoted under this option.
- --cflag <C flags>
If you wish to add any additional C compiler (gcc) flags, specify them quoted under this option.
- --trace
If specified, tracing information code will be generated (without it, tracing is not available and trace statement is ignored).
- --maxupload <max upload size>
Specify maximum upload size for a file (in bytes). The default is approximately 25MB.
- --lib <libraries>
Specify Vely libraries used in your application. By default, no additional libraries are used, unless you use --db option, in which case the appropriate database libraries are automatically included. You can specify 'curl' (if CURL library for web communication is used) and 'crypto' (if cryptographic libraries are used). If you use more than one library, specify them separated by a space and quoted as parameter.
- --debug
Generate debugging information when compiling your application. Debugging information is required to produce a backtrace file with the stack that contains source code line numbers, in order to pinpoint the exact location where report-error statement was used, or where the application crashed. It is also needed to use gdb for debugging purposes.
- --c-lines
Skip generating line information when compiling .v files. By default line information is included, which allows errors to be reported with line numbers in .v files. If you want only generated C code line numbers to be used, use this option.
- -v
Display Vely version as well as the Operating System version.
- -s
Trace the execution of vv utility and display all the steps in making your application.
- -e <num of errors>
Show the last <num of errors> from the backtrace file, which receives error message and stack trace when program crashes or report-error is issued. Also display the path to backtrace file which contains the details.
- -o
Show documentation directory - web page documentation is located here, and examples are located under "examples" subdirectory.
- -l
Show library directory - Vely's libraries and v1 code processor are located there.
- -m
Add Vely syntax and keyword highlighting rules for files with .v extension to Vim editor for the currently logged on user.
- -c,--clean
Clean all object and other intermediate files, so that consequent project build is a full recompilation. Use it prior to rebuilding the application.
- -h
Display help.
Examples
- Make application (-q), use three databases (--db) named mdb (MariaDB database), pdb (PostgreSQL) and sdb (SQLite), produce debugging information (--debug), produce tracing information (--trace), specify that your application is using crypto and curl libraries:
vv -q --db="mariadb:mdb postgres:pdb sqlite:sdb" --debug --trace --lib "crypto curl"
- make application, use MariaDB database db (--db), specify linker and C compilation flags, specify maximum upload size of about 18M:
vv -q --db="mariadb:db" --lflag "-Wl,-z,defs" --cflag "-DXYZ123" --maxupload 18000000
- Make application that doesn't use any databases:
vv -q
SEE ALSO: