Git Product home page Git Product logo

Comments (4)

jpakkane avatar jpakkane commented on May 28, 2024

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.

jpakkane avatar jpakkane commented on May 28, 2024

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.

RobinMcCorkell avatar RobinMcCorkell commented on May 28, 2024

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.

RobinMcCorkell avatar RobinMcCorkell commented on May 28, 2024

Superceded by #14

from meson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.