【问题标题】:Export / import Eclipse cdt make targets导出/导入 Eclipse cdt make 目标
【发布时间】:2014-08-20 15:57:14
【问题描述】:

我在我的 Eclipse cdt 项目中严重依赖 make 目标,并且定义了 50 多个 make 目标。

是否可以将它们导出并导入到另一个项目中?

我在 Eclipse 中找不到任何 GUI 方式来执行此操作,但也许我只是在查看显而易见的内容,或者可能有一种方法可以通过直接编辑配置文件来完成此操作?

【问题讨论】:

    标签: eclipse eclipse-cdt


    【解决方案1】:

    查看工作区顶部的 .cproject 文件,您应该会在文件中看到类似的内容。尝试将这些块剪切并粘贴到您的其他项目中。

    <storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
        <buildTargets>
            <target name="all" path="directory1/directory2/directory3" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
                <buildCommand>make</buildCommand>
                <buildArguments/>
                <buildTarget>all</buildTarget>
                <stopOnError>true</stopOnError>
                <useDefaultCommand>false</useDefaultCommand>
                <runAllBuilders>true</runAllBuilders>
            </target>
    

    【讨论】:

      【解决方案2】:

      您可以在Make target视图中直接复制“Make targets”(CTL+C)并粘贴(CTL+V)到good repository下

      【讨论】:

        猜你喜欢
        • 2012-07-23
        • 2014-02-14
        • 1970-01-01
        • 2015-12-30
        • 2010-12-30
        • 2014-09-14
        • 2018-07-22
        • 2012-04-18
        • 2013-02-17
        相关资源
        最近更新 更多