Skip to content

Commit

Permalink
Attempt to make it compile under OpenNebula VM.
Browse files Browse the repository at this point in the history
Newer cygwin / make converts wd to UNC path but cmd does not support
that ... need to explicitly cd into src dir ... argh
  • Loading branch information
johannesthoma committed May 20, 2022
1 parent cd76af0 commit f95d32e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile.win
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,20 @@ WINDRBD_SOURCE = ..
DRBD_UTILS_SOURCE = Y:\\drbd-utils-windows
endif

ifeq ($(BUILD_ENV),jt-opennebula-vm)
export EWDK_BASE := e:
EWDK_KIT := $(EWDK_BASE)\\Program Files\\Windows Kits\\10
EWDK_VERSION := 10.0.22000.0
EWDK_BIN := $(EWDK_KIT)\\bin\\$(EWDK_VERSION)\\x86

# Name of the pfx file (without extension)
KEY = linbit-2019
PASSWD = ""

WINDRBD_SOURCE = ..
DRBD_UTILS_SOURCE = Y:\\drbd-utils-windows
endif

ifndef EWDK_VERSION
$(error EWDK_BASE not set. Please edit Makefile to make it know about your ewdk installation.)
endif
Expand Down
4 changes: 4 additions & 0 deletions ms-cl-jt-opennebula-vm.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set EWDK_BASE=e:
call %EWDK_BASE%\BuildEnv\SetupBuildEnv.cmd amd64
set PATH=%PATH%;"E:\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\Hostx64\x64"
cl.exe %*

0 comments on commit f95d32e

Please sign in to comment.