English 中文(简体)
平台开发,单一工作文本
原标题:Cross platform development with a single working copy

We are doing some cross platform development on OSX with Paralells installed with different Windows versions. Has anyone found a good solution to share a single working copy/code base instead of having to check out different copies on each operating system?

最佳回答

我的第一个想法是分发版本控制,如Gite或Mecurial。 但这给你一个共享的存放处,而不是一份共同的工作副本。

如何把目录作为共享网络驱动器,并将其与其他虚拟环境联系起来?

问题回答

这里使用的是输电箱。 没有任何东西阻止你同时把档案放在版本控制上,并放下箱子。 我已发现,这种做法比建立网络档案系统(例如,与SMB、NFS或sh)的时间要快得多。

The key is to configure your build system for out-of-source builds.
CMake is one build system that makes this trivial:
http://www.cmake.org/Wiki/CMake_FAQ#What_is_an_.22out-of-source.22_build.3F

如果改变你的建筑系统不是一种选择,一种可能的替代办法是把你的所有来源档案放在单独的原始目录中,并且仅将其与你的固定树林连接起来。





相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签