Compare commits
2 Commits
f5b8032eae
...
c6dc37c696
Author | SHA1 | Date | |
---|---|---|---|
|
c6dc37c696 | ||
|
3e7641d467 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,3 +7,4 @@ raylib-build
|
||||
*_stats
|
||||
*.data
|
||||
*.ods
|
||||
*.dSYM
|
||||
|
25
Makefile
25
Makefile
@ -1,15 +1,28 @@
|
||||
CC = clang
|
||||
CFLAGS = -g -O3 -Iraylib/include -Iwapp/src
|
||||
LDFLAGS = '-Wl,-rpath,$$ORIGIN/raylib/lib' -Lraylib/lib -lraylib
|
||||
CC = clang
|
||||
CFLAGS = -g -O3 -Iraylib/include -Iwapp/src
|
||||
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
|
||||
|
||||
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:
|
||||
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
|
||||
mkdir -p ${RL_BUILDDIR} ${RL_LIBDIR} ${RL_INCLUDEDIR}
|
||||
cd ${RL_SRCDIR} && \
|
||||
make PLATFORM=PLATFORM_DESKTOP RAYLIB_RELEASE_PATH=${RL_BUILDDIR} RAYLIB_LIBTYPE=SHARED && \
|
||||
cp ${RL_BUILDDIR}/* ${RL_LIBDIR} && \
|
||||
cp ${RL_SRCDIR}/*.h ${RL_INCLUDEDIR}
|
||||
|
||||
wapp:
|
||||
cd wapp && python3 -m codegen
|
||||
|
Loading…
x
Reference in New Issue
Block a user