Compare commits
No commits in common. "c6dc37c696d49fecf054e73a3452f96f50d5d879" and "f5b8032eae8fc8dadee017e569369c5b486437fa" have entirely different histories.
c6dc37c696
...
f5b8032eae
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,4 +7,3 @@ raylib-build
|
|||||||
*_stats
|
*_stats
|
||||||
*.data
|
*.data
|
||||||
*.ods
|
*.ods
|
||||||
*.dSYM
|
|
||||||
|
25
Makefile
25
Makefile
@ -1,28 +1,15 @@
|
|||||||
CC = clang
|
CC = clang
|
||||||
CFLAGS = -g -O3 -Iraylib/include -Iwapp/src
|
CFLAGS = -g -O3 -Iraylib/include -Iwapp/src
|
||||||
LDFLAGS = '-Wl,-rpath,$$ORIGIN/raylib/lib' -Lraylib/lib -lraylib
|
LDFLAGS = '-Wl,-rpath,$$ORIGIN/raylib/lib' -Lraylib/lib -lraylib
|
||||||
BASEDIR = $(shell realpath ./)
|
|
||||||
RL_SRCDIR = ${BASEDIR}/raylib-src/src
|
|
||||||
RL_BUILDDIR = ${BASEDIR}/raylib-build
|
|
||||||
RL_DESTDIR = ${BASEDIR}/raylib
|
|
||||||
RL_LIBDIR = ${RL_DESTDIR}/lib
|
|
||||||
RL_INCLUDEDIR = ${RL_DESTDIR}/include
|
|
||||||
|
|
||||||
.PHONY: all raylib wapp no_dod dod
|
.PHONY: all raylib wapp no_dod dod
|
||||||
|
|
||||||
all: no_dod dod
|
all: no_dod dod
|
||||||
|
|
||||||
# raylib:
|
|
||||||
# cmake -S raylib-src -B raylib-build -DCMAKE_INSTALL_PREFIX=raylib -DCMAKE_CONFIGURATION_TYPES=Release -DBUILD_SHARED_LIBS=ON -G "Ninja Multi-Config"
|
|
||||||
# cmake --build raylib-build --config=Release
|
|
||||||
# cmake --install raylib-build --config=Release
|
|
||||||
|
|
||||||
raylib:
|
raylib:
|
||||||
mkdir -p ${RL_BUILDDIR} ${RL_LIBDIR} ${RL_INCLUDEDIR}
|
cmake -S raylib-src -B raylib-build -DCMAKE_INSTALL_PREFIX=raylib -DCMAKE_CONFIGURATION_TYPES=Release -DBUILD_SHARED_LIBS=ON -G "Ninja Multi-Config"
|
||||||
cd ${RL_SRCDIR} && \
|
cmake --build raylib-build --config=Release
|
||||||
make PLATFORM=PLATFORM_DESKTOP RAYLIB_RELEASE_PATH=${RL_BUILDDIR} RAYLIB_LIBTYPE=SHARED && \
|
cmake --install raylib-build --config=Release
|
||||||
cp ${RL_BUILDDIR}/* ${RL_LIBDIR} && \
|
|
||||||
cp ${RL_SRCDIR}/*.h ${RL_INCLUDEDIR}
|
|
||||||
|
|
||||||
wapp:
|
wapp:
|
||||||
cd wapp && python3 -m codegen
|
cd wapp && python3 -m codegen
|
||||||
|
Loading…
x
Reference in New Issue
Block a user