forked from mesonbuild/meson
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate meson.build based on existing source files when meson init i…
…s run in a non-empty directory.
- Loading branch information
1 parent
fcb9584
commit 8f340ff
Showing
3 changed files
with
139 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Autogeneration of simple meson.build files | ||
|
||
A feature to generate a meson.build file compiling given C/C++ source | ||
files into a single executable has been added to "meson init". By | ||
default, it will take all recognizable source files in the current | ||
directory. You can also specify a list of dependencies with the -d | ||
flag and automatically invoke a build with the -b flag to check if the | ||
code builds with those dependencies. | ||
|
||
For example, | ||
|
||
```meson | ||
meson init -fbd sdl2,gl | ||
``` | ||
|
||
will look for C or C++ files in the current directory, generate a | ||
meson.build for them with the dependencies of sdl2 and gl and | ||
immediately try to build it, overwriting any previous meson.build and | ||
build directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters