Comments (4)
Meson avoids globbing patterns due to the reasons outlined in the FAQ. However if you want to do this yourself, it is certainly possible.
First write a script that prints out the headers you want to install. Something like this:
#!/bin/sh
echo *.h
Then just use it like this:
install_headers(run_command('headerprinter.sh').stdout().strip().split(), subdir : 'subdir')
from meson.
Another alternative is that you can run a custom script during install time. If you just want to copy a big subtree from one place to another, just put a 'cp -r boo bar' there and you are done. See the manual page on installation for further instructions.
from meson.
I guess that makes sense. What about some way of respecting the paths to the files in install_headers()
? So if I say install_headers('project/foo.h', nobase: true)
then foo.h
is installed as [includedir]/project/foo.h
. GNU Automake supports this quite well: http://www.gnu.org/software/automake/manual/html_node/Alternative.html
from meson.
Superceded by #14
from meson.
Related Issues (20)
- Linker detection uses compiler binary even when <lang>_ld flag option is specified
- Custom manifest does not work with VS backend HOT 3
- /home/MesonBuild/meson: not found during Generating symbol file HOT 2
- Feature request: initialize env object from another env HOT 3
- Relative rpaths are used for a pkgconfig dependency on Linux HOT 1
- additional options to wx-config for wxwidgets dependency HOT 1
- cmake `check_c_source_compiles` fails while finding deps when `c` binary is a list of strings HOT 6
- Meson does not correctly handle `ifx` when linking to an external library HOT 2
- Unknown method "name" in object <[ExternalLibraryHolder] holds [ExternalLibrary]: <ExternalL ibrary m: True>> of type ExternalLibraryHolder HOT 1
- CosmoCC compiler components not detected as executable HOT 1
- Java builds ignore `--werror` HOT 2
- llvm-config was found, but LLVM dep was not found HOT 8
- Add a function to list files under a directory HOT 5
- Add a function to list files under a directory HOT 1
- Cannot add library build directory to `include_directories`
- Can't install a package due to FileNotFoundError causing problem in mesonbuild HOT 3
- How to uninstall itοΌ HOT 2
- gnome.gtkdoc() always rebuilds HOT 1
- NumPy include directory command not working
- How to pass a configuration data or a dict to a subproject
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meson.