如何将Cion设置为使用WAF作为构建系统 [英] How to setup CLion to use waf as build system

查看:0
本文介绍了如何将Cion设置为使用WAF作为构建系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试配置我的IntelliJ Clion IDE以使用ns-3。由于ns-3正在使用WAF,这比我想象的要棘手得多,如果有任何建议我会很高兴的

推荐答案

CLion supports compilation databases,幸运的是,它能够使用clang_compilation_database扩展生成。

您需要在配置和选项步骤中加载它;即如下所示:

def options(ctx):
    # Assuming you just copied the script into a directory called tools
    ctx.load('clang_compilation_database', tooldir='tools')
    # ...

def configure(ctx):
    ctx.load('clang_compilation_database', tooldir='tools')
    # ...

现在您可以调用waf clangdb;在您的构建目录中将显示一个名为‘Compile_Commands.json’的文件。

这篇关于如何将Cion设置为使用WAF作为构建系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆