meson/readme.txt

52 lines
1.5 KiB
Plaintext
Raw Normal View History

2013-12-22 08:12:35 +08:00
Meson is project to create the best possible next-generation
build system.
2013-02-04 01:08:54 +08:00
2013-02-23 21:16:22 +08:00
Dependencies
Python 3.3: http://python.org
2013-02-23 21:16:22 +08:00
Ninja: http://martine.github.com/ninja/
2013-02-04 01:08:54 +08:00
2013-02-23 21:10:01 +08:00
Installing from source
You can run Meson directly from a revision control checkout.
Installing it system-wide is simple.
Configure step: None
2013-02-23 21:16:22 +08:00
Compile step: ./compile_meson.py
Unit test step: ./run_tests.py
Install step: [sudo] ./install_meson.py --prefix /your/prefix --destdir /destdir/path
2013-02-23 21:10:01 +08:00
The default value of prefix is /usr/local. The default value of destdir
is empty.
2013-02-04 01:27:08 +08:00
Running:
2013-02-18 03:11:50 +08:00
Meson requires that you have a source directory and a build directory
2013-02-04 01:27:08 +08:00
and that these two are different. In your source root must exist a file
2013-02-18 03:11:50 +08:00
called 'meson.build'. To generate the build system run this command:
2013-02-04 01:27:08 +08:00
2013-02-23 21:16:22 +08:00
meson <source directory> <build directory>
2013-02-04 01:27:08 +08:00
2013-02-18 03:11:50 +08:00
You can omit either of the two directories, and Meson will substitute
2013-02-04 01:27:08 +08:00
the current directory and autodetect what you mean. This mean that you
can do things like this:
2013-02-18 03:11:50 +08:00
cd source_root; mkdir build; cd build; meson.py ..
cd source_root; mkdir build; meson.py build
2013-02-04 01:27:08 +08:00
2013-02-23 21:16:22 +08:00
To compile, cd into your build directory and type 'ninja'. To run unit
2013-02-24 00:17:32 +08:00
tests, type 'ninja test'.
Install is the same but it can take an extra argument:
2013-02-23 21:16:22 +08:00
DESTDIR=/destdir/path ninja install
DESTDIR can be omitted. If you are installing to system directories,
you may need to run this command with sudo.
Contact info
2013-02-23 21:10:01 +08:00
2013-02-23 21:16:22 +08:00
All questions should be sent to the mailing list:
2013-02-23 19:26:50 +08:00
https://lists.sourceforge.net/lists/listinfo/meson-devel