docopt / docopt.cpp

C++11 port of docopt
Boost Software License 1.0
1.04k stars 146 forks source link

Add super minimal meson.build #78

Closed germandiagogomez closed 9 months ago

germandiagogomez commented 7 years ago

This just supports a static library target. Only tested in Mac OS as of now. Should work in linux/unix-like too AFAIK.

I needed this for my own project. Eventually full support could be added and a wrap file for meson as well. See here: http://mesonbuild.com/Using-the-WrapDB.html

mchwalisz commented 6 years ago

Was testing this patch under Linux with the following docopt.cpp.wrap file. It doesn't work. First of all include_directories('..') should not point to upper folder but current. Additionally, you have to remove your local paths from stdlib_includes.

[wrap-git]

directory=docopt.cpp
url=https://github.com/germandiagogomez/docopt.cpp
revision=meson-build
germandiagogomez commented 6 years ago

@mchwalisz I will take a look at this during next week :) At some point I am sure this worked for me in Mac but I will review it.

mchwalisz commented 6 years ago

@germandiagogomez you can take a look at https://github.com/mchwalisz/docopt.cpp/blob/master/meson.build

germandiagogomez commented 5 years ago

@mchwalisz better late than never. I need to figure out how to contribute this upstream. Would you be willing to add a meson.build file for the upstream docopt.cpp?

mchwalisz commented 5 years ago

It was so long time ago, I'm not sure I can help much right now. I have created pull request for you with improvements I did before. This needs testsing!

jaredgrubb commented 4 years ago

Any update on this? Is this still something that is wanted?