How to get the include directories from a dependency in meson build system

风格不统一 提交于 2020-05-13 19:28:53

问题


In meson build system, I want to get the include directories from a dependency:

Simple example meson.build, using wxWidgets dependecy as example:

project('project1', ['cpp'])

wxdep = dependency('wxWidgets')

wxincludes =    # ... how to get the include directories from wxdep ?

# in this case, wxincludes will be used to compile a resource file:
windows = import('windows')
windows.compile_resources('test.rc', include_directories: [wxincludes])

How can I get the include directories from a dependency for use in subsequent commands?

来源:https://stackoverflow.com/questions/60864453/how-to-get-the-include-directories-from-a-dependency-in-meson-build-system

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!