clion-msys-msys-environment.bat 997 B

12345678910111213141516171819202122
  1. @echo off
  2. :: In Clion Toolchains
  3. :: 1. Add a MinGW profile
  4. :: 2. Set Toolset to C:\msys64\mingw64
  5. :: 3. Add environment and set the full path to this file, like:
  6. :: C:\msys64\home\costa\src\netdata-ktsaou.git\packaging\utils\clion-mingw64-environment.bat
  7. :: 4. Let everything else to Bundled and auto-detected
  8. ::
  9. set "batch_dir=%~dp0"
  10. set "batch_dir=%batch_dir:\=/%"
  11. set MSYSTEM=MSYS
  12. :: go exists only mingw64 / ucrt64 / etc, not under msys profile
  13. set GOROOT=C:\msys64\mingw64
  14. set "PATH=%PATH%;C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64"
  15. set "PATH=%PATH%;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64"
  16. set "PATH=%PATH%;C:\msys64\usr\bin;C:\msys64\bin;C:\msys64\mingw64\bin"
  17. ::set PKG_CONFIG_EXECUTABLE=C:\msys64\mingw64\bin\pkg-config.exe
  18. ::set CMAKE_C_COMPILER=C:\msys64\mingw64\bin\gcc.exe
  19. ::set CMAKE_CC_COMPILER=C:\msys64\mingw64\bin\g++.exe
  20. set PROTOBUF_PROTOC_EXECUTABLE=%batch_dir%/protoc.bat