Commit 944f7244 authored by Kitware Robot's avatar Kitware Robot Committed by Dan Lipsa

libproj4 2016-03-08 (41bdf053)

Code extracted from:

    https://gitlab.kitware.com/third-party/proj.git

at commit 41bdf05361007f8c5186f3df9944d86bb273ed13 (for/vtk).
parent 6c0f786e
Pipeline #9071 passed with stage

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

.ExternalData
=============
The VTK ``.ExternalData`` directory is an object store for the
CMake ExternalData module that VTK uses to manage test input
and baseline data.
.git* export-ignore
.hooks* export-ignore
*.sh crlf=input
newalpha crlf=input
newversion crlf=input
pre-commit crlf=input
*.c whitespace=tab-in-indent
*.h whitespace=tab-in-indent
*.cxx whitespace=tab-in-indent
*.hxx whitespace=tab-in-indent
*.txx whitespace=tab-in-indent
*.txt whitespace=tab-in-indent
*.cmake whitespace=tab-in-indent
*.md whitespace=tab-in-indent conflict-marker-size=30
/ThirdParty/sqlite/vtksqlite/vtk_sqlite3.c hooks.MaxObjectKiB=4096
# Ignore whitespace for kwrobot
* -whitespace
# Do not add ExternalData module staging files
.ExternalData*
*~
Makefile
CMakeFiles
CMakeCache.txt
CTestTestfile.cmake
cmake_install.cmake
install_manifest.txt
cmake/project-config*.cmake
# Exclude compiled Python objects.
*.pyc
*.pyo
__pycache__/
/*.manifest
/*.swp
/autom4te.cache
/config.log
/config.status
/config.cache
/proj.pc
/nbproject
/bin
/lib
/DartConfiguration.tcl
/Testing
# html
/html/dl
/html/robots.txt
# nad
/nad/WI
/nad/prvi
/nad/WO
/nad/alaska
/nad/FL
/nad/README.NADUS
/nad/stpaul
/nad/stgeorge
/nad/TN
/nad/conus
/nad/MD
/nad/hawaii
/nad/stlrnc
/nad/null
/nad/*.lla
# src
/src/*.o
/src/*.lo
/src/*.la
/src/proj.dll
/src/*.lib
/src/*.pdb
/src/*.exp
/src/*.opt
/src/*.obj
/src/*.exe
/src/.libs
/src/.deps
/src/*.manifest
/src/*.swp
/src/nad2nad
/src/nad2bin
/src/proj
/src/geod
/src/stamp-h*
/src/proj_config.h
/src/cs2cs
/src/multistresstest
/src/test228
# Loaded by .git/hooks/(pre-commit|commit-msg|prepare-commit-msg)
# during git commit after local hooks have been installed.
hooks_chain_pre_commit="Utilities/Scripts/pre-commit"
hooks_chain_commit_msg="Utilities/Scripts/commit-msg"
hooks_chain_prepare_commit_msg="Utilities/Scripts/prepare-commit-msg"
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt for details.
##
## This software is distributed WITHOUT ANY WARRANTY; without even
## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
## PURPOSE. See the above copyright notice for more information.
##
## Copyright 2012 Sandia Corporation.
## Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
## the U.S. Government retains certain rights in this software.
##
##=============================================================================
#ensure we link against our dependencies
include(module.cmake)
find_package(Dax REQUIRED)
DaxConfigureSerial(REQUIRED)
DaxConfigureCuda()
DaxConfigureTBB()
DaxConfigureOpenMP()
# Collect a list of available backends.
set(DAX_BACKENDS)
if(${Dax_ENABLE_CUDA})
list(APPEND DAX_BACKENDS CUDA)
endif()
if(${Dax_ENABLE_TBB})
list(APPEND DAX_BACKENDS TBB)
endif()
if(${Dax_ENABLE_OPENMP})
list(APPEND DAX_BACKENDS OPENMP)
endif()
list(APPEND DAX_BACKENDS SERIAL)
# Pick the first backed found in list as the default backend
list(GET DAX_BACKENDS 0 DEFAULT_BACKEND)
# Display available options for user selection.
set(VTK_DAX_BACKEND ${DEFAULT_BACKEND} CACHE STRING
"Choose from available backend acclerators")
set_property(CACHE VTK_DAX_BACKEND PROPERTY STRINGS ${DAX_BACKENDS})
# Turn the picked option on and turn off the others.
foreach(backend ${DAX_BACKENDS})
if(${backend} STREQUAL ${VTK_DAX_BACKEND})
set(VTK_DAX_PICKED_${backend} TRUE)
else()
set(VTK_DAX_PICKED_${backend} FALSE)
endif()
endforeach()
# Setting the configuration file to include the appropriate driver.
#we prefer cuda over everything else, than tbb and openmp
set (DAX_DISABLE_BOOST_SP_THREADS 0)
if(${VTK_DAX_PICKED_CUDA})
set (DAX_DISABLE_BOOST_SP_THREADS 1)
set (DAX_DEVICE_ADAPTER "DAX_DEVICE_ADAPTER_CUDA")
elseif(${VTK_DAX_PICKED_TBB})
set (DAX_DEVICE_ADAPTER "DAX_DEVICE_ADAPTER_TBB")
elseif(${VTK_DAX_PICKED_OPENMP})
set (DAX_DEVICE_ADAPTER "DAX_DEVICE_ADAPTER_OPENMP")
else()
set (DAX_DEVICE_ADAPTER "DAX_DEVICE_ADAPTER_SERIAL")
endif()
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/vtkDaxConfig.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/vtkDaxConfig.h" @ONLY)
#needed for our export macros
include_directories(${${vtk-module}_DEPENDS_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${Dax_INCLUDE_DIRS}
)
set(headers
vtkDaxDetailCommon.h
vtkDaxContourImpl.h
vtkDaxThresholdImpl.h
vtkDaxConfig.h
)
#implementation of the algorithms for cpu accelerators
set(cpu_accelerator_srcs
vtkDaxContourImpl.cxx
vtkDaxThresholdImpl.cxx
)
set(vtk_srcs
vtkDaxContour.cxx
vtkDaxThreshold.cxx
${CMAKE_CURRENT_BINARY_DIR}/vtkAcceleratorsDaxObjectFactory.cxx
)
set_source_files_properties(
${headers}
${cpu_accelerator_srcs}
${CMAKE_CURRENT_BINARY_DIR}/vtkAcceleratorsDaxObjectFactory.cxx
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
# Now for the object factory.
set(opengl_overrides
Contour
Threshold
)
# Now we need to generate the object factory for this module. Create a list of
# overrides, and then generate the class that overrides those classes.
set(vtk_module_overrides)
foreach(_override ${opengl_overrides})
list(APPEND vtk_module_overrides vtk${_override})
set(vtk_module_vtk${_override}_override vtkDax${_override})
endforeach()
# Now we iterate and create that class file...
foreach(_class ${vtk_module_overrides})
set(_override ${vtk_module_${_class}_override})
set(_vtk_override_includes "${_vtk_override_includes}
#include \"${_override}.h\"")
set(_vtk_override_creates "${_vtk_override_creates}
VTK_CREATE_CREATE_FUNCTION(${_override})")
set(_vtk_override_do "${_vtk_override_do}
this->RegisterOverride(\"${_class}\",
\"${_override}\",
\"rride for ${vtk-module} module\", 1,
vtkObjectFactoryCreate${_override});")
endforeach()
# Now lets create the object factory classes
string(TOUPPER ${vtk-module} VTK-MODULE)
configure_file(${VTK_CMAKE_DIR}/vtkObjectFactory.h.in