Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop'
- Loading branch information
Showing
164 changed files
with
5,803 additions
and
2,064 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,68 @@ | ||
language: cpp | ||
compiler: g++ | ||
os: linux | ||
|
||
before_install: | ||
# Enforce whitespace guidelines | ||
- ./scripts/whitespace_check.sh | ||
|
||
# Enforce Leap Motion copyright notice | ||
- ./scripts/copyright_check.sh | ||
|
||
# g++4.8.1 | ||
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi | ||
- if [ "$CXX" == "g++" ]; then export CXX; fi | ||
- if [ "$CXX" == "g++" ]; then | ||
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
&& export CXX; | ||
fi | ||
|
||
# clang 3.4 | ||
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi | ||
- if [ "$CXX" == "clang++" ]; then | ||
sudo add-apt-repository -y ppa:h-rayflood/llvm; | ||
fi | ||
|
||
- sudo apt-get remove gcc-4.6 g++-4.6 | ||
- sudo apt-get update -qq | ||
- sudo apt-get remove gcc-4.6 g++-4.6 cmake | ||
- sudo apt-get -qq update | ||
|
||
install: | ||
# CMake 3.0 | ||
- sudo apt-get -qq install libc6-i386 | ||
&& wget http://www.cmake.org/files/v3.0/cmake-3.0.2-Linux-i386.tar.gz | ||
&& tar -xzf cmake-3.0.2-Linux-i386.tar.gz | ||
&& sudo cp -fR cmake-3.0.2-Linux-i386/* /usr | ||
|
||
# g++4.8.1 | ||
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq gcc-4.8 g++-4.8; fi | ||
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi | ||
- sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc | ||
- sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++ | ||
|
||
- if [ "$CXX" = "g++" ]; then | ||
sudo apt-get install -qq gcc-4.8 g++-4.8 | ||
&& export CXX="g++-4.8" | ||
&& sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc | ||
&& sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++; | ||
fi | ||
|
||
# clang 3.4 | ||
- if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi | ||
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4"; fi | ||
|
||
- if [ "$CXX" == "clang++" ]; then | ||
sudo apt-get install --allow-unauthenticated -qq clang-3.4 | ||
&& export CXX="clang++-3.4"; | ||
fi | ||
|
||
before_script: | ||
- cmake . | ||
script: | ||
- export CPATH=/usr/include/c++/4.8:/usr/include/x86_64-linux-gnu/c++/4.8/:$CPATH | ||
- export LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8:$LD_LIBRARY_PATH | ||
- cmake . -DCMAKE_BUILD_TYPE=Release | ||
|
||
script: | ||
# Build Autowriring, run unit tests, and install | ||
- make -j 8 || make | ||
- make test | ||
- ctest --output-on-failure | ||
- sudo make install | ||
|
||
# Package | ||
- sudo cpack || (cat _CPack_Packages/Linux/TGZ/InstallOutput.log; exit 1) | ||
|
||
# Build examples from installed Autowiring | ||
- cd examples | ||
&& cmake . | ||
&& make | ||
&& cd .. | ||
|
||
after_failure: | ||
- cat Testing/Temporary/LastTest.log 2> /dev/null | ||
os: | ||
- linux | ||
- osx |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (C) 2012-2014 Leap Motion, Inc. All rights reserved. | ||
#pragma once | ||
|
||
// | ||
// Define preprocessor macros from CMake variables | ||
// | ||
|
||
// Are we building autonet? | ||
#cmakedefine01 AUTOWIRING_BUILD_AUTONET | ||
|
||
// Are we linking with C++11 STL? | ||
#cmakedefine01 USE_LIBCXX | ||
#if USE_LIBCXX | ||
#define AUTOWIRING_USE_LIBCXX 1 | ||
#else | ||
#define AUTOWIRING_USE_LIBCXX 0 | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
# - Config file for the websocketpp package | ||
# - Config file for the autowiring package | ||
# It defines the following variables | ||
# AUTOWIRING_FOUND - indicates that the module was found | ||
# AUTOWIRING_INCLUDE_DIR - include directories | ||
# autowiring_FOUND - indicates that the module was found | ||
# autowiring_INCLUDE_DIR - include directories | ||
|
||
# Check if local build | ||
if ("@CMAKE_CURRENT_BINARY_DIR@" STREQUAL CMAKE_CURRENT_LIST_DIR) | ||
set(autowiring_INCLUDE_DIR "@PROJECT_SOURCE_DIR@") | ||
else() | ||
set(autowiring_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/../include") | ||
endif() | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/AutowiringTargets.cmake") | ||
set(autowiring_FOUND TRUE) | ||
set(autowiring_INCLUDE_DIR "@INSTALL_INCLUDE_DIR@") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.