forked from viktorgino/headunit-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (39 loc) · 1.75 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: none
compiler: gcc
sudo: require
dist: trusty
before_install:
- sudo add-apt-repository ppa:beineri/opt-qt59-trusty -y
- sudo add-apt-repository ppa:floe/libusb -y
- sudo add-apt-repository ppa:dan-witt/gstreamer -y
- sudo apt-get update -qq
install:
- sudo apt-get -q -y install qt59base qt59declarative qt59quickcontrols2 qt59multimedia
- sudo apt-get -q -y install build-essential cmake protobuf-compiler
- sudo apt-get -q -y install ofono ofono-dev ofono-phonesim pulseaudio bluez pulseaudio-module-bluetooth libqt5xmlpatterns5-dev libqt5bluetooth5 qtconnectivity5-dev
- sudo apt-get -q -y install libpulse-dev libusb-1.0-0-dev libssl-dev openssl libglib2.0-dev libgstreamer1.0-dev gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-alsa libboost-dev libgstreamer-plugins-base1.0-dev libudev-dev libtag1-dev libprotobuf-dev libunwind8-dev
- sudo apt-get -q -y install git
- source /opt/qt59/bin/qt59-env.sh
script:
- git clone git://anongit.freedesktop.org/gstreamer/qt-gstreamer
- cd qt-gstreamer
- mkdir build
- cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) -DCMAKE_INSTALL_INCLUDEDIR=include -DQT_VERSION=5 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-std=c++11
- make -j4
- sudo make install
- sudo ldconfig
- cd ../../
- git clone https://git.merproject.org/mer-core/libqofono.git
- cd libqofono/src
- qmake -config release
- make -j4
- sudo make install
- cd ../plugin
- qmake -config release
- make -j4
- sudo make install
- cd ../../
- protoc --proto_path=headunit/hu/ --cpp_out=headunit/hu/generated.x64/ headunit/hu/hu.proto
- qmake -config release
- make -j4