This repository has been archived by the owner on Jun 14, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made it get OpenGL DLL dependent on platform
- Loading branch information
1 parent
8c5217b
commit 7d6f1ca
Showing
4 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
:: Back up the source file | ||
ren Program.cs Program.cs.temp | ||
:: Windows publish | ||
copy Program.cs.temp Program.cs | ||
echo #define WINDOWS > define.txt | ||
type Program.cs >> define.txt | ||
dotnet publish -c Release -r win10-x64 | ||
del Program.cs | ||
:: OSX publish | ||
copy Program.cs.temp Program.cs | ||
echo #define OSX > define.txt | ||
type Program.cs >> define.txt | ||
dotnet publish -c Release -r osx.10.10-x64 | ||
del Program.cs | ||
:: Linux publish | ||
copy Program.cs.temp Program.cs | ||
echo #define LINUX > define.txt | ||
type Program.cs >> define.txt | ||
dotnet publish -c Release -r ubuntu.14.04-x64 | ||
del Program.cs | ||
del define.txt | ||
:: Restore backup | ||
ren Program.cs.temp Program.cs | ||
:: Copy over GLFW | ||
copy ".\glfw.dll" ".\bin\Release\netcoreapp1.0\win10-x64\publish\glfw.dll" | ||
copy ".\libglfw.dylib" ".\bin\Release\netcoreapp1.0\osx.10.10-x64\publish\libglfw.dylib" | ||
copy ".\libglfw.so" ".\bin\Release\netcoreapp1.0\ubuntu.14.04-x64\publish\libglfw.so" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
# Back up the source file | ||
mv Program.cs Program.cs.temp | ||
echo "#define WINDOWS" | cat . Program.cs.temp > Program.cs | ||
dotnet publish -c Release -r win10-x64 | ||
rm Program.cs | ||
echo "#define OSX" | cat . Program.cs.temp > Program.cs | ||
dotnet publish -c Release -r osx.10.10-x64 | ||
rm Program.cs | ||
echo "#define LINUX" | cat . Program.cs.temp > Program.cs | ||
dotnet publish -c Release -r ubuntu.14.04-x64 | ||
rm Program.cs | ||
mv Program.cs.temp Program.cs | ||
cp "glfw.dll" "./bin/Release/netcoreapp1.0/win10-x64/publish" | ||
cp "libglfw.dylib" "./bin/Release/netcoreapp1.0/osx.10.10-x64/publish" | ||
cp "libglfw.so" "./bin/Release/netcoreapp1.0/ubuntu.14.04-x64/publish" |