[Spice-devel,win-qxl,1/2] build-sys: use spice-protocol submodule

Submitted by Marc-André Lureau on May 11, 2012, 4:36 p.m.

Details

Message ID 1336754204-10901-1-git-send-email-marcandre.lureau@gmail.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Marc-André Lureau May 11, 2012, 4:36 p.m.
---
 .gitmodules    |    3 +++
 build.bat      |    5 ++++-
 spice-protocol |    1 +
 3 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 .gitmodules
 create mode 160000 spice-protocol

Patch hide | download patch | download mbox

diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..f946a4d
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@ 
+[submodule "spice-protocol"]
+	path = spice-protocol
+	url = git://git.freedesktop.org/git/spice/spice-protocol.git
diff --git a/build.bat b/build.bat
index bd94cea..204756a 100755
--- a/build.bat
+++ b/build.bat
@@ -12,6 +12,9 @@  if not DEFINED BUILD_ALT_DIR (
  echo BUILD_ALT_DIR not defined. Please run in a WinDDK Build Environment.
  goto exit
 )
+if not DEFINED SPICE_COMMON_DIR (
+ set SPICE_COMMON_DIR=%CD%\spice-protocol
+)
 
 set TARGET=install_%BUILD_ALT_DIR%
 echo TARGET=%TARGET%
@@ -39,4 +42,4 @@  if exist %DEST% (
  xcopy /s /y %TARGET% %DEST%\%TARGET%
 )
 
-:exit
\ No newline at end of file
+:exit
diff --git a/spice-protocol b/spice-protocol
new file mode 160000
index 0000000..0d01de3
--- /dev/null
+++ b/spice-protocol
@@ -0,0 +1 @@ 
+Subproject commit 0d01de3108853e1f7ea026fdbc2feb9183d65dc2