-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve remake_* and add OLED support
- Loading branch information
1 parent
88fae3c
commit 9370fb8
Showing
8 changed files
with
217 additions
and
22 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
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/bin/bash | ||
|
||
# this version compile against OS' Lua | ||
# Only OLED plugin is compiled | ||
|
||
# USE_DIRECTFB - Build directFB plugin | ||
# USE_CURSES - Build Curses plugin | ||
# USE_OLED - Build OLED screen plugin | ||
# DEBUG - Add debuging messages | ||
|
||
#PLUGIN_DIR=/usr/local/lib/Selene | ||
PLUGIN_DIR=$( pwd ) | ||
|
||
cd src | ||
|
||
cd SeleneLibrary | ||
echo | ||
echo "Selene Library" | ||
echo "--------------" | ||
LFMakeMaker -v +f=Makefile --opts="\`pkg-config --cflags lua\` -Wall -fPIC" *.c -so=../../libSelene.so > Makefile | ||
|
||
cd ../SelPlugins/OLED/ | ||
echo | ||
echo "OLED plugin" | ||
echo "-----------" | ||
LFMakeMaker -v +f=Makefile -cc="gcc -Wall \`pkg-config --cflags lua\` -DUSE_OLED -fPIC -std=c99 " *.c -so=../../../SelOLED.so > Makefile | ||
|
||
cd ../Curses/ | ||
echo | ||
echo "Curses plugin" | ||
echo "-------------" | ||
LFMakeMaker -v +f=Makefile -cc="gcc -Wall \`pkg-config --cflags lua\` -fPIC -std=c99 " *.c -so=../../../SelCurses.so > Makefile | ||
|
||
cd ../DirectFB | ||
echo | ||
echo "DirectFB source" | ||
echo "-----------" | ||
echo | ||
LFMakeMaker -v +f=Makefile -cc="gcc -Wall -fPIC -std=c99 " *.c -so=../../../SelDirectFB.so > Makefile | ||
|
||
cd ../.. | ||
echo | ||
echo "Main source" | ||
echo "-----------" | ||
LFMakeMaker -v +f=Makefile --opts=" -Wall -DxDEBUG \ | ||
\`pkg-config --cflags lua\` \`pkg-config --libs lua\` \ | ||
-DUSE_OLED -lArduiPi_OLED \ | ||
-DPLUGIN_DIR='\"$PLUGIN_DIR\"' -L../ -L$PLUGIN_DIR -lSelene \ | ||
-lpaho-mqtt3c -llua -lm -ldl -Wl,--export-dynamic -lpthread" \ | ||
*.c -t=../Selene > Makefile | ||
|
||
|
||
echo | ||
echo "Don't forget if you wan to run it without installing first" | ||
echo export LD_LIBRARY_PATH=$PLUGIN_DIR:$LD_LIBRARY_PATH | ||
|
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
|
||
# this version compile against Lua 5.3.4 | ||
|
||
# USE_OLED - Build OLED screen plugin | ||
# DEBUG - Add debuging messages | ||
|
||
# PLUGIN_DIR=/usr/local/lib/Selene | ||
PLUGIN_DIR=$( pwd ) | ||
|
||
LUA_DIR=/home/laurent/Projets/lua-5.3.4/install | ||
|
||
cd src | ||
|
||
cd SeleneLibrary | ||
echo | ||
echo "Selene Library" | ||
echo "--------------" | ||
LFMakeMaker -v +f=Makefile --opts="-isystem $LUA_DIR/include -Wall -fPIC" *.c -so=../../libSelene.so > Makefile | ||
|
||
cd ../SelPlugins/OLED/ | ||
echo | ||
echo "OLED plugin" | ||
echo "-----------" | ||
LFMakeMaker -v +f=Makefile -cc="gcc -Wall \`pkg-config --cflags lua\` -DUSE_OLED -fPIC -std=c99 " *.c -so=../../../SelOLED.so > Makefile | ||
|
||
cd ../Curses/ | ||
echo | ||
echo "Curses plugin" | ||
echo "-------------" | ||
LFMakeMaker -v +f=Makefile -cc='gcc -Wall -fPIC -std=c99 ' *.c -so=../../../SelCurses.so > Makefile | ||
|
||
cd ../DirectFB | ||
echo | ||
echo "DirectFB source" | ||
echo "-----------" | ||
echo | ||
LFMakeMaker -v +f=Makefile -cc='gcc -Wall -fPIC -std=c99 ' *.c -so=../../../SelDirectFB.so > Makefile | ||
|
||
cd ../.. | ||
echo | ||
echo "Main source" | ||
echo "-----------" | ||
LFMakeMaker -v +f=Makefile --opts="-isystem -Wall -DxDEBUG \ | ||
-I$LUA_DIR/include -L$LUA_DIR/lib \ | ||
-DUSE_OLED -lArduiPi_OLED \ | ||
-DPLUGIN_DIR='\"$PLUGIN_DIR\"' -L$PLUGIN_DIR -lSelene \ | ||
-lpaho-mqtt3c -llua -lm -ldl -Wl,--export-dynamic -lpthread" \ | ||
*.c -t=../Selene > Makefile | ||
|
||
|
||
echo | ||
echo "Don't forget if you wan to run it without installing first" | ||
echo export LD_LIBRARY_PATH=$PLUGIN_DIR:$LD_LIBRARY_PATH | ||
|
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