简体   繁体   English

如何从 Visual Studio 2015 C++ 项目导出 Makefile

[英]How to export a Makefile from a Visual Studio 2015 C++ project

I googled a lot and saw some old posts that it was possible till VS 2008?我在谷歌上搜索了很多,看到了一些旧帖子,直到 VS 2008 才有可能?

But now i can't find the option "export makefile" anymore..但是现在我再也找不到“导出生成文件”选项了..

Is there now another way to do this?现在还有其他方法可以做到这一点吗?

I googled, too, with the same result: There really seems to be no way to create a Makefile from a given VS 2015 solution.我也用 google 搜索了相同的结果:似乎真的没有办法从给定的 VS 2015 解决方案创建 Makefile。 The closest I got was MakeItSo .我得到的最接近的是MakeItSo It supports VS 2010 but is open source, so maybe you can adapt it to your needs.它支持 VS 2010 但它是开源的,所以也许你可以根据你的需要调整它。

My recommendation is using CMake .我的建议是使用CMake Yes, you will have to invest some effort to getting used to it and to convert the project definitions.是的,您将不得不付出一些努力来习惯它并转换项目定义。 But managing CMake definitions is much easier than clicking through solution and project property dialogs.但是管理 CMake 定义比单击解决方案和项目属性对话框要容易得多。

And then you get your Makefile is a nice side effect.然后你得到你的 Makefile 是一个很好的副作用。

看看cmakeconverter - 它不生成 Makefiles,但 CMakeLists 可以被认为是一个超集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM