-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
79 changed files
with
1,479 additions
and
391 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
*/Makefile.in | ||
Makefile.in | ||
aclocal.m4 | ||
configure | ||
*/Makefile.in | ||
autom4te.cache | ||
config/ | ||
configure | ||
docs/*.aux | ||
docs/*.log | ||
docs/*.pdf | ||
docs/ref/html | ||
docs/ref/qdptags | ||
docs/ref/warnings | ||
docs/usr/html | ||
docs/usr/warnings | ||
include/qdp_config_internal.h.in | ||
include/qdp_config_internal.h.in~ |
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,12 +1,12 @@ | ||
[submodule "other_libs/libintrin"] | ||
path = other_libs/libintrin | ||
url = git@github.com:usqcd-software/libintrin.git | ||
url = ../libintrin.git | ||
[submodule "other_libs/xpath_reader"] | ||
path = other_libs/xpath_reader | ||
url = git@github.com:usqcd-software/xpath_reader.git | ||
url = ../xpath_reader.git | ||
[submodule "other_libs/qio"] | ||
path = other_libs/qio | ||
url = git@github.com:usqcd-software/qio.git | ||
url = ../qio.git | ||
[submodule "other_libs/filedb"] | ||
path = other_libs/filedb | ||
url = git@github.com:usqcd-software/filedb.git | ||
url = ../filedb.git |
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,87 @@ | ||
set( QDPXX_INSTALL_DIR "@prefix@" ) | ||
set( QDPXX_PARALLEL_ARCH "@CONFIG_PARALLEL_ARCH@" ) | ||
set( QDPXX_INCLUDE_DIR "@prefix@/include" ) | ||
set( QDPXX_LIBDIR "@prefix@/lib") | ||
|
||
# Get the Include directories out of the CFLAGS Line if they start with -I | ||
string(STRIP "@HDF5_CXXFLAGS@ @LIBXML2_CXXFLAGS@ @QMP_CFLAGS@ @QMT_CXXFLAGS@" BASE_EXTRA_CXXFLAGS) | ||
|
||
# Match all strings which start with -I and keep matching anything until we reach another '-' | ||
# [^-] means match everything other than - and the + means do this one or more times. | ||
# | ||
string(REGEX MATCHALL "\\-\\I[^-]+" BASE_EXTRA_INCLUDES ${BASE_EXTRA_CXXFLAGS}) | ||
|
||
# Replace "-I" (ie \-\I ) with nothing | ||
string(REGEX REPLACE "\\-\\I" "" EXTRA_INCLUDE_DIRS ${BASE_EXTRA_INCLUDES}) | ||
separate_arguments(${EXTRA_INCLUDE_DIRS}) | ||
|
||
# Find the library we built and add it as an imported target | ||
# with appropriate include dir and location | ||
function(add_qdpxx_lib LIBNAME) | ||
message(STATUS "Libname: ${LIBNAME}") | ||
|
||
# This will find the file, whether a .so or a .a appropriately | ||
find_library(LIB_${LIBNAME} NAMES ${LIBNAME} PATHS "${QDPXX_LIBDIR}") | ||
|
||
# Set up the library as an imported target | ||
add_library(${LIBNAME} UNKNOWN IMPORTED ) | ||
|
||
# Explain where it is | ||
set_target_properties(${LIBNAME} PROPERTIES IMPORTED_LOCATION ${LIB_${LIBNAME}}) | ||
# Set the include dir | ||
set_target_properties(${LIBNAME} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${QDPXX_INCLUDE_DIR}") | ||
endfunction() | ||
|
||
# Toplevel QDP++ library | ||
add_qdpxx_lib(qdp) | ||
# Add on Extra includes | ||
foreach( INCDIR ${EXTRA_INCLUDE_DIRS}) | ||
message(STATUS "Adding ${INCDIR}") | ||
set_target_properties(qdp PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${INCDIR}) | ||
endforeach() | ||
|
||
|
||
|
||
# XML Reader and writer | ||
add_qdpxx_lib(XPathReader) | ||
add_qdpxx_lib(xmlWriter) | ||
target_link_libraries(qdp INTERFACE XPathReader xmlWriter) | ||
|
||
# QIO and LIME | ||
add_qdpxx_lib(lime) | ||
add_qdpxx_lib(qio) | ||
target_link_libraries(qio INTERFACE lime) | ||
target_link_libraries(qdp INTERFACE qio) | ||
|
||
# Check if using LibIntrin | ||
string(STRIP "@LIBINTRIN_DIR@" QDPXX_LIBINTRIN) | ||
if( QDPXX_LIBINTRIN ) | ||
add_qdpxx_lib(intrin) | ||
target_link_libraries(qdp INTERFACE intrin) | ||
endif() | ||
|
||
# Check if using FILEDB | ||
string(STRIP "@FILEDB_DIR" QDPXX_FILEDB) | ||
if( QDPXX_FILEDB ) | ||
add_qdpxx_lib(filehash) | ||
add_qdpxx_lib(filedb) | ||
target_link_libraries(filedb INTERFACE filehash) | ||
target_link_libraries(qdp INTERFACE filedb) | ||
endif() | ||
|
||
# Add other LFlags and libs which we didn't build | ||
string(STRIP "@LDFLAGS@ @HDF5_LDFLAGS@ @QMP_LDFLAGS@ @QMT_LDFLAGS@" QDPXX_LDFLAGS) | ||
string(STRIP "@HDF5_LIBS@ @LIBXML2_LIBS@ @QMP_LIBS@ @LIBS@ @QMT_LIBS@" QDPXX_LIBS) | ||
|
||
if( QDPXX_LDFLAGS ) | ||
separate_argumnets(${QDPXX_LDFLAGS}) | ||
target_link_options(qdp INTERFACE ${QDPXX_LDFLAGS}) | ||
endif() | ||
|
||
if( QDPXX_LIBS ) | ||
separate_arguments(${QDPXX_LIBS}) | ||
target_link_libraries(qdp INTERFACE ${QDPXX_LIBS}) | ||
endif() | ||
|
||
set( QDPXX_FOUND TRUE) | ||
|
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Jefferson Science Associates LLC Copyright Notice: | ||
|
||
Copyright � 2014 Jefferson Science Associates LLC All Rights Reserved. | ||
|
||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted as a licensed user provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
This material resulted from work developed under a United States Government | ||
Contract. The Government retains a paid-up, nonexclusive, irrevocable worldwide license in such copyrighted data to reproduce, distribute copies to the public, prepare derivative works, perform publicly and display publicly and to permit others to do so. | ||
THIS SOFTWARE IS PROVIDED BY JEFFERSON SCIENCE ASSOCIATES LLC "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JEFFRSON SCIENCE ASSOCIATES, LLC OR THE U.S. GOVERNMENT BE LIABLE TO LICENSEE OR ANY THIRD PARTES FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
|
||
COPYRIGHT AND LICENSE | ||
|
||
Copyright (c) 1995,1996 Southeastern Universities Research Association | ||
Continuous Electron Beam Accelerator Facility | ||
Thomas Jefferson National Accelerator Facility | ||
12000 Jefferson Avenue, Newport News, VA 23606 | ||
|
||
This material resulted from work developed under a United States Government | ||
Contract and is subject to the following license: | ||
|
||
The Government retains a paid-up, nonexclusive, irrevocable worldwide license | ||
to reproduce, prepare derivative works, perform publicly and display publicly | ||
by or for the Government including the right to distribute to other Government | ||
contractors. | ||
|
||
|
||
DISCLAIMER AND LIMITATION OF WARRANTY. | ||
|
||
ALL SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY. THERE | ||
ARE NO WARRANTIES EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED | ||
WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR | ||
PURPOSE. THERE IS NO WARRANTY THAT USE WILL NOT INFRINGE | ||
ANY PATENT, COPYRIGHT OR TRADEMARK. | ||
|
||
In consideration of the use of the software and other materials, user agrees | ||
that neither the Government nor SURA/TJNAF will be liable for any damages with | ||
respect to such use, and user shall hold both the Government and SURA/TJNAF | ||
harmless from and indemnify them against any and all liability for damages | ||
arising out of the use of such software and other materials. In no event shall | ||
the Government or SURA/TJNAF be liable whether arising under contract, tort, | ||
strict liability or otherwise for any incidental, indirect or consequential | ||
loss or damage of any nature arising at any time from any cause whatsoever. In | ||
addition, the Government and SURA/TJNAF assume no obligation for defending | ||
against third party claims or threats of claims arising as a result of user's | ||
use of the software or materials either as delivered to user or as modified by | ||
user. | ||
|
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
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
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.