将 makefile 转换为 Xcode 项目
这就是我的困境。我熟悉在命令行上从 makefile 编译程序。我非常熟悉在 Xcode 中编译程序。我的问题是 - 是否有一个简单的过程将 makefile 转换为 Xcode 项目?
需要明确的是,我知道如何使用外部目标构建 Xcode 项目。这不是我想要做的。
我想添加这一点以便更清楚一点。我正在将一个使用 libSDL 用 C++ 编写的游戏移植到 iOS 3.2。因此,我别无选择,只能将 makefile 转换为 Xcode 项目。
So here's my dilemma. I am familiar with compiling programs from makefiles on the command line. I am more than familiar with compiling programs in Xcode. My question is - Is there a straightforward process for converting a makefile to an Xcode project?
Just to be clear, I know how to build an Xcode project with an external target. This is not what I am looking to do.
I want to add this to be a little more clear. I am porting a game written in C++ utilizing libSDL to iOS 3.2. I, therefore, have no choice but to convert the makefile to an Xcode project.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您看过 cmake 吗?我自己没有使用过它,但显然它可以生成 Xcode 项目文件。
Have you looked at cmake ? I haven't used it myself but apparently it can generate Xcode project files.
除了使用“External Build System”项目模板(这听起来不像你想要的)之外,Xcode 中没有 Makefile 导入工具。但是,使用外部目标会缺少哪些功能?当然,您仍然可以使用 Xcode。您将无法使用构建设置 UI,但您声称对 Make 足够熟悉,不需要它。
Except for using the "External Build System" project template (which sounds like not what you want), there is no Makefile import tool in Xcode. What features are you missing by using an external target, however? You can still use Xcode, of course. You won't be able to use the build settings UI, but you claim to be comfortable enough with Make to not need it.