Skip to content

Commit

Permalink
Merge branch 'release/1.1'
Browse files Browse the repository at this point in the history
Conflicts:
	src/backend/avro/AvroCpp/api/NodeImpl.hh
	src/backend/avro/AvroCpp/impl/FileStream.cc
  • Loading branch information
drussel committed Mar 7, 2014
2 parents 3a81f94 + 19549e8 commit feabf04
Show file tree
Hide file tree
Showing 514 changed files with 620,521 additions and 101,595 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@
examples/Files.cmake
src/Files.cmake
include/RMF.h
include/RMF/HDF5.h
include/RMF/HDF5.h
test/Files.cmake
benchmark/Files.cmake
bin/Files.cmake
include/RMF.h
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "src/avrocpp"]
path = src/avrocpp
url = ../avrocpp.git
[submodule "cmake_modules"]
path = cmake_modules
url = ../cmake_modules
[submodule "tools/developer_tools"]
path = tools/dev_tools
url = ../developer_tools.git
3 changes: 3 additions & 0 deletions .imp_info.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "RMF"
}
40 changes: 40 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
language: cpp
branches:
only:
- master
- develop
compiler:
- gcc
- clang
env:
- INSTALL="libhdf5-serial-dev liblog4cxx10-dev" BOOST= FLAGS= TESTS=RMF TEST_SETUP=
- INSTALL="" BOOST= FLAGS= TESTS=RMF TEST_SETUP=
git:
submodules: false

matrix:
exclude:
# I don't understand this failure, and it is only in deprecated code
- compiler: gcc
env: INSTALL="libhdf5-serial-dev liblog4cxx10-dev" BOOST= FLAGS= TESTS=RMF TEST_SETUP=
include:
# can't get it to work with the python module
- compiler: clang
env: INSTALL= BOOST= FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer" TESTS=cpp TEST_SETUP=

before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libboost$BOOST-all-dev swig libc-dbg $INSTALL

script:
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="$FLAGS" -DCMAKE_EXE_LINKER_FLAGS="$FLAGS" -DCMAKE_MODULE_LINKER_FLAGS="$FLAGS" -DCMAKE_SHARED_LINKER_FLAGS="$FLAGS" -DIMP_TEST_SETUP=$TEST_SETUP
- make -j 2
- export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
- ctest -j 2 --output-on-failure -L $TESTS

# sanitize :-) -fsanitize=address -fno-omit-frame-pointer
# -fsanitize=undefined
#1.48 seems to exist
# [ci skip]
69 changes: 53 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,85 @@ project(RMF)
# needs to be in main CMakeLists.txt
enable_testing()

message(STATUS "Running setup_cmake.py")
execute_process(COMMAND python ${PROJECT_SOURCE_DIR}/scripts/setup-cmake.py
execute_process(COMMAND python setup_git.py
RESULT_VARIABLE setup
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
OUTPUT_VARIABLE toutput
ERROR_VARIABLE error
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
OUTPUT_STRIP_TRAILING_WHITESPACE)
if(NOT ${setup} EQUAL 0)
message(FATAL_ERROR " Failed to setup cmake files")
message(FATAL_ERROR " Failed to run setup_git.py: ${setup}; ${error}")
endif()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake_modules)

# C++11 can use the boost version
set(Boost_NO_BOOST_CMAKE ON)
find_package(Boost COMPONENTS system filesystem thread program_options iostreams
REQUIRED)

include(FindHDF5)
find_package(HDF5)

if("${HDF5_INCLUDE_DIRS}" MATCHES .*NOTFOUND)
set(RMF_DEPRECATED_BACKENDS 0 CACHE BOOL "Whether to build deprecated backends.")
set(HDF5_LIBRARIES "" CACHE INTERNAL "" FORCE)
set(HDF5_INCLUDE_DIRS "" CACHE INTERNAL "" FORCE)
else()
set(RMF_DEPRECATED_BACKENDS 1 CACHE BOOL "Whether to build deprecated backends.")
endif()

if(RMF_DEPRECATED_BACKENDS)
message(STATUS "Deprecated backends (and hdf5) are enabled")
else()
message(STATUS "Deprecated backends (and hdf5) are disabled")
endif()

include(cmake_modules/IMPExecuteProcess.cmake)
include(cmake_modules/FindLog4CXX.cmake)
include(cmake_modules/IMPFindC++11.cmake)
include(cmake_modules/IMPFindCompilerFlags.cmake)

if(RMF_DEPRECATED_BACKENDS)
imp_execute_process("Making RMF/HDF5.h" ${PROJECT_SOURCE_DIR}
COMMAND "python" "${PROJECT_SOURCE_DIR}/tools/dev_tools/make_all_header.py" ${PROJECT_BINARY_DIR}/include/RMF/HDF5.h RMF/HDF5 ${PROJECT_SOURCE_DIR}/include/RMF/HDF5)
endif()

if(NOT "${output}" STREQUAL "")
message(STATUS ${output})
endif()
imp_execute_process("Making RMF.h" ${PROJECT_SOURCE_DIR}
COMMAND "python" "${PROJECT_SOURCE_DIR}/tools/dev_tools/make_all_header.py" ${PROJECT_BINARY_DIR}/include/RMF.h RMF ${PROJECT_SOURCE_DIR}/include/RMF)


message(STATUS "Running setup_cmake.py")
imp_execute_process("Running setup_cmake.py" ${PROJECT_SOURCE_DIR} COMMAND python ${PROJECT_SOURCE_DIR}/tools/dev_tools/setup_cmake.py)

include_directories("${PROJECT_BINARY_DIR}/src"
"${PROJECT_SOURCE_DIR}/src")

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)

set(RMF_INCLUDE_PATH "" CACHE INTERNAL "" FORCE)

# make sure it initialized
set(RMF_TESTS "" CACHE INTERNAL "" FORCE)

if(POLICY CMP0017)
cmake_policy(SET CMP0017 NEW)
endif(POLICY CMP0017)

include(FindLog4CXX)

if (${Log4CXX_LIBRARY} MATCHES "Log4CXX_LIBRARY-NOTFOUND")
set(RMF_HAS_LOG4CXX "0" CACHE BOOL "Whether to use Log4CXX")
set(RMF_HAS_LOG4CXX "0" CACHE BOOL "Whether to use Log4CXX" FORCE)
message(STATUS "Logging disabled")
set(Log4CXX_LIBRARY "")
else()
message(STATUS "Logging enabled")
set(RMF_HAS_LOG4CXX "1" CACHE BOOL "Whether to use Log4CXX")
set(RMF_HAS_LOG4CXX "1" CACHE BOOL "Whether to use Log4CXX" FORCE)
include_directories(${Log4CXX_INCLUDE_DIR})
link_directories(${Log4CXX_LIBRARY_DIR})
endif()

set(Boost_NO_BOOST_CMAKE ON)
find_package(Boost COMPONENTS system filesystem thread program_options
REQUIRED)

include(GNUInstallDirs)

include(FindHDF5)
find_package(HDF5 REQUIRED)

include_directories(${HDF5_INCLUDE_DIRS})
set(RMF_INCLUDE_PATH ${RMF_INCLUDE_PATH} ${HDF5_INCLUDE_DIRS}
Expand Down Expand Up @@ -79,6 +115,7 @@ add_subdirectory(src)
add_subdirectory(bin)

add_subdirectory(plugins/vmd/)
add_subdirectory(plugins/pymol/)

# swig support is a little broken

Expand Down
24 changes: 0 additions & 24 deletions CMakeModules/FindLog4CXX.cmake

This file was deleted.

Loading

0 comments on commit feabf04

Please sign in to comment.