我正在寻找使用 makefile 构建的 iO 库项目

发布于 2024-12-08 14:52:59 字数 355 浏览 0 评论 0原文

我正在寻找一个简单的 iOS 库(和/或应用程序 - 最终两者都想要)示例(如数学库或其他),它有一个 makefile,我可以使用它作为模板来制作其他 makefile 并学习。当然是静态的(如果 iOS 支持的话也是动态的,这样我就可以有 2 个以上的应用程序共享通用代码)

有很多不完整和神秘的信息,但到目前为止我还没有找到任何简洁的“使用这些源文件”您以这种方式创建一个 makefile 来构建一个 iOS“胖”库,我可以导入到其他项目中。

这将在安装了 ios4 sdk 的 Mac 上进行。 从基本有效的东西开始总是很棒的。

我之前为 UNIX 和 Windows 以及其他设备创建了复杂的 makefile。

谢谢。

I am looking for a simple library ( and/or app - eventually want both ) example ( like a math library or whatever) for iOS which has a makefile for it that I can use as a template to make other makefiles from and learn. Static of course, (and dynamic if iOS supports it so I can have 2+ apps that share common code)

There is lots of incomplete and cryptic info out there but so far I havn't found any nice concise "with these source files" you create a makefile this way to build an iOS "fat" library I can import into other projects.

This would be on a Mac with the ios4 sdk installed.
It is always great to start with something that basically works.

I have created complex makefiles before for unix and windows and for other devices.

thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

明媚如初 2024-12-15 14:52:59

第一个链接以图示方式逐步表示您所要求的过程,然后第二个链接包含一个包,允许程序员编译基于 make 文件的项目

点我

点我

The first link pictorially represents the process step by step that you've asked then the second link contains a package that allows a programmer to compile a make file based project

click me

click me

诠释孤独 2024-12-15 14:52:59

如果您想使用 make 文件构建静态库,并在每次构建 Xcode 项目时链接它,则可以在项目中的所有其他构建阶段之前添加一个“运行脚本”构建阶段,该阶段运行此 make 文件,然后将构建的库添加到链接阶段。如果你想要一个构建整个 iOS 项目的 make 文件,我认为这是不可能的(尽管你可以使用命令行来编译项目,而无需打开 Xcode)。

If you want to build a static library using a make file and link against it every time you build your Xcode project, you can add a "run script" build phase in your project before all the others, which runs this make file, and then add the built library to your linking phase. If you want a make file that builds the entire iOS project, I don't think it's posible (you can use the command line to compile the project without Xcode opened though).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文