From 09939d8900e2bb31e26fa1aec4988597f57625ff Mon Sep 17 00:00:00 2001 From: pythoneer Date: Sun, 15 Feb 2015 20:02:28 +0100 Subject: [PATCH 1/6] Update .travis.yml --- .travis.yml | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index 79e5022..e834140 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,14 @@ +language: cpp + +compiler: gcc + before_install: - - sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa - - sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test - sudo apt-get update -qq - - sudo apt-get install -qq qt5-qmake qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev libx11-dev libxtst-dev - - sudo apt-get install gcc-4.8 - - sudo apt-get install g++-4.8 - - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 - - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 - - sudo update-alternatives --config gcc - - sudo update-alternatives --config g++ - - sudo apt-get update - - sudo apt-get upgrade -y - - sudo apt-get dist-upgrade -script: - - g++ --version - - gcc --version - - qmake -qt=qt5 -v - - qmake -qt=qt5 XInputSimulator/ - - make + - sudo apt-get install -qq cmake sqlite3 qt4-dev-tools + +before_script: + - mkdir build + - cd build + - cmake ../XInputSimulator/ + +script: make From c2aeeb5bc39f6f6556d92fc4b5779d20eaca6365 Mon Sep 17 00:00:00 2001 From: pythoneer Date: Sun, 15 Feb 2015 20:02:54 +0100 Subject: [PATCH 2/6] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e834140..9a247c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ compiler: gcc before_install: - sudo apt-get update -qq - - sudo apt-get install -qq cmake sqlite3 qt4-dev-tools + - sudo apt-get install -qq cmake sqlite3 libx11-dev libxtst-dev before_script: - mkdir build From ef56b6c9024056b43007582f5f7e181a99c34ab7 Mon Sep 17 00:00:00 2001 From: pythoneer Date: Sun, 15 Feb 2015 20:08:26 +0100 Subject: [PATCH 3/6] Update .travis.yml --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9a247c5..bc342d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,18 @@ language: cpp compiler: gcc before_install: + - sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa + - sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test - sudo apt-get update -qq + - sudo apt-get install gcc-4.8 + - sudo apt-get install g++-4.8 + - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 + - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 + - sudo update-alternatives --config gcc + - sudo update-alternatives --config g++ + - sudo apt-get update + - sudo apt-get upgrade -y + - sudo apt-get dist-upgrade - sudo apt-get install -qq cmake sqlite3 libx11-dev libxtst-dev before_script: From e838d7d4c35d46bee8137042ce2e409d505d5094 Mon Sep 17 00:00:00 2001 From: pythoneer Date: Sun, 15 Feb 2015 20:16:42 +0100 Subject: [PATCH 4/6] Update .travis.yml --- .travis.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index bc342d4..3a5d7ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,17 @@ language: cpp -compiler: gcc +compiler: g++ before_install: - - sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa - - sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test + - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - sudo apt-get update -qq - - sudo apt-get install gcc-4.8 - - sudo apt-get install g++-4.8 - - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 - - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 - - sudo update-alternatives --config gcc - - sudo update-alternatives --config g++ - - sudo apt-get update - - sudo apt-get upgrade -y - - sudo apt-get dist-upgrade - - sudo apt-get install -qq cmake sqlite3 libx11-dev libxtst-dev + +install: + - sudo apt-get install -qq g++-4.8 + - export CXX="g++-4.8" before_script: + - sudo apt-get install -qq sqlite3 libx11-dev libxtst-dev - mkdir build - cd build - cmake ../XInputSimulator/ From 0b8657aa172c35bd3d7e73d2ec9f2050cec7d55e Mon Sep 17 00:00:00 2001 From: pythoneer Date: Sun, 15 Feb 2015 21:07:25 +0100 Subject: [PATCH 5/6] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b60739..70f831d 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ XInputSimulator =============== Cross (X) Plattform (Linux/Mac/Win) Simulator for input devices to simulate mouse moves/clicks/scrolls or keyboard keystrokes. + +[![Build Status](https://travis-ci.org/pythoneer/XInputSimulator.svg?branch=master)](https://travis-ci.org/pythoneer/XInputSimulator) This program is published under the terms of the LGPL (http://www.gnu.org/licenses/) ####How to use @@ -16,12 +18,24 @@ For a detailed example see main.cpp sim.mouseUp(XInputSimulator::LEFT_MOUSE_BUTTON); //release the mousebutton press ``` -building for Linux use -lX11 | include X11/Xlib.h X11/Xutil.h +building for Linux use -lX11 -lXtst | include X11/Xlib.h X11/Xutil.h building for Mac use -framework ApplicationServices | include ApplicationServices/ApplicationServices.h building for Win use User32.lib | include Windows.h if you wanna use qmake i provided a XInputSimulator.pro file – simply type: +``` >$ qmake XInputSimulator.pro && make +``` + +for cmake there is a CMakeLists.txt file -simply type: +``` +>$ mkdir build +>$ cd build +>$ cmake ../XInputSimulator/ +>$ make +``` + +for xcode there is an xcode project file ####Status early Alpha 2013-07-16: Linux, Mac and Win part with following functions From baf1c6954d5a2885fee65df1d96cec240de05bdf Mon Sep 17 00:00:00 2001 From: pythoneer Date: Sun, 15 Feb 2015 21:07:58 +0100 Subject: [PATCH 6/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 70f831d..0832dbd 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ building for Linux use -lX11 -lXtst | include X11/Xlib.h X11/Xutil.h building for Mac use -framework ApplicationServices | include ApplicationServices/ApplicationServices.h building for Win use User32.lib | include Windows.h -if you wanna use qmake i provided a XInputSimulator.pro file – simply type: +if you wanna use qmake i provide a XInputSimulator.pro file – simply type: ``` >$ qmake XInputSimulator.pro && make ```