Remove NMake support (#10656)

* Deleting NMake build

* Deleting documentation for NMake
pull/10662/head
Mike Kruskal 2 years ago committed by GitHub
parent 264292e4c7
commit 1e24391438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      cmake/README.md
  2. 34
      kokoro/windows/cmake_nmake/build.bat
  3. 5
      kokoro/windows/cmake_nmake/common.cfg
  4. 1
      kokoro/windows/cmake_nmake/continuous.cfg
  5. 1
      kokoro/windows/cmake_nmake/presubmit.cfg

@ -89,9 +89,6 @@ for various native build systems.
Of most interest to Windows programmers are the following:
* [Makefile](http://www.cmake.org/cmake/help/latest/manual/cmake-generators.7.html#makefile-generators).
This generates NMake Makefiles for Visual Studio. These work, but they are rather slow.
* [Visual Studio](http://www.cmake.org/cmake/help/latest/manual/cmake-generators.7.html#visual-studio-generators)
This generates a Visual Studio solution for the project.
@ -112,16 +109,6 @@ Create a temporary *build* folder and change your working directory to it:
The *Makefile* and *Ninja* generators can build the project in only one configuration, so you need to build
a separate folder for each configuration.
To start using a *Release* configuration via the *NMmake* generator:
C:\Path\to\build\protobuf>mkdir release & cd release
C:\Path\to\build\protobuf\release>cmake -G "NMake Makefiles" ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_PREFIX=C:\Path\to\install ^
C:\Path\to\src\protobuf
It will generate a *NMake* *Makefile* in the current directory.
To use *Debug* configuration using *Ninja*:
C:\Path\to\build\protobuf>mkdir debug & cd debug
@ -192,10 +179,6 @@ Note that if your generator supports multiple configurations, you will probably
You can also run directly the build tool you've configured:
C:\Path\to\build\protobuf\release>nmake
or
C:\Path\to\build\protobuf\debug>ninja
And wait for the compilation to finish.
@ -268,10 +251,6 @@ To install protobuf to the *install* folder you've specified in the configuratio
Or if you prefer:
C:\Path\to\build\protobuf\release>nmake install
or
C:\Path\to\build\protobuf\debug>ninja install
You can also build project *INSTALL* from Visual Studio solution.

@ -1,34 +0,0 @@
@rem enter repo root
cd /d %~dp0\..\..\..
call kokoro\windows\prepare_build_win64.bat || goto :error
@rem TODO(b/241475022) Use docker to guarantee better stability.
@rem TODO(b/241484899) Run conformance tests in windows.
md build
md %KOKORO_ARTIFACTS_DIR%\logs
cd build
cmake .. ^
-G "NMake Makefiles" ^
-DCMAKE_C_COMPILER=cl.exe ^
-DCMAKE_CXX_COMPILER=cl.exe ^
-Dprotobuf_BUILD_CONFORMANCE=OFF ^
-Dprotobuf_WITH_ZLIB=OFF ^
-Dprotobuf_TEST_XML_OUTDIR=%KOKORO_ARTIFACTS_DIR%\logs\ || goto :error
cmake --build . || goto :error
ctest --verbose -C Debug || goto :error
goto :success
:error
cd /d %~dp0\..\..\..
echo Failed!
exit /b 1
:success
cd ..

@ -1,5 +0,0 @@
# Config file for running tests in Kokoro
# Location of the build script in repository
build_file: "protobuf/kokoro/windows/cmake_nmake/build.bat"
timeout_mins: 1440

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.
Loading…
Cancel
Save