FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
GuvaCode/builds_raylib.sh at main · GuvaCode/GuvaCode · GitHub
GuvaCode
/
GuvaCode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
GuvaCode
/
builds_raylib.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
112 lines (76 loc) · 3.14 KB
Breadcrumbs
GuvaCode
/
builds_raylib.sh
Copy path
File metadata and controls
executable file
·
112 lines (76 loc) · 3.14 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#!
/bin/bash
read
-p
"
install dependencies (y/n)?
"
answer
case
${answer
:
0
:
1}
in
y|Y )
sudo apt-get install mingw-w64-x86-64-dev
sudo apt-get install mingw-w64-i686-dev
sudo apt-get install gcc-mingw-w64-x86-64
sudo apt-get install gcc-mingw-w64-i686
sudo apt-get install gcc-mingw-w64-i686-posix
sudo apt-get install gcc-mingw-w64-i686-win32
sudo apt-get install build-essential libc6-dev-i386
sudo apt-get install libgl1-mesa-dev:i386
;;
*
)
echo
skiping
;;
esac
clear
mkdir libs
mkdir libs/x86_64-linux
mkdir libs/x86_32-linux
mkdir libs/x86_64-windows
mkdir libs/x86_32-windows
echo
"
build raylib ....
"
echo
"
build x64 linux ...
"
cd
raylib/src
make clean
make PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED RAYLIB_MODULE_RAYGUI=TRUE RAYLIB_MODULE_PHYSAC=TRUE
echo
"
copy libs x86_64-linux ...
"
rm -f ../../libs/x86_64-linux/
*
cp libraylib.so.5.0.0 ../../libs/x86_64-linux/libraylib.so
#
ln -s /../../libs/x86_64-linux/libraylib.so.5.0.0 /../../libs/x86_64-linux/libraylib.so.500
#
ln -s /../../libs/x86_64-linux/libraylib.so.500 /../../libs/x86_64-linux/libraylib.so
make clean
make PLATFORM=PLATFORM_DESKTOP RAYLIB_MODULE_RAYGUI=TRUE RAYLIB_MODULE_PHYSAC=TRUE
cp libraylib.a ../../libs/x86_64-linux
echo
"
build x86_32 linux ...
"
#
## cd raylib/src
make clean
make PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED RAYLIB_MODULE_RAYGUI=TRUE RAYLIB_MODULE_PHYSAC=TRUE LDFLAG=-m32
echo
"
copy libs x86_32-linux ...
"
rm -f ../../libs/x86_32-linux/
*
cp libraylib.so.5.0.0 ../../libs/x86_32-linux/libraylib.so
#
ln -s /../../libs/x86_32-linux/libraylib.so.5.0.0 /../../libs/x86_32-linux/libraylib.so.500
#
ln -s /../../libs/x86_32-linux/libraylib.so.500 /../../libs/x86_32-linux/libraylib.so
make clean
make PLATFORM=PLATFORM_DESKTOP RAYLIB_MODULE_RAYGUI=TRUE RAYLIB_MODULE_PHYSAC=TRUE LDFLAG=-m32
cp libraylib.a ../../libs/x86_32-linux
#
--------------------------------------------------------------------------------------------------------
make clean
echo
"
build x64 windows ...
"
cp ../../raygui/src/raygui.h raygui.c
cp ../../physac/src/physac.h physac.h
#
### x86_64-w64-mingw32-windres
x86_64-w64-mingw32-windres raylib.rc -o raylib.rc.data
x86_64-w64-mingw32-windres raylib.dll.rc -o raylib.dll.rc.data
make PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED RAYLIB_MODULE_RAYGUI=TRUE RAYLIB_MODULE_PHYSAC=TRUE OS=Windows_NT CC=x86_64-w64-mingw32-gcc AR=x86_64-w64-mingw32-ar
rm -f ../../libs/x86_64-windows/
*
cp libraylibdll.a ../../libs/x86_64-windows
cp raylib.dll ../../libs/x86_64-windows
make clean
echo
"
build x32 windows ...
"
cp ../../raygui/src/raygui.h raygui.c
cp ../../physac/src/physac.h physac.h
#
### i686-w64-mingw32-windres
i686-w64-mingw32-windres raylib.rc -o raylib.rc.data
i686-w64-mingw32-windres raylib.dll.rc -o raylib.dll.rc.data
make PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED RAYLIB_MODULE_RAYGUI=TRUE RAYLIB_MODULE_PHYSAC=TRUE OS=Windows_NT CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar
rm -f ../../libs/x86_32-windows/
*
cp libraylibdll.a ../../libs/x86_32-windows
cp raylib.dll ../../libs/x86_32-windows
#
make clean
rm raygui.c
rm physac.h
echo
"
--------------------
"
echo
"
| All done .. |
"
echo
"
--------------------
"
Back
|
FazBrowse Home
|
New Git URL