XInputSimulator staticly linked

This commit is contained in:
mrbesen 2022-04-20 23:29:40 +02:00
parent 5164e6adfb
commit ffd745f446
Signed by untrusted user: MrBesen
GPG Key ID: 596B2350DCD67504
5 changed files with 13 additions and 1 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "thirdparty/Log"]
path = thirdparty/Log
url = https://git.okaestne.de/okaestne/Log.git
[submodule "thirdparty/XInputSimulator"]
path = thirdparty/XInputSimulator
url = https://git.mrbesen.de/MrBesen/XInputSimulator.git

View File

@ -7,6 +7,7 @@ It works by taking a screenshot every second, analysing it using opencv and clic
### Dependencies
- opencv4
- [XInputSimulator](https://github.com/a3f/XInputSimulator.git)
- Qt5
### Running
just execute it.

View File

@ -3,7 +3,7 @@ QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
unix:LIBS += -lX11 -lXext `pkg-config opencv4 --libs` -lXInputSimulator
unix:LIBS += thirdparty/XInputSimulator/build/libXInputSimulator.a -lX11 -lXtst -lXext -lxcb -lXau -pthread -lXdmcp -lrt `pkg-config opencv4 --libs`
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings

7
makeXInputSimulator.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
rm -rf thirdparty/XInputSimulator/build
mkdir -p thirdparty/XInputSimulator/build
cd thirdparty/XInputSimulator/build/
cmake ../XInputSimulator/
make -j

1
thirdparty/XInputSimulator vendored Submodule

@ -0,0 +1 @@
Subproject commit 0151c34bd261bc8b28cc20bc5fcf4d6447d0128d