meson 中调用shell script

  meson 中有时需要调用其他脚本语言,加之对meson build system接口和原理不熟悉,无奈只有静心学习meson 官方文档,终于皇天不负有心人让我找到了;

  run_command()

  只需将自己要执行的脚本放入run_command()中即可。用法如下

  run_command('command', 'arg1', 'arg2', 'arg3') //run_command('./download.sh')

  详情参考:http://mesonbuild.com/External-commands.html

原文地址:https://www.cnblogs.com/Malphite/p/10332639.html