Skip to content

Commit c33c17e

Browse files
committed
RAYLIB: raylib module wip
1 parent 777010b commit c33c17e

File tree

11 files changed

+7094
-7
lines changed

11 files changed

+7094
-7
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
[submodule "websocket/mongoose"]
1111
path = websocket/mongoose
1212
url = https://github.com/cesanta/mongoose.git
13+
[submodule "raylib/raylib"]
14+
path = raylib/raylib
15+
url = https://github.com/raysan5/raylib.git

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Collection of loadable plugin modules to extend the functionality provided by SmallBASIC.
44

55
Install:
6-
sudo apt-get install libmysqlclient-dev libglfw3-dev libglfw3 libglew-dev
6+
sudo apt install libmysqlclient-dev libglfw3-dev libglfw3 libglew-dev libtool
77

88
## Gallery
99

autogen.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# This file is part of SmallBASIC
2+
#
3+
# Copyright(C) 2001-2020 Chris Warren-Smith.
4+
#
5+
# This program is distributed under the terms of the GPL v2.0 or later
6+
# Download the GNU Public License (GPL) from www.gnu.org
7+
#
8+
9+
git submodule init
10+
git submodule update
11+
112
rm -rf autom4te.cache aclocal.m4
213
mkdir -p m4
314
touch NEWS README AUTHORS ChangeLog

clipboard/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Download the GNU Public License (GPL) from www.gnu.org
66
#
77

8-
AM_CPPFLAGS = -I../include -Wall
8+
AM_CPPFLAGS = -I../include -Wall -I./libclipboard/include
99
lib_LTLIBRARIES = libclipboard.la
1010
libclipboard_la_SOURCES = main.cpp clipboard.c ../include/param.cpp
1111
libclipboard_la_LDFLAGS = -module -rpath '$(libdir)' @CLIPBOARD_LDFLAGS@

configure.ac

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ fi
5353
# checks for glfw
5454
AC_CHECK_HEADERS([GL/gl.h], [], [AC_MSG_ERROR([GL/gl.h not found])])
5555

56-
# checks for clipboard
57-
AC_CHECK_HEADERS([libclipboard.h], [], [AC_MSG_ERROR([libclipboard.h not found])])
58-
5956
dnl change default aru setting to avoid warning
6057
ARFLAGS=cr
6158
AC_SUBST(ARFLAGS)
@@ -65,7 +62,7 @@ AC_PROG_LIBTOOL
6562
AC_PROG_CXX
6663
LT_PREREQ([2.2])
6764

68-
BUILD_SUBDIRS="mysql nuklear glfw clipboard websocket"
65+
BUILD_SUBDIRS="mysql nuklear glfw clipboard websocket raylib"
6966
AC_SUBST(BUILD_SUBDIRS)
7067
checkDebugMode
7168

@@ -77,6 +74,10 @@ mysql/Makefile
7774
nuklear/Makefile
7875
glfw/Makefile
7976
clipboard/Makefile
80-
websocket/Makefile])
77+
websocket/Makefile
78+
raylib/Makefile])
8179

8280
AC_OUTPUT
81+
82+
# create config to libclipboard
83+
cp config.h clipboard/libclipboard-config.h

raylib/Makefile.am

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SmallBASIC
2+
# Copyright(C) 2001-2020 Chris Warren-Smith.
3+
#
4+
# This program is distributed under the terms of the GPL v2.0 or later
5+
# Download the GNU Public License (GPL) from www.gnu.org
6+
#
7+
8+
AM_CPPFLAGS = -I../include -Wall -Wextra -Wshadow -Wdouble-promotion -Wno-unused-parameter -fno-rtti -fno-exceptions -std=c++14 -fPIC
9+
lib_LTLIBRARIES = libraylib.la
10+
libraylib_la_SOURCES = main.cpp ../include/param.cpp
11+
libraylib_la_LDFLAGS = -module -rpath '$(libdir)' -lraylib -lGL -lm -lpthread -ldl -lrt -lX11

0 commit comments

Comments
 (0)