简体   繁体   English

使用VS2015 + hg定位具有许多依赖性的许多平台

[英]Targeting many platforms with many dependencies using VS2015 + hg

I have a c++ project, with source managed using hg mercurial. 我有一个c ++项目,其源代码使用hg mercurial管理。

I am porting it to support android, iOS and linux. 我正在将其移植为支持android,iOS和linux。 I am using the cross-platform capabilities of Visual Studio 2015 to do this. 我正在使用Visual Studio 2015的跨平台功能来做到这一点。

The problem is that for windows debug/release x32/x64 alone I would have to compile 56 dependency dlls. 问题是,仅对于Windows调试/发行版x32 / x64,我将不得不编译56个依赖项dll。 This alone is not a problem, but setting up everything for everyone who wants to contribute would be cumbersome. 单单这不是一个问题,但是为每个想要贡献的人设置所有东西将很麻烦。

Because of this I am trying to include the source and build of all dependencies to be compiled for the given platform when necessary. 因此,我试图在必要时包括要为给定平台编译的所有依赖项的源和构建。

Now some of these sources are from github, some from mercurial. 现在,其中一些来源来自github,一些来自水银。 Is there any way I can effectively keep the dependencies as repositories, while being inside my main project repository? 在主项目存储库中时,有什么方法可以有效地将依赖项保留为存储库?

Is there a better way of doing this? 有更好的方法吗?

Just note: "some of these sources are from github, some from mercurial" == "some are man, some are nice". 只需注意:“这些来源中有一些来自github,一些来自Mercurial” ==“有些是人,有些是好人”。 GitHub is platform, Mercurial is SCM - it is not logically correct counterpose them in this way GitHub是平台,Mercurial是SCM-以这种方式抵消它们在逻辑上是不正确的

If you want to collect all dependencies in one repo, you can think about (if you prefer pure Mercurial-way) subrepositories (subrepos can be local or remote, non-Mercurial subrepos /Git with hg-git/ also supported). 如果要在一个存储库中收集所有依赖项,则可以考虑(如果您更喜欢纯Mercurial-way)子存储库 (子存储库可以是本地或远程的,也支持hg-git /的非Mercurial子存储库/ Git)。

PS: read and grok Alternatives section on Subrepo wiki page carefully PS:仔细阅读并仔细阅读Subrepo Wiki页面上的“ 替代方法”部分

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

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