diff --git a/.travis.yml b/.travis.yml index 79e5022..3a5d7ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,19 @@ +language: cpp + +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 -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 + +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/ + +script: make diff --git a/README.md b/README.md index 5b60739..0832dbd 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: +if you wanna use qmake i provide 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