gbuild: ExternalProject: improve NMAKE handling
commitb47c9b4a2b6c7cfb58d27d502bbf42fe31731dcd
authorMichael Stahl <mstahl@redhat.com>
Wed, 1 Nov 2017 10:26:21 +0000 (1 11:26 +0100)
committerAndras Timar <andras.timar@collabora.com>
Tue, 14 Sep 2021 06:40:50 +0000 (14 08:40 +0200)
treed833b95791d2638557a65f0c62f0e4c365083218
parent83f4ac88a85fc725aa31f71ed0b0056d9d4fe26d
gbuild: ExternalProject: improve NMAKE handling

- move actual variables into com_MSC_class.mk
- use export ... && to set the variables, so they affect all subsequent
  commands, not just the first one
- clear MAKE as well, as that is apparently used by nmake, but can
  only point to GNU make
- set CC, because nmake apparently can interpret C:/Progra~1/.../cl.exe
  etc. etc. as a "C:" command with some additional arguments which only
  changes the current directory, without even invoking the shell, which
  tends to cause profanities to be uttered for extended periods of time

Change-Id: Ia7b1e6a70d6ac116d4ef0312d2aa1a4747fb8cbf
Reviewed-on: https://gerrit.libreoffice.org/44159
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
solenv/gbuild/ExternalProject.mk
solenv/gbuild/platform/com_MSC_class.mk