All features enabled for Travis, overlay-scrollbar fix

presentation
MarPiRK 11 years ago
parent ab1f06fc91
commit 32a9a1cc25
  1. 9
      .travis.yml
  2. 6
      CMakeLists.txt
  3. 2
      src/gui/widgets/Scrollbar.h
  4. 4
      src/mathtex/CMakeLists.txt

@ -3,9 +3,11 @@ language: cpp
# clang is not supported for poppler
compiler: gcc
os: linux
before_install:
- "sudo apt-get update -qq"
- "sudo apt-get install -y glade-gtk2 libopenjpeg-dev mm-common"
- "sudo apt-get install -y glade-gtk2 libopenjpeg-dev libcppunit-dev liboverlay-scrollbar-0.2-dev dvipng texlive"
- "wget https://launchpad.net/ubuntu/+source/cmake/2.8.8-2ubuntu1/+build/3441442/+files/cmake_2.8.8-2ubuntu1_amd64.deb"
- "wget https://launchpad.net/ubuntu/+archive/primary/+files/cmake-data_2.8.8-2ubuntu1_all.deb"
- "sudo apt-get remove cmake-data cmake"
@ -18,8 +20,5 @@ before_script:
- "cd build"
script:
- "cmake .. -DBUILD_BOOST:BOOL=ON -DEXT_GLIBMM:BOOL=ON -DCMAKE_DEBUG_INCLUDES_LDFLAGS:BOOL=ON"
- "cmake .. -DBUILD_BOOST=ON -DEXT_GLIBMM=ON -DCMAKE_DEBUG_INCLUDES_LDFLAGS=ON -DENABLE_MATHTEX=ON -DENABLE_OS=ON -DENABLE_CPPUNIT=ON -DUNSTABLE_LAYERS_SIDEBAR=ON"
- "make"
os: linux

@ -120,14 +120,14 @@ set (PACKAGE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/share")
# CppUnit
option (ENABLE_CPPUNIT "Build CppUnit test instead of xournalpp application" OFF)
if (ENABLE_CPPUNIT)
pkg_check_modules (CppUnit REQUIRED "cppunit >= 1.13-0")
pkg_check_modules (CppUnit REQUIRED "cppunit >= 1.12-0")
endif (ENABLE_CPPUNIT)
# Overlay scrollbar
option (ENABLE_OS "Overlay Scrollbar support" OFF)
if (ENABLE_OS)
pkg_check_modules (os REQUIRED "overlay-scrollbar-0.1 >= 0.1.12")
add_includes_ldflags ("${os_LDFLAGS}" "${${_INCLUDE_DIRS}")
pkg_check_modules (OS REQUIRED "overlay-scrollbar-0.2")
add_includes_ldflags ("${OS_LDFLAGS}" "${OS_INCLUDE_DIRS}")
endif (ENABLE_OS)
# Mathtex

@ -11,7 +11,7 @@
#pragma once
#include <config.h>
#include <config-features.h>
#include <XournalType.h>
#ifdef ENABLE_OS

@ -1,11 +1,11 @@
find_program (PATH_LATEX "latex")
if (NOT PATH_LATEX)
message (ERROR "\"latex\" command not found! You must install latex before installing mathtex.")
message (FATAL_ERROR "\"latex\" command not found! You must install latex before installing mathtex.")
endif (NOT PATH_LATEX)
find_program (PATH_DVIPNG "dvipng")
if (NOT PATH_DVIPNG)
message (ERROR "\"dvipng\" command not found! You must install dvipng before installing mathtex.")
message (FATAL_ERROR "\"dvipng\" command not found! You must install dvipng before installing mathtex.")
endif (NOT PATH_DVIPNG)
include (CheckIncludeFiles)

Loading…
Cancel
Save