Skip to content

Commit

Permalink
Version 1.0.2 instead of 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Sep 9, 2024
1 parent 0e0ed68 commit c8efb0c
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ rm2-framebuffer
*.so.*
*.so
dist
rm2fb*.tar.gz
9 changes: 5 additions & 4 deletions dist.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
qmake
make
mkdir -p ./dist
arm-linux-gnueabihf-strip ./src/client/librm2fb_client.so.1.1.0
cp ./src/xofb/librm2fb_xofb.so.1.1.0 ./dist
cp ./src/server/librm2fb_server.so.1.1.0 ./dist
cp ./src/client/librm2fb_client.so.1.1.0 ./dist
version=$(grep VERSION= version.pri | cut -d= -f2)
arm-linux-gnueabihf-strip ./src/client/librm2fb_client.so.$version
cp ./src/xofb/librm2fb_xofb.so.$version ./dist
cp ./src/server/librm2fb_server.so.$version ./dist
cp ./src/client/librm2fb_client.so.$version ./dist
2 changes: 2 additions & 0 deletions rm2fb.pro
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
TEMPLATE = subdirs

include(version.pri)

SUBDIRS = \
src/loader \ # relative paths
src/server \
Expand Down
7 changes: 4 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
qmake
make
mkdir -p dist/rm2fb
cp src/loader/librm2fb_demo.so.1.1.0 dist/rm2fb/
cp src/server/librm2fb_server.so.1.1.0 dist/rm2fb/
cp src/client/librm2fb_client.so.1.1.0 dist/rm2fb/
version=$(grep VERSION= version.pri | cut -d= -f2)
cp src/loader/librm2fb_demo.so.$version dist/rm2fb/
cp src/server/librm2fb_server.so.$version dist/rm2fb/
cp src/client/librm2fb_client.so.$version dist/rm2fb/
cp scripts/run.sh dist/rm2fb/rm2fb.sh
chmod +x dist/rm2fb/rm2fb.sh
cd dist/
Expand Down
5 changes: 3 additions & 2 deletions scripts/run.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
systemctl stop xochitl
LD_PRELOAD=${DIR}/librm2fb_server.so.1.1.0 `which xochitl` &
version=$(grep VERSION= version.pri | cut -d= -f2)
LD_PRELOAD=${DIR}/librm2fb_server.so.$version `which xochitl` &
pid=$!
sleep 2
LD_PRELOAD=${DIR}/librm2fb_client.so.1.1.0 $*
LD_PRELOAD=${DIR}/librm2fb_client.so.$version $*
pid2=$!
wait $pid2
kill -9 -${pid}
Expand Down
2 changes: 1 addition & 1 deletion src/client/client.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

TEMPLATE = lib
TARGET = rm2fb_client
VERSION = 1.1.0
INCLUDEPATH += .
include(../../version.pri)

# The following define makes your compiler warn you if you use any
# feature of Qt which has been marked as deprecated (the exact warnings
Expand Down
1 change: 1 addition & 0 deletions src/loader/loader.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
TEMPLATE = lib
TARGET = rm2fb_demo
INCLUDEPATH += .
include(../../version.pri)

# The following define makes your compiler warn you if you use any
# feature of Qt which has been marked as deprecated (the exact warnings
Expand Down
2 changes: 1 addition & 1 deletion src/server/server.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
TEMPLATE = lib
TARGET = rm2fb_server
INCLUDEPATH += .
VERSION = 1.1.0
include(../../version.pri)

# The following define makes your compiler warn you if you use any
# feature of Qt which has been marked as deprecated (the exact warnings
Expand Down
2 changes: 1 addition & 1 deletion src/xofb/xofb.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
TEMPLATE = lib
TARGET = rm2fb_xofb
INCLUDEPATH += .
VERSION = 1.1.0
include(../../version.pri)

# The following define makes your compiler warn you if you use any
# feature of Qt which has been marked as deprecated (the exact warnings
Expand Down
1 change: 1 addition & 0 deletions version.pri
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION=1.0.2

0 comments on commit c8efb0c

Please sign in to comment.