The Meson Build system
ninja a small build system with a focus on speed
Es wird python3 benötigt.
Gebaut habe ich damit die libmpdclient_2.13
Im dreambox-forum gibt es einen Thread
Bei Interesse an meson, ninja-build und python3 könnt ihr euch melden, dann baue ich gerne Pakete (armhf/mipsel).
python3 ist aus dem OE2.5 (krogoth), mit bitbake gebaut, da gibt es also schon Pakete.
meson
Code
[19:14 root@dm900 tmp] > meson -v
0.42.0.dev1
[20:47 root@dm900 tmp] > meson -h
usage: meson [-h] [--prefix PREFIX] [--libdir LIBDIR]
[--libexecdir LIBEXECDIR] [--bindir BINDIR] [--sbindir SBINDIR]
[--includedir INCLUDEDIR] [--datadir DATADIR] [--mandir MANDIR]
[--infodir INFODIR] [--localedir LOCALEDIR]
[--sysconfdir SYSCONFDIR] [--localstatedir LOCALSTATEDIR]
[--sharedstatedir SHAREDSTATEDIR]
[--backend {ninja,vs,vs2010,vs2015,vs2017,xcode}]
[--buildtype {plain,debug,debugoptimized,release,minsize}]
[--strip] [--unity {on,off,subprojects}] [--werror]
[--layout {mirror,flat}] [--default-library {shared,static}]
[--warnlevel {1,2,3}] [--stdsplit] [--errorlogs]
[--cross-file CROSS_FILE] [-D option] [-v]
[--wrap-mode {WrapMode.default,WrapMode.nofallback,WrapMode.nodownload}]
[directories [directories ...]]
positional arguments:
directories
optional arguments:
-h, --help show this help message and exit
--prefix PREFIX Installation prefix (default: /usr/local).
--libdir LIBDIR Library directory (default: lib).
--libexecdir LIBEXECDIR
Library executable directory (default: libexec).
--bindir BINDIR Executable directory (default: bin).
--sbindir SBINDIR System executable directory (default: sbin).
--includedir INCLUDEDIR
Header file directory (default: include).
--datadir DATADIR Data file directory (default: share).
--mandir MANDIR Manual page directory (default: share/man).
--infodir INFODIR Info page directory (default: share/info).
--localedir LOCALEDIR
Locale data directory (default: share/locale).
--sysconfdir SYSCONFDIR
Sysconf data directory (default: etc).
--localstatedir LOCALSTATEDIR
Localstate data directory (default: var).
--sharedstatedir SHAREDSTATEDIR
Architecture-independent data directory (default:
com).
--backend {ninja,vs,vs2010,vs2015,vs2017,xcode}
Backend to use (default: ninja).
--buildtype {plain,debug,debugoptimized,release,minsize}
Build type to use (default: debug).
--strip Strip targets on install.
--unity {on,off,subprojects}
Unity build (default: off).
--werror Treat warnings as errors.
--layout {mirror,flat}
Build directory layout (default: mirror).
--default-library {shared,static}
Default library type (default: shared).
--warnlevel {1,2,3} Compiler warning level to use (default: 1).
--stdsplit Split stdout and stderr in test logs.
--errorlogs Whether to print the logs from failing tests.
--cross-file CROSS_FILE
File describing cross compilation environment.
-D option Set the value of an option, can be used several times
to set multiple options.
-v, --version show program's version number and exit
--wrap-mode {WrapMode.default,WrapMode.nofallback,WrapMode.nodownload}
Special wrap mode to use
Alles anzeigen
ninja
Code
Description: small build system closest in spirit to Make
Ninja is yet another build system. It takes as input the interdependencies of
files (typically source code and output executables) and orchestrates
building them, quickly.
.
Ninja joins a sea of other build systems. Its distinguishing goal is to be
fast. It is born from the Chromium browser project, which has over 30,000
source files and whose other build systems can take ten seconds to start
building after changing one file. Ninja is under a second.
[20:52 root@dm900 tmp] > ninja --help
usage: ninja [options] [targets...]
if targets are unspecified, builds the 'default' target (see manual).
options:
--version print ninja version ("1.7.2.git")
-C DIR change to DIR before doing anything else
-f FILE specify input build file [default=build.ninja]
-j N run N jobs in parallel [default=3, derived from CPUs available]
-k N keep going until N jobs fail [default=1]
-l N do not start new jobs if the load average is greater than N
-n dry run (don't run commands but act like they succeeded)
-v show all command lines while building
-d MODE enable debugging (use -d list to list modes)
-t TOOL run a subtool (use -t list to list subtools)
terminates toplevel options; further flags are passed to the tool
-w FLAG adjust warnings (use -w list to list warnings)
Alles anzeigen
python3
Code
Python 3.5.1 (default, Jul 31 2017, 22:30:58)
[GCC 5.3.0] on linux
[20:52 root@dm900 tmp] > python3 --help
usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Options and arguments (and corresponding environment variables):
-b : issue warnings about str(bytes_instance), str(bytearray_instance)
and comparing bytes/bytearray with str. (-bb: issue errors)
-B : don't write .py[co] files on import; also PYTHONDONTWRITEBYTECODE=x
-c cmd : program passed in as string (terminates option list)
-d : debug output from parser; also PYTHONDEBUG=x
-E : ignore PYTHON* environment variables (such as PYTHONPATH)
-h : print this help message and exit (also --help)
-i : inspect interactively after running script; forces a prompt even
if stdin does not appear to be a terminal; also PYTHONINSPECT=x
-I : isolate Python from the user's environment (implies -E and -s)
-m mod : run library module as a script (terminates option list)
-O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x
-OO : remove doc-strings in addition to the -O optimizations
-q : don't print version and copyright messages on interactive startup
-s : don't add user site directory to sys.path; also PYTHONNOUSERSITE
-S : don't imply 'import site' on initialization
-u : unbuffered binary stdout and stderr, stdin always buffered;
also PYTHONUNBUFFERED=x
see man page for details on internal buffering relating to '-u'
-v : verbose (trace import statements); also PYTHONVERBOSE=x
can be supplied multiple times to increase verbosity
-V : print the Python version number and exit (also --version)
-W arg : warning control; arg is action:message:category:module:lineno
also PYTHONWARNINGS=arg
-x : skip first line of source, allowing use of non-Unix forms of #!cmd
-X opt : set implementation-specific option
file : program read from script file
- : program read from stdin (default; interactive mode if a tty)
arg ...: arguments passed to program in sys.argv[1:]
Other environment variables:
PYTHONSTARTUP: file executed on interactive startup (no default)
PYTHONPATH : ':'-separated list of directories prefixed to the
default module search path. The result is sys.path.
PYTHONHOME : alternate <prefix> directory (or <prefix>:<exec_prefix>).
The default module search path uses <prefix>/pythonX.X.
PYTHONCASEOK : ignore case in 'import' statements (Windows).
PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr.
PYTHONFAULTHANDLER: dump the Python traceback on fatal errors.
PYTHONHASHSEED: if this variable is set to 'random', a random value is used
to seed the hashes of str, bytes and datetime objects. It can also be
set to an integer in the range [0,4294967295] to get hash values with a
predictable seed.
Alles anzeigen
gruß pclin