https://msys2.github.io/ https://www.jetbrains.com/clion/
-
Install mingw in msys:
pacman -S mingw-w64-x86_64-toolchain
-
Point CLion at it. (Ex.:
C:\msys64\mingw64
) -
Make a batch file to run it:
SET MSYSTEM=MINGW64 C:\msys64\usr\bin\bash.exe -l -c "(cd /c/Users/phaz/ClionProjects/jaownt; python waf configure build)"
(Or if bash is in another location, as in the case where you have MSYS/MSYS2 and WSL installed on the same machine...
SET MSYSTEM=MINGW64 C:\msys64\usr\bin\bash.exe -l -c "(cd /c/Users/phaz/ClionProjects/jaownt; python waf configure build --bash_location=C:/msys64/usr/bin/bash)"
-
Make a batch file to copy files to the JA dirs:
SET gamedata="C:\Program Files (x86)\Steam\steamapps\common\Jedi Academy\GameData\" SET base=%gamedata%"base" COPY /Y "C:\Users\phaz\ClionProjects\jaownt\build\jaownt.exe" %gamedata% COPY /Y "C:\Users\phaz\ClionProjects\jaownt\build\jaowntded.exe" %gamedata% COPY /Y "C:\Users\phaz\ClionProjects\jaownt\build\rd-vanilla_x86_64.dll" %gamedata% COPY /Y "C:\Users\phaz\ClionProjects\jaownt\build\cgamex86_64.dll" %base% COPY /Y "C:\Users\phaz\ClionProjects\jaownt\build\jampgamex86_64.dll" %base% COPY /Y "C:\Users\phaz\ClionProjects\jaownt\build\uix86_64.dll" %base% COPY /Y "C:\msys64\mingw64\bin\libgcc_s_seh-1.dll" %gamedata% COPY /Y "C:\msys64\mingw64\bin\libstdc++-6.dll" %gamedata% COPY /Y "C:\msys64\mingw64\bin\libjpeg-8.dll" %gamedata% COPY /Y "C:\msys64\mingw64\bin\libpng16-16.dll" %gamedata% COPY /Y "C:\msys64\mingw64\bin\SDL2.dll" %gamedata% COPY /Y "C:\msys64\mingw64\bin\zlib1.dll" %gamedata% COPY /Y "C:\msys64\mingw64\bin\libwinpthread-1.dll" %gamedata%
-
Install git in msys
-
Add .ssh dir to msys home dir, add ssh keys
-
Install libs:
pacman -S mingw64/mingw-w64-x86_64-dlfcn pacman -S mingw64/mingw-w64-x86_64-libjpeg-turbo pacman -S mingw64/mingw-w64-x86_64-libpng pacman -S mingw64/mingw-w64-x86_64-bullet pacman -S mingw64/mingw-w64-x86_64-glm
-
Install mono for Windows.
-
Copy mono dir contents into mingw's 64-bit dir (mingw64/mingw64) (and mingw's /usr/ dir?)