如何使用 SVN 和不同的依赖构建目标构建项目
我有一个软件项目,它拥有全球软件库,但针对特定硬件平台有许多不同的构建目标。目前,我通过不同的 makefile 来处理这些目标,这些文件访问硬件平台特定的文件夹。但我想,如何改进这种结构......因为在大多数情况下,用户只会关注一个硬件平台,但所有平台都应该在 svn 中。那么是否有可能,如果是的话,以哪种方式,以这种方式在 svn 中构建一个结构,我只有一个 makefile 一个文件夹用于硬件特定的东西,并且只能通过检查特定分支、标签来进行区分...?但开发过程是否也应该在所有平台上并行进行?我怎样才能最好地处理它?
I have a software project which has a global software base but many different build targets for specific hardware platforms. At the moment I address these targets by different makefiles, which access the hardwareplatform specific folders. But I thought about, how I could improve this structure....because in most terms the user will only focus on one hardware platform, but all platforms should be in the svn. So is it possible and if yes, in which way, to build a structure in svn in that way, that I have only one makefile one folder for hardware specific stuff and only differentiation by checking out on a specific branch,tag...? But the development process should also continue on all platforms in parallel? How could I handle it best?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将 makefile 分成基础部分和硬件特定部分。然后,您可以将其构造为
因此,您的基本 makefile 将利用此:
如果您的目标是限制产品的大小(或修复标签/修订版),您还可以使用外部设置 svn 产品特定位置:
You can split your makefile into base and hardware specific parts. Then, you can structure it as
So, your basic makefile will utilize this:
If you aim to limit size (or fix tag/revision) for product you can also setup svn product specific location with externals: