[英]I seek library project for iOs built with 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. 我正在寻找一个简单的库(和/或应用程序 - 最终想要两者)示例(如数学库或其他)iOS,它有一个makefile,我可以用作模板来制作其他makefile并学习。 Static of course, (and dynamic if iOS supports it so I can have 2+ apps that share common code) 静态当然,(如果iOS支持它,则动态,所以我可以拥有2个共享公共代码的应用程序)
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. 有很多不完整和神秘的信息,但到目前为止,我没有找到任何简洁的“使用这些源文件”你创建一个makefile这样建立一个iOS“胖”库我可以导入到其他项目。
This would be on a Mac with the ios4 sdk installed. 这将是在安装了ios4 sdk的Mac上。 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. 我之前为unix和windows以及其他设备创建了复杂的makefile。
thanks. 谢谢。
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. 如果你想使用make文件构建一个静态库并在每次构建Xcode项目时链接它,你可以在项目之前添加一个“运行脚本”构建阶段,然后运行这个make文件,然后运行将构建的库添加到链接阶段。 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). 如果你想要一个构建整个iOS项目的make文件,我认为它不可行(你可以使用命令行编译项目而不打开Xcode)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.