【问题标题】:Add an include path for a single file in a library为库中的单个文件添加包含路径
【发布时间】:2022-10-08 00:12:49
【问题描述】:

我正在建立一个图书馆一个文件需要额外的包含路径。有没有办法调整单个文件编译的包含路径?

     bld(features="cxx cxxshlib",
         source=[so, many, files, from an ant_glob],
         includes=[Some path that's really only needed for one interface file])

我也会对基于use 的解决方案感到满意。

【问题讨论】:

    标签: c++ build waf


    【解决方案1】:

    我认为大多数解决方案将是更多的代码行,而不仅仅是单独编译一个文件。

    【讨论】:

      猜你喜欢
      • 2015-02-03
      • 2013-09-19
      • 2014-01-02
      • 2016-01-23
      • 1970-01-01
      • 1970-01-01
      • 2022-11-19
      • 1970-01-01
      • 2013-10-04
      相关资源
      最近更新 更多