stop using submodule
This commit is contained in:
Submodule packages/raptor deleted from 8dbcba9ff8
16
packages/raptor/CMakeFiles/CMakeDirectoryInformation.cmake
Normal file
16
packages/raptor/CMakeFiles/CMakeDirectoryInformation.cmake
Normal file
@@ -0,0 +1,16 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.3
|
||||
|
||||
# Relative path conversion top directories.
|
||||
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/vsc/git/yap-6.3")
|
||||
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/vsc/git/yap-6.3")
|
||||
|
||||
# Force unix paths in dependencies.
|
||||
set(CMAKE_FORCE_UNIX_PATHS 1)
|
||||
|
||||
|
||||
# The C and CXX include file regular expressions for this directory.
|
||||
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
|
||||
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
|
1
packages/raptor/CMakeFiles/progress.marks
Normal file
1
packages/raptor/CMakeFiles/progress.marks
Normal file
@@ -0,0 +1 @@
|
||||
52
|
42
packages/raptor/CMakeFiles/raptor.dir/DependInfo.cmake
Normal file
42
packages/raptor/CMakeFiles/raptor.dir/DependInfo.cmake
Normal file
@@ -0,0 +1,42 @@
|
||||
# The set of languages for which implicit dependencies are needed:
|
||||
set(CMAKE_DEPENDS_LANGUAGES
|
||||
"C"
|
||||
)
|
||||
# The set of files for implicit dependencies of each language:
|
||||
set(CMAKE_DEPENDS_CHECK_C
|
||||
"/Users/vsc/git/yap-6.3/packages/raptor/raptor_yap.c" "/Users/vsc/git/yap-6.3/packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o"
|
||||
)
|
||||
set(CMAKE_C_COMPILER_ID "Clang")
|
||||
|
||||
# Preprocessor definitions for this target.
|
||||
set(CMAKE_TARGET_DEFINITIONS_C
|
||||
"COROUTINING=1"
|
||||
"DEBUG=1"
|
||||
"DEPTH_LIMIT=1"
|
||||
"HAVE_CONFIG_H"
|
||||
"LOW_LEVEL_TRACER=1"
|
||||
"RATIONAL_TREES=1"
|
||||
"TABLING=1"
|
||||
"USE_THREADEAD_CODE=1"
|
||||
"UTF8PROC=1"
|
||||
"_YAP_NOT_INSTALLED_=1"
|
||||
)
|
||||
|
||||
# The include file search paths:
|
||||
set(CMAKE_C_TARGET_INCLUDE_PATH
|
||||
"."
|
||||
"H"
|
||||
"include"
|
||||
"os"
|
||||
"utf8proc"
|
||||
"JIT/HPP"
|
||||
"/usr/local/include"
|
||||
"OPTYap"
|
||||
"packages/raptor"
|
||||
)
|
||||
|
||||
# Targets to which this target links.
|
||||
set(CMAKE_TARGET_LINKED_INFO_FILES
|
||||
"/Users/vsc/git/yap-6.3/CMakeFiles/libYap.dir/DependInfo.cmake"
|
||||
"/Users/vsc/git/yap-6.3/utf8proc/CMakeFiles/utf8proc.dir/DependInfo.cmake"
|
||||
)
|
119
packages/raptor/CMakeFiles/raptor.dir/build.make
Normal file
119
packages/raptor/CMakeFiles/raptor.dir/build.make
Normal file
@@ -0,0 +1,119 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.3
|
||||
|
||||
# Delete rule output on recipe failure.
|
||||
.DELETE_ON_ERROR:
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/local/Cellar/cmake/3.3.2/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/local/Cellar/cmake/3.3.2/bin/cmake -E remove -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /Users/vsc/git/yap-6.3
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /Users/vsc/git/yap-6.3
|
||||
|
||||
# Include any dependencies generated for this target.
|
||||
include packages/raptor/CMakeFiles/raptor.dir/depend.make
|
||||
|
||||
# Include the progress variables for this target.
|
||||
include packages/raptor/CMakeFiles/raptor.dir/progress.make
|
||||
|
||||
# Include the compile flags for this target's objects.
|
||||
include packages/raptor/CMakeFiles/raptor.dir/flags.make
|
||||
|
||||
packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o: packages/raptor/CMakeFiles/raptor.dir/flags.make
|
||||
packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o: packages/raptor/raptor_yap.c
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/vsc/git/yap-6.3/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o"
|
||||
cd /Users/vsc/git/yap-6.3/packages/raptor && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_FLAGS) -o CMakeFiles/raptor.dir/raptor_yap.c.o -c /Users/vsc/git/yap-6.3/packages/raptor/raptor_yap.c
|
||||
|
||||
packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/raptor.dir/raptor_yap.c.i"
|
||||
cd /Users/vsc/git/yap-6.3/packages/raptor && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_FLAGS) -E /Users/vsc/git/yap-6.3/packages/raptor/raptor_yap.c > CMakeFiles/raptor.dir/raptor_yap.c.i
|
||||
|
||||
packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/raptor.dir/raptor_yap.c.s"
|
||||
cd /Users/vsc/git/yap-6.3/packages/raptor && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_FLAGS) -S /Users/vsc/git/yap-6.3/packages/raptor/raptor_yap.c -o CMakeFiles/raptor.dir/raptor_yap.c.s
|
||||
|
||||
packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o.requires:
|
||||
|
||||
.PHONY : packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o.requires
|
||||
|
||||
packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o.provides: packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o.requires
|
||||
$(MAKE) -f packages/raptor/CMakeFiles/raptor.dir/build.make packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o.provides.build
|
||||
.PHONY : packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o.provides
|
||||
|
||||
packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o.provides.build: packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o
|
||||
|
||||
|
||||
# Object files for target raptor
|
||||
raptor_OBJECTS = \
|
||||
"CMakeFiles/raptor.dir/raptor_yap.c.o"
|
||||
|
||||
# External object files for target raptor
|
||||
raptor_EXTERNAL_OBJECTS =
|
||||
|
||||
packages/raptor/raptor.dylib: packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o
|
||||
packages/raptor/raptor.dylib: packages/raptor/CMakeFiles/raptor.dir/build.make
|
||||
packages/raptor/raptor.dylib: /usr/local/lib/libraptor2.dylib
|
||||
packages/raptor/raptor.dylib: libYap.6.3.4.dylib
|
||||
packages/raptor/raptor.dylib: utf8proc/libutf8proc.1.3.0.dylib
|
||||
packages/raptor/raptor.dylib: /usr/local/lib/libgmp.dylib
|
||||
packages/raptor/raptor.dylib: /usr/local/opt/readline/lib/libreadline.dylib
|
||||
packages/raptor/raptor.dylib: /usr/lib/libncurses.dylib
|
||||
packages/raptor/raptor.dylib: packages/raptor/CMakeFiles/raptor.dir/link.txt
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/Users/vsc/git/yap-6.3/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking C shared library raptor.dylib"
|
||||
cd /Users/vsc/git/yap-6.3/packages/raptor && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/raptor.dir/link.txt --verbose=$(VERBOSE)
|
||||
|
||||
# Rule to build all files generated by this target.
|
||||
packages/raptor/CMakeFiles/raptor.dir/build: packages/raptor/raptor.dylib
|
||||
|
||||
.PHONY : packages/raptor/CMakeFiles/raptor.dir/build
|
||||
|
||||
packages/raptor/CMakeFiles/raptor.dir/requires: packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o.requires
|
||||
|
||||
.PHONY : packages/raptor/CMakeFiles/raptor.dir/requires
|
||||
|
||||
packages/raptor/CMakeFiles/raptor.dir/clean:
|
||||
cd /Users/vsc/git/yap-6.3/packages/raptor && $(CMAKE_COMMAND) -P CMakeFiles/raptor.dir/cmake_clean.cmake
|
||||
.PHONY : packages/raptor/CMakeFiles/raptor.dir/clean
|
||||
|
||||
packages/raptor/CMakeFiles/raptor.dir/depend:
|
||||
cd /Users/vsc/git/yap-6.3 && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /Users/vsc/git/yap-6.3 /Users/vsc/git/yap-6.3/packages/raptor /Users/vsc/git/yap-6.3 /Users/vsc/git/yap-6.3/packages/raptor /Users/vsc/git/yap-6.3/packages/raptor/CMakeFiles/raptor.dir/DependInfo.cmake --color=$(COLOR)
|
||||
.PHONY : packages/raptor/CMakeFiles/raptor.dir/depend
|
||||
|
10
packages/raptor/CMakeFiles/raptor.dir/cmake_clean.cmake
Normal file
10
packages/raptor/CMakeFiles/raptor.dir/cmake_clean.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
file(REMOVE_RECURSE
|
||||
"CMakeFiles/raptor.dir/raptor_yap.c.o"
|
||||
"raptor.pdb"
|
||||
"raptor.dylib"
|
||||
)
|
||||
|
||||
# Per-language clean rules from dependency scanning.
|
||||
foreach(lang C)
|
||||
include(CMakeFiles/raptor.dir/cmake_clean_${lang}.cmake OPTIONAL)
|
||||
endforeach()
|
2
packages/raptor/CMakeFiles/raptor.dir/depend.make
Normal file
2
packages/raptor/CMakeFiles/raptor.dir/depend.make
Normal file
@@ -0,0 +1,2 @@
|
||||
# Empty dependencies file for raptor.
|
||||
# This may be replaced when dependencies are built.
|
8
packages/raptor/CMakeFiles/raptor.dir/flags.make
Normal file
8
packages/raptor/CMakeFiles/raptor.dir/flags.make
Normal file
@@ -0,0 +1,8 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.3
|
||||
|
||||
# compile C with /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
|
||||
C_FLAGS = -g -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/utf8proc -I/Users/vsc/git/yap-6.3/JIT/HPP -I/usr/local/include -I/Users/vsc/git/yap-6.3/OPTYap -I/Users/vsc/git/yap-6.3/packages/raptor -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions
|
||||
|
||||
C_DEFINES = -DCOROUTINING=1 -DDEBUG=1 -DDEPTH_LIMIT=1 -DHAVE_CONFIG_H -DLOW_LEVEL_TRACER=1 -DRATIONAL_TREES=1 -DTABLING=1 -DUSE_THREADEAD_CODE=1 -DUTF8PROC=1 -D_YAP_NOT_INSTALLED_=1 -Draptor_EXPORTS
|
||||
|
1
packages/raptor/CMakeFiles/raptor.dir/link.txt
Normal file
1
packages/raptor/CMakeFiles/raptor.dir/link.txt
Normal file
@@ -0,0 +1 @@
|
||||
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -g -dynamiclib -Wl,-headerpad_max_install_names -o raptor.dylib -install_name /Users/vsc/git/yap-6.3/packages/raptor/raptor.dylib CMakeFiles/raptor.dir/raptor_yap.c.o /usr/local/lib/libraptor2.dylib ../../libYap.6.3.4.dylib -ldl ../../utf8proc/libutf8proc.1.3.0.dylib /usr/local/lib/libgmp.dylib /usr/local/opt/readline/lib/libreadline.dylib /usr/lib/libncurses.dylib -Wl,-rpath,/Users/vsc/git/yap-6.3
|
3
packages/raptor/CMakeFiles/raptor.dir/progress.make
Normal file
3
packages/raptor/CMakeFiles/raptor.dir/progress.make
Normal file
@@ -0,0 +1,3 @@
|
||||
CMAKE_PROGRESS_1 =
|
||||
CMAKE_PROGRESS_2 = 89
|
||||
|
66
packages/raptor/CMakeLists.txt
Normal file
66
packages/raptor/CMakeLists.txt
Normal file
@@ -0,0 +1,66 @@
|
||||
CMAKE_MINIMUM_REQUIRED ( VERSION 2.8 )
|
||||
|
||||
PROJECT ( YAP_RAPTOR C )
|
||||
|
||||
SET ( YAP_RAPTOR_VERSION 0.1)
|
||||
|
||||
SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
|
||||
|
||||
|
||||
if (NOT YAP_FOUND)
|
||||
FIND_PACKAGE(YAP REQUIRED)
|
||||
ENDIF (NOT YAP_FOUND)
|
||||
IF (NOT YAP_FOUND)
|
||||
MESSAGE (SEND_ERROR "YAP was not found!")
|
||||
ENDIF (NOT YAP_FOUND)
|
||||
|
||||
macro_optional_find_package (RAPTOR ON)
|
||||
macro_log_feature (RAPTOR_FOUND "RAPTOR"
|
||||
"Use RAPTOR Library"
|
||||
"http://www.r.org" FALSE)
|
||||
IF (RAPTOR_FOUND)
|
||||
# RAPTOR_FOUND - system has Raptor
|
||||
# RAPTOR_LIBRARIES - Link these to use Raptor
|
||||
# RAPTOR_INCLUDE_DIR - Include directory for using Raptor
|
||||
# RAPTOR_DEFINITIONS - Compiler switches required for using Raptor
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
${RAPTOR_INCLUDE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
||||
SET ( RAPTOR_SOURCES
|
||||
raptor_yap.c
|
||||
)
|
||||
|
||||
ADD_LIBRARY(raptor SHARED ${RAPTOR_SOURCES} )
|
||||
|
||||
if(DEFINED YAP_MAJOR_VERSION)
|
||||
TARGET_LINK_LIBRARIES(raptor
|
||||
${RAPTOR_LIBRARY}
|
||||
libYap
|
||||
)
|
||||
else()
|
||||
TARGET_LINK_LIBRARIES(raptor
|
||||
${RAPTOR_LIBRARY}
|
||||
${YAP_LIBRARY}
|
||||
)
|
||||
endif()
|
||||
|
||||
check_include_files( raptor2/raptor2.h HAVE_RAPTOR2_RAPTOR2_H )
|
||||
|
||||
check_include_files( raptor.h HAVE_RAPTOR_H )
|
||||
|
||||
set_target_properties (raptor PROPERTIES PREFIX "")
|
||||
|
||||
configure_file ("raptor_config.h.cmake" "raptor_config.h" )
|
||||
|
||||
|
||||
install(TARGETS raptor
|
||||
LIBRARY DESTINATION ${dlls}
|
||||
)
|
||||
|
||||
INSTALL(FILES raptor.yap DESTINATION ${libpl})
|
||||
INSTALL(FILES rdf.yap DESTINATION ${libpl})
|
||||
|
||||
ENDIF (RAPTOR_FOUND)
|
BIN
packages/raptor/Debug/raptor.dylib
Executable file
BIN
packages/raptor/Debug/raptor.dylib
Executable file
Binary file not shown.
339
packages/raptor/LICENSE
Normal file
339
packages/raptor/LICENSE
Normal file
@@ -0,0 +1,339 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
{description}
|
||||
Copyright (C) {year} {fullname}
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
{signature of Ty Coon}, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
228
packages/raptor/Makefile
Normal file
228
packages/raptor/Makefile
Normal file
@@ -0,0 +1,228 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.3
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
|
||||
.PHONY : default_target
|
||||
|
||||
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
||||
.NOTPARALLEL:
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/local/Cellar/cmake/3.3.2/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/local/Cellar/cmake/3.3.2/bin/cmake -E remove -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /Users/vsc/git/yap-6.3
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /Users/vsc/git/yap-6.3
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
|
||||
/usr/local/Cellar/cmake/3.3.1/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
/usr/local/Cellar/cmake/3.3.2/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
|
||||
.PHONY : list_install_components
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components/fast: list_install_components
|
||||
|
||||
.PHONY : list_install_components/fast
|
||||
|
||||
# Special rule for the target install
|
||||
install: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
/usr/local/Cellar/cmake/3.3.2/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install
|
||||
|
||||
# Special rule for the target install
|
||||
install/fast: preinstall/fast
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
/usr/local/Cellar/cmake/3.3.2/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install/fast
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
|
||||
/usr/local/Cellar/cmake/3.3.2/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||
.PHONY : install/strip
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip/fast: install/strip
|
||||
|
||||
.PHONY : install/strip/fast
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
|
||||
/usr/local/Cellar/cmake/3.3.2/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||
.PHONY : install/local
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local/fast: install/local
|
||||
|
||||
.PHONY : install/local/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
cd /Users/vsc/git/yap-6.3 && $(CMAKE_COMMAND) -E cmake_progress_start /Users/vsc/git/yap-6.3/CMakeFiles /Users/vsc/git/yap-6.3/packages/raptor/CMakeFiles/progress.marks
|
||||
cd /Users/vsc/git/yap-6.3 && $(MAKE) -f CMakeFiles/Makefile2 packages/raptor/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /Users/vsc/git/yap-6.3/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
cd /Users/vsc/git/yap-6.3 && $(MAKE) -f CMakeFiles/Makefile2 packages/raptor/clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
cd /Users/vsc/git/yap-6.3 && $(MAKE) -f CMakeFiles/Makefile2 packages/raptor/preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
cd /Users/vsc/git/yap-6.3 && $(MAKE) -f CMakeFiles/Makefile2 packages/raptor/preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
cd /Users/vsc/git/yap-6.3 && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
# Convenience name for target.
|
||||
packages/raptor/CMakeFiles/raptor.dir/rule:
|
||||
cd /Users/vsc/git/yap-6.3 && $(MAKE) -f CMakeFiles/Makefile2 packages/raptor/CMakeFiles/raptor.dir/rule
|
||||
.PHONY : packages/raptor/CMakeFiles/raptor.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
raptor: packages/raptor/CMakeFiles/raptor.dir/rule
|
||||
|
||||
.PHONY : raptor
|
||||
|
||||
# fast build rule for target.
|
||||
raptor/fast:
|
||||
cd /Users/vsc/git/yap-6.3 && $(MAKE) -f packages/raptor/CMakeFiles/raptor.dir/build.make packages/raptor/CMakeFiles/raptor.dir/build
|
||||
.PHONY : raptor/fast
|
||||
|
||||
raptor_yap.o: raptor_yap.c.o
|
||||
|
||||
.PHONY : raptor_yap.o
|
||||
|
||||
# target to build an object file
|
||||
raptor_yap.c.o:
|
||||
cd /Users/vsc/git/yap-6.3 && $(MAKE) -f packages/raptor/CMakeFiles/raptor.dir/build.make packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.o
|
||||
.PHONY : raptor_yap.c.o
|
||||
|
||||
raptor_yap.i: raptor_yap.c.i
|
||||
|
||||
.PHONY : raptor_yap.i
|
||||
|
||||
# target to preprocess a source file
|
||||
raptor_yap.c.i:
|
||||
cd /Users/vsc/git/yap-6.3 && $(MAKE) -f packages/raptor/CMakeFiles/raptor.dir/build.make packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.i
|
||||
.PHONY : raptor_yap.c.i
|
||||
|
||||
raptor_yap.s: raptor_yap.c.s
|
||||
|
||||
.PHONY : raptor_yap.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
raptor_yap.c.s:
|
||||
cd /Users/vsc/git/yap-6.3 && $(MAKE) -f packages/raptor/CMakeFiles/raptor.dir/build.make packages/raptor/CMakeFiles/raptor.dir/raptor_yap.c.s
|
||||
.PHONY : raptor_yap.c.s
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... edit_cache"
|
||||
@echo "... rebuild_cache"
|
||||
@echo "... list_install_components"
|
||||
@echo "... install"
|
||||
@echo "... install/strip"
|
||||
@echo "... install/local"
|
||||
@echo "... raptor"
|
||||
@echo "... raptor_yap.o"
|
||||
@echo "... raptor_yap.i"
|
||||
@echo "... raptor_yap.s"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
cd /Users/vsc/git/yap-6.3 && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
65
packages/raptor/Makefile.in
Normal file
65
packages/raptor/Makefile.in
Normal file
@@ -0,0 +1,65 @@
|
||||
#
|
||||
# default base directory for YAP installation
|
||||
# (EROOT for architecture-dependent files)
|
||||
#
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
ROOTDIR = $(prefix)
|
||||
EROOTDIR = @exec_prefix@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
#
|
||||
# where the binary should be
|
||||
#
|
||||
BINDIR = $(EROOTDIR)/bin
|
||||
#
|
||||
# where YAP should look for libraries
|
||||
#
|
||||
LIBDIR=@libdir@
|
||||
SHAREDIR=$(ROOTDIR)/share/Yap
|
||||
YAPLIBDIR=@libdir@/Yap
|
||||
#
|
||||
#
|
||||
CC=@CC@
|
||||
CFLAGS= @SHLIB_CFLAGS@ @RAPTOR_CPPFLAGS@ $(YAP_EXTRAS) $(DEFS) -I$(srcdir) -I. -I../.. -I$(srcdir)/../../include
|
||||
LDFLAGS=@LDFLAGS@
|
||||
#
|
||||
#
|
||||
# You shouldn't need to change what follows.
|
||||
#
|
||||
INSTALL=@INSTALL@
|
||||
INSTALL_DATA=@INSTALL_DATA@
|
||||
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
||||
SHELL=/bin/sh
|
||||
RANLIB=@RANLIB@
|
||||
srcdir=@srcdir@
|
||||
SO=@SO@
|
||||
#4.1VPATH=@srcdir@:@srcdir@/OPTYap
|
||||
CWD=$(PWD)
|
||||
#
|
||||
|
||||
RAPTOR_PROLOG= \
|
||||
$(srcdir)/rdf.yap
|
||||
|
||||
OBJS=raptor.o
|
||||
SOBJS=raptor.@SO@
|
||||
|
||||
#in some systems we just create a single object, in others we need to
|
||||
# create a libray
|
||||
|
||||
all: $(SOBJS)
|
||||
|
||||
raptor.o: $(srcdir)/raptor_yap.c
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
@DO_SECOND_LD@%.@SO@: %.o
|
||||
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o $@ $< @RAPTOR_LIBS@ @EXTRA_LIBS_FOR_DLLS@
|
||||
|
||||
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)$(SHAREDIR)
|
||||
for h in $(RAPTOR_PROLOG); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR); done
|
||||
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
|
||||
|
||||
clean:
|
||||
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
|
||||
|
23
packages/raptor/README.md
Normal file
23
packages/raptor/README.md
Normal file
@@ -0,0 +1,23 @@
|
||||
@defgroup YAPRaptor An RDF Reader for YAP.
|
||||
@ingroup YAPPackages
|
||||
|
||||
#YAP raptor Interface
|
||||
|
||||
This provides YAP a rdf reader using
|
||||
[raptor](http://librdf.org/raptor/). The library is available for
|
||||
Windows, Linux/Unix and MacOS machines.
|
||||
|
||||
###
|
||||
###Example Usage
|
||||
|
||||
~~~~{.prolog}
|
||||
?- use_module(rdf).
|
||||
?- rdf_load('example.rdf',user,example).
|
||||
../example.rdf : 3 triples
|
||||
|
||||
?- example(Subject,Predicate,Object).
|
||||
Object = 'http://www.example.org/tv_show',
|
||||
Predicate = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type',
|
||||
Subject = 'http://www.example.org/law_and_order_ci' ?
|
||||
|
||||
~~~~{.prolog}
|
@@ -0,0 +1 @@
|
||||
/Users/vsc/Yap/yap-6.3/packages/raptor/YAP.build/Debug/raptor.build/Objects-normal/x86_64/raptor_yap.o
|
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
dependencies: /Users/vsc/git/yap-6.3/packages/raptor/raptor_yap.c \
|
||||
/Users/vsc/Yap/yap-6.3/packages/raptor/raptor_config.h \
|
||||
/Users/vsc/Yap/yap-6.3/include/YapInterface.h \
|
||||
/Users/vsc/Yap/yap-6.3/include/YapDefs.h \
|
||||
/Users/vsc/Yap/yap-6.3/include/YapError.h \
|
||||
/usr/local/include/raptor2/raptor2.h
|
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
make -C /Users/vsc/Yap/yap-6.3/packages/raptor -f /Users/vsc/Yap/yap-6.3/packages/raptor/CMakeScripts/raptor_postBuildPhase.make$CONFIGURATION all
|
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
make -C /Users/vsc/Yap/yap-6.3/packages/raptor -f /Users/vsc/Yap/yap-6.3/packages/raptor/CMakeScripts/raptor_postBuildPhase.make$CONFIGURATION all
|
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
make -C /Users/vsc/Yap/yap-6.3/packages/raptor -f /Users/vsc/Yap/yap-6.3/packages/raptor/CMakeScripts/raptor_postBuildPhase.make$CONFIGURATION all
|
BIN
packages/raptor/YAP.build/Debug/raptor.build/dgph
Normal file
BIN
packages/raptor/YAP.build/Debug/raptor.build/dgph
Normal file
Binary file not shown.
177
packages/raptor/YAP_RAPTOR.xcodeproj/project.pbxproj
Normal file
177
packages/raptor/YAP_RAPTOR.xcodeproj/project.pbxproj
Normal file
@@ -0,0 +1,177 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 46;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
1B6B8321950C4E9F84A39082 /* CMakeLists.txt */ = {isa = PBXFileReference; explicitFileType = sourcecode.text; fileEncoding = 4; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = SOURCE_ROOT; };
|
||||
24870037203D43EEA9A11C6A /* raptor_yap.c */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.c; fileEncoding = 4; path = raptor_yap.c; sourceTree = SOURCE_ROOT; };
|
||||
2F981AAA525F4B2AA5AE65E6 /* CMakeLists.txt */ = {isa = PBXFileReference; explicitFileType = sourcecode.text; fileEncoding = 4; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = SOURCE_ROOT; };
|
||||
5C89B12741F24BCA887E2A0A /* CMakeLists.txt */ = {isa = PBXFileReference; explicitFileType = sourcecode.text; fileEncoding = 4; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = SOURCE_ROOT; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
04BB6F2F821F4DB1910FDF76 /* Resources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
name = Resources;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
0744EA54238D4164BE879D2E /* ALL_BUILD */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A7F95FF4C317425AACAD889D /* CMake Rules */,
|
||||
1B6B8321950C4E9F84A39082 /* CMakeLists.txt */,
|
||||
);
|
||||
name = ALL_BUILD;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
23A6B2DB08AD484CA41A642F /* Sources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
0744EA54238D4164BE879D2E /* ALL_BUILD */,
|
||||
54F3E47A586847288B8EBCD5 /* ZERO_CHECK */,
|
||||
CEFC46D9735F44EDAC092190 /* raptor */,
|
||||
);
|
||||
name = Sources;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
5364BBE16C7841159A7CB46B /* Source Files */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
24870037203D43EEA9A11C6A /* raptor_yap.c */,
|
||||
);
|
||||
name = "Source Files";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
54F3E47A586847288B8EBCD5 /* ZERO_CHECK */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
B268DDC0306D4B55A5AA8701 /* CMake Rules */,
|
||||
5C89B12741F24BCA887E2A0A /* CMakeLists.txt */,
|
||||
);
|
||||
name = ZERO_CHECK;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A7F95FF4C317425AACAD889D /* CMake Rules */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
name = "CMake Rules";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
B268DDC0306D4B55A5AA8701 /* CMake Rules */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
name = "CMake Rules";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
BF8B89FED36B48768CF87874 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CDC96719C5D74DC29A45C971 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
23A6B2DB08AD484CA41A642F /* Sources */,
|
||||
04BB6F2F821F4DB1910FDF76 /* Resources */,
|
||||
BF8B89FED36B48768CF87874 /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CEFC46D9735F44EDAC092190 /* raptor */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
5364BBE16C7841159A7CB46B /* Source Files */,
|
||||
2F981AAA525F4B2AA5AE65E6 /* CMakeLists.txt */,
|
||||
);
|
||||
name = raptor;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
50D6D349DE764D24AC2ABE82 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
BuildIndependentTargetsInParallel = YES;
|
||||
LastUpgradeCheck = 0630;
|
||||
};
|
||||
buildConfigurationList = 1CF11351880C431989D9F623 /* Build configuration list for PBXProject "YAP_RAPTOR" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
);
|
||||
mainGroup = CDC96719C5D74DC29A45C971;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
3198AE3B53B64E3DA9EE05B6 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk;
|
||||
SYMROOT = "/Users/vsc/Yap/yap-6.3/packages/raptor/build";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
97E862E2445544978B643E0C /* RelWithDebInfo */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk;
|
||||
SYMROOT = "/Users/vsc/Yap/yap-6.3/packages/raptor/build";
|
||||
};
|
||||
name = RelWithDebInfo;
|
||||
};
|
||||
C629F660997C4306BA1DD496 /* MinSizeRel */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk;
|
||||
SYMROOT = "/Users/vsc/Yap/yap-6.3/packages/raptor/build";
|
||||
};
|
||||
name = MinSizeRel;
|
||||
};
|
||||
EE1447ED3D454D05BD752696 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk;
|
||||
SYMROOT = "/Users/vsc/Yap/yap-6.3/packages/raptor/build";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
1CF11351880C431989D9F623 /* Build configuration list for PBXProject "YAP_RAPTOR" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
EE1447ED3D454D05BD752696 /* Debug */,
|
||||
3198AE3B53B64E3DA9EE05B6 /* Release */,
|
||||
C629F660997C4306BA1DD496 /* MinSizeRel */,
|
||||
97E862E2445544978B643E0C /* RelWithDebInfo */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Debug;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 50D6D349DE764D24AC2ABE82 /* Project object */;
|
||||
}
|
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0630"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "070044167B5A42D181D2512B"
|
||||
BuildableName = "ALL_BUILD"
|
||||
BlueprintName = "ALL_BUILD"
|
||||
ReferencedContainer = "container:YAP_RAPTOR.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "070044167B5A42D181D2512B"
|
||||
BuildableName = "ALL_BUILD"
|
||||
BlueprintName = "ALL_BUILD"
|
||||
ReferencedContainer = "container:YAP_RAPTOR.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "070044167B5A42D181D2512B"
|
||||
BuildableName = "ALL_BUILD"
|
||||
BlueprintName = "ALL_BUILD"
|
||||
ReferencedContainer = "container:YAP_RAPTOR.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0630"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "D4BB36A1A264413D965A2EB5"
|
||||
BuildableName = "ZERO_CHECK"
|
||||
BlueprintName = "ZERO_CHECK"
|
||||
ReferencedContainer = "container:YAP_RAPTOR.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "D4BB36A1A264413D965A2EB5"
|
||||
BuildableName = "ZERO_CHECK"
|
||||
BlueprintName = "ZERO_CHECK"
|
||||
ReferencedContainer = "container:YAP_RAPTOR.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "D4BB36A1A264413D965A2EB5"
|
||||
BuildableName = "ZERO_CHECK"
|
||||
BlueprintName = "ZERO_CHECK"
|
||||
ReferencedContainer = "container:YAP_RAPTOR.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0630"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8CD08B6A715643089054DDDF"
|
||||
BuildableName = "install"
|
||||
BlueprintName = "install"
|
||||
ReferencedContainer = "container:YAP_RAPTOR.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8CD08B6A715643089054DDDF"
|
||||
BuildableName = "install"
|
||||
BlueprintName = "install"
|
||||
ReferencedContainer = "container:YAP_RAPTOR.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8CD08B6A715643089054DDDF"
|
||||
BuildableName = "install"
|
||||
BlueprintName = "install"
|
||||
ReferencedContainer = "container:YAP_RAPTOR.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0630"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "0B2FB387089B4CDAA21BBEBA"
|
||||
BuildableName = "raptor.dylib"
|
||||
BlueprintName = "raptor"
|
||||
ReferencedContainer = "container:YAP_RAPTOR.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "0B2FB387089B4CDAA21BBEBA"
|
||||
BuildableName = "raptor.dylib"
|
||||
BlueprintName = "raptor"
|
||||
ReferencedContainer = "container:YAP_RAPTOR.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "0B2FB387089B4CDAA21BBEBA"
|
||||
BuildableName = "raptor.dylib"
|
||||
BlueprintName = "raptor"
|
||||
ReferencedContainer = "container:YAP_RAPTOR.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>SchemeUserState</key>
|
||||
<dict>
|
||||
<key>ALL_BUILD.xcscheme</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<key>ZERO_CHECK.xcscheme</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>2</integer>
|
||||
</dict>
|
||||
<key>install.xcscheme</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>3</integer>
|
||||
</dict>
|
||||
<key>raptor.xcscheme</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>4</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>SuppressBuildableAutocreation</key>
|
||||
<dict>
|
||||
<key>070044167B5A42D181D2512B</key>
|
||||
<dict>
|
||||
<key>primary</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>0B2FB387089B4CDAA21BBEBA</key>
|
||||
<dict>
|
||||
<key>primary</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>8CD08B6A715643089054DDDF</key>
|
||||
<dict>
|
||||
<key>primary</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>D4BB36A1A264413D965A2EB5</key>
|
||||
<dict>
|
||||
<key>primary</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
10030
packages/raptor/bib1300.daml.txt
Normal file
10030
packages/raptor/bib1300.daml.txt
Normal file
File diff suppressed because it is too large
Load Diff
103
packages/raptor/cmake/FindRAPTOR.cmake
Normal file
103
packages/raptor/cmake/FindRAPTOR.cmake
Normal file
@@ -0,0 +1,103 @@
|
||||
# - Try to find the Raptor RDF parsing library (http://librdf.org/raptor/)
|
||||
# Once done this will define
|
||||
#
|
||||
# RAPTOR_FOUND - system has Raptor
|
||||
# RAPTOR_LIBRARIES - Link these to use Raptor
|
||||
# RAPTOR_INCLUDE_DIR - Include directory for using Raptor
|
||||
# RAPTOR_DEFINITIONS - Compiler switches required for using Raptor
|
||||
#
|
||||
# Capabilities
|
||||
# RAPTOR_HAVE_TRIG - Set if raptor has TRIG
|
||||
|
||||
# (c) 2007-2011 Sebastian Trueg <trueg@kde.org>
|
||||
# (c) 2011 Artem Serebriyskiy <v.for.vandal@gmail.com>
|
||||
# (c) 2011 Michael Jansen <kde@michael-jansen.biz>
|
||||
#
|
||||
# Based on FindFontconfig Copyright (c) 2006,2007 Laurent Montel, <montel@kde.org>
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
|
||||
MACRO ( FIND_RAPTOR )
|
||||
|
||||
ENDMACRO ()
|
||||
|
||||
|
||||
|
||||
# Check if we have cached results in case the last round was successful.
|
||||
if ( NOT( RAPTOR_INCLUDE_DIR AND RAPTOR_LIBRARIES ) OR NOT RAPTOR_FOUND )
|
||||
|
||||
set( RAPTOR_LDFLAGS )
|
||||
|
||||
find_package(PkgConfig)
|
||||
|
||||
if ( NOT WIN32 )
|
||||
pkg_check_modules(PC_RAPTOR QUIET raptor)
|
||||
if ( PC_RAPTOR_FOUND )
|
||||
set(RAPTOR_DEFINITIONS ${PC_RAPTOR_CFLAGS_OTHER})
|
||||
set(RAPTOR_VERSION ${PC_RAPTOR_VERSION} CACHE STRING "Raptor Version found" )
|
||||
string( REGEX REPLACE "^.*-lraptor;" "" RAPTOR_LDFLAGS "${PC_RAPTOR_STATIC_LDFLAGS}")
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
find_path(RAPTOR_INCLUDE_DIR
|
||||
NAMES raptor2.h raptor2/raptor2.h raptor.h raptor/raptor.h
|
||||
PATHS $ENV{RAPTOR_DIR}/include
|
||||
$ENV{RAPTOR_DIR}
|
||||
~/Library/Frameworks
|
||||
/Library/Frameworks
|
||||
/usr/local/include
|
||||
/usr/include/
|
||||
/sw/include # Fink
|
||||
/opt/local/include # MacPorts
|
||||
/opt/csw/include # Blastwave
|
||||
/usr/local/opt/raptor/include # brew
|
||||
/opt/include
|
||||
/usr/freeware/include
|
||||
|
||||
)
|
||||
|
||||
|
||||
find_library(RAPTOR_LIBRARY
|
||||
NAMES raptor raptor2
|
||||
PATHS $ENV{RAPTOR_DIR}/lib
|
||||
$ENV{RAPTOR_DIR}/lib-dbg
|
||||
$ENV{RAPTOR_DIR}
|
||||
~/Library/Frameworks
|
||||
/Library/Frameworks
|
||||
/usr/local/lib
|
||||
/usr/local/lib64
|
||||
/usr/lib
|
||||
/usr/lib64
|
||||
/sw/lib # Fink
|
||||
/opt/local/lib # MacPorts
|
||||
/opt/csw/lib # Blastwave
|
||||
/usr/local/opt/raptor/lib # brew
|
||||
/opt/lib
|
||||
/usr/freeware/lib64
|
||||
)
|
||||
|
||||
if ( RAPTOR_LDFLAGS )
|
||||
set( RAPTOR_LIBRARY ${RAPTOR_LIBRARY} ${RAPTOR_LDFLAGS} )
|
||||
endif ()
|
||||
|
||||
mark_as_advanced(RAPTOR_INCLUDE_DIR RAPTOR_LIBRARY)
|
||||
|
||||
endif () # Check for cached values
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
find_package_handle_standard_args(
|
||||
Raptor
|
||||
VERSION_VAR RAPTOR_VERSION
|
||||
REQUIRED_VARS RAPTOR_LIBRARY RAPTOR_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(RAPTOR_VERSION)
|
||||
|
||||
if (NOT RAPTOR_FOUND AND Raptor_FIND_VERSION_MAJOR EQUAL "2" AND NOT Raptor_FIND_QUIET )
|
||||
pkg_check_modules(PC_RAPTOR QUIET raptor)
|
||||
if (PC_RAPTOR_FOUND)
|
||||
message( STATUS "You have raptor1 version ${PC_RAPTOR_VERSION} installed. Please update." )
|
||||
endif ()
|
||||
endif ()
|
76
packages/raptor/cmake/FindYAP.cmake
Normal file
76
packages/raptor/cmake/FindYAP.cmake
Normal file
@@ -0,0 +1,76 @@
|
||||
# CMake module to search for YAP library
|
||||
#
|
||||
# If YAP_INCLUDE_DIR and YAP_PL_LIBRARY_DIR sets YAP_FOUND
|
||||
# Also checks for YAP_LIBRARY
|
||||
|
||||
if (YAP_ROOT)
|
||||
set( YAP_INCLUDE_DIR ../../include )
|
||||
set( YAP_PL_LIBRARY_DIR ${libpl} )
|
||||
set( YAP_LIBRARY libYap )
|
||||
set( YAP_DLLS ${dlls} )
|
||||
|
||||
else()
|
||||
|
||||
FIND_PATH(YAP_INCLUDE_DIR YapInterface.h
|
||||
/usr/local/include/Yap
|
||||
/usr/include/Yap
|
||||
#MSVC
|
||||
"$ENV{LIB_DIR}/include/Yap"
|
||||
#mingw
|
||||
c:/msys/local/include/Yap
|
||||
c:/Yap/include/Yap
|
||||
c:/Yap64/include/Yap
|
||||
"c:/Program Files/Yap/include/Yap"
|
||||
"c:/Program Files (x86)/Yap/include/Yap"
|
||||
)
|
||||
|
||||
FIND_PATH(YAP_PL_LIBRARY_DIR terms.yap
|
||||
/usr/local/share/Yap
|
||||
/usr/share/Yap
|
||||
#MSVC
|
||||
"$ENV{LIB_DIR}/share/Yap"
|
||||
#mingw
|
||||
c:/msys/local/share/Yap
|
||||
c:/Yap/share/Yap
|
||||
c:/Yap64/share/Yap
|
||||
"c:/Program Files/Yap/share/Yap"
|
||||
"c:/Program Files (x86)/Yap/share/Yap"
|
||||
)
|
||||
|
||||
FIND_LIBRARY(YAP_LIBRARY NAMES libYap.a libYap.so libYap.dylib PATHS
|
||||
/usr/local/lib
|
||||
/usr/lib
|
||||
#MSVC
|
||||
"$ENV{LIB_DIR}/lib"
|
||||
#mingw
|
||||
c:/msys/local/lib
|
||||
c:/msys/local/lib
|
||||
c:/Yap/lib
|
||||
c:/Yap64/lib
|
||||
"c:/Program Files/Yap/lib"
|
||||
"c:/Program Files (x86)/Yap/lib"
|
||||
)
|
||||
|
||||
If (YAP_INCLUDE_DIR AND YAP_PL_LIBRARY_DIR)
|
||||
SET(YAP_FOUND TRUE)
|
||||
ENDIF (YAP_INCLUDE_DIR AND YAP_PL_LIBRARY_DIR)
|
||||
|
||||
IF (YAP_FOUND)
|
||||
|
||||
IF (NOT YAP_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found YAP: ${YAP_LIBRARY}")
|
||||
ENDIF (NOT YAP_FIND_QUIETLY)
|
||||
|
||||
get_filename_component( YAP_DLLS ${YAP_LIBRARY} PATH )
|
||||
set( dlls ${YAP_DLLS}/Yap )
|
||||
|
||||
ELSE (YAP_FOUND)
|
||||
|
||||
IF (YAP_FIND_REQUIRED)
|
||||
MESSAGE(SYSTEM_ERROR_FATAL "Could not find YAP")
|
||||
ENDIF (YAP_FIND_REQUIRED)
|
||||
|
||||
ENDIF (YAP_FOUND)
|
||||
|
||||
endif()
|
||||
|
81
packages/raptor/cmake_install.cmake
Normal file
81
packages/raptor/cmake_install.cmake
Normal file
@@ -0,0 +1,81 @@
|
||||
# Install script for directory: /Users/vsc/git/yap-6.3/packages/raptor
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "Debug")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
||||
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
|
||||
"/usr/local/lib/Yap/raptor.dylib")
|
||||
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
file(INSTALL DESTINATION "/usr/local/lib/Yap" TYPE SHARED_LIBRARY FILES "/Users/vsc/git/yap-6.3/packages/raptor/raptor.dylib")
|
||||
if(EXISTS "$ENV{DESTDIR}/usr/local/lib/Yap/raptor.dylib" AND
|
||||
NOT IS_SYMLINK "$ENV{DESTDIR}/usr/local/lib/Yap/raptor.dylib")
|
||||
execute_process(COMMAND "/usr/bin/install_name_tool"
|
||||
-id "raptor.dylib"
|
||||
-change "/Users/vsc/git/yap-6.3/utf8proc/libutf8proc.1.dylib" "libutf8proc.1.dylib"
|
||||
"$ENV{DESTDIR}/usr/local/lib/Yap/raptor.dylib")
|
||||
execute_process(COMMAND /usr/bin/install_name_tool
|
||||
-delete_rpath "/Users/vsc/git/yap-6.3"
|
||||
"$ENV{DESTDIR}/usr/local/lib/Yap/raptor.dylib")
|
||||
execute_process(COMMAND /usr/bin/install_name_tool
|
||||
-add_rpath "/usr/local/lib"
|
||||
"$ENV{DESTDIR}/usr/local/lib/Yap/raptor.dylib")
|
||||
if(CMAKE_INSTALL_DO_STRIP)
|
||||
execute_process(COMMAND "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip" "$ENV{DESTDIR}/usr/local/lib/Yap/raptor.dylib")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
||||
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
|
||||
"/usr/local/share/Yap/raptor.yap")
|
||||
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
file(INSTALL DESTINATION "/usr/local/share/Yap" TYPE FILE FILES "/Users/vsc/git/yap-6.3/packages/raptor/raptor.yap")
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
||||
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
|
||||
"/usr/local/share/Yap/rdf.yap")
|
||||
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
file(INSTALL DESTINATION "/usr/local/share/Yap" TYPE FILE FILES "/Users/vsc/git/yap-6.3/packages/raptor/rdf.yap")
|
||||
endif()
|
||||
|
94
packages/raptor/configure.in
Normal file
94
packages/raptor/configure.in
Normal file
@@ -0,0 +1,94 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
|
||||
m4_ifdef([HAS_TOP],[m4_ignore],[
|
||||
AC_INIT(install-sh)
|
||||
AC_PREREQ([2.50])
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
])
|
||||
|
||||
AC_ARG_WITH(raptor,
|
||||
[ --with-raptor[=DIR] raptor RDF parser],
|
||||
if test "$withval" = yes; then
|
||||
yap_cv_raptor=yes
|
||||
elif test "$withval" = no; then
|
||||
yap_cv_raptor=no
|
||||
else
|
||||
yap_cv_raptor=$withval
|
||||
fi,
|
||||
[yap_cv_raptor=yes])
|
||||
|
||||
|
||||
AC_SUBST(PKG_RAPTOR)
|
||||
AC_SUBST(RAPTOR_LIBS)
|
||||
AC_SUBST(RAPTOR_CPPFLAGS)
|
||||
|
||||
if test "$yap_cv_raptor" = no;
|
||||
then
|
||||
PKG_RAPTOR=""
|
||||
else
|
||||
|
||||
old_inc="$CPPFLAGS"
|
||||
old_libs="$LIBS"
|
||||
|
||||
if test "$yap_cv_raptor" != "NONE" -a "$yap_cv_raptor" != "yes"; then
|
||||
RAPTOR_CPPFLAGS="-I $yap_cv_raptor/include"
|
||||
raptor_dir="$yap_cv_raptor"
|
||||
elif test "$prefix" != "NONE"; then
|
||||
RAPTOR_CPPFLAGS="-I $prefix/include"
|
||||
raptor_dir="$prefix"
|
||||
else
|
||||
RAPTOR_CPPFLAGS="-I /usr/local/include"
|
||||
raptor_dir=/usr/local
|
||||
fi
|
||||
|
||||
CPPFLAGS="$CPPFLAGS $RAPTOR_CPPFLAGS"
|
||||
|
||||
AC_CHECK_HEADERS(raptor2/raptor2.h)
|
||||
AC_CHECK_HEADERS(raptor.h)
|
||||
|
||||
|
||||
dnl raptor can be most everywhere
|
||||
if test -d "$raptor_dir/lib64/raptor" -a "$YAP_TARGET" = amd64; then
|
||||
LIBS="-L $raptor_dir/lib64/raptor"
|
||||
elif test -d "$raptor_dir/lib64" -a "$YAP_TARGET" = amd64; then
|
||||
LIBS="$LIBS -L $raptor_dir/lib64 -L $raptor_dir/lib "
|
||||
elif test -d "$raptor_dir/lib/raptor"; then
|
||||
LIBS="$LIBS -L $raptor_dir/lib/raptor"
|
||||
elif test -d "$raptor_dir/lib"; then
|
||||
LIBS="$LIBS -L $raptor_dir/lib"
|
||||
fi
|
||||
|
||||
AC_CHECK_LIB( raptor2, raptor_world_open, [], [
|
||||
AC_CHECK_LIB( raptor, raptor_world_open, [], [raptor_available=no]] )
|
||||
)
|
||||
RAPTOR_LIBS="$LIBS"
|
||||
|
||||
if test "$raptor_available" = no
|
||||
then
|
||||
PKG_RAPTOR=""
|
||||
cat << EOF
|
||||
##################################################################
|
||||
# ERROR: Could not find raptor library. Either I don't have the
|
||||
# correct path, or RAPTOR is installed in some strange way
|
||||
##################################################################
|
||||
EOF
|
||||
else
|
||||
PKG_RAPTOR="packages/raptor"
|
||||
fi
|
||||
|
||||
|
||||
CPPFLAGS="$old_inc"
|
||||
LIBS="$oldlibs"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
m4_ifdef([HAS_TOP],[
|
||||
AC_CONFIG_HEADER(packages/raptor/raptor_config.h)
|
||||
AC_OUTPUT(packages/raptor/Makefile)
|
||||
]
|
||||
,[
|
||||
AC_CONFIG_HEADER(raptor_config.h)
|
||||
AC_OUTPUT(Makefile)
|
||||
])
|
||||
|
15
packages/raptor/example.rdf
Normal file
15
packages/raptor/example.rdf
Normal file
@@ -0,0 +1,15 @@
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:ex="http://www.example.org/">
|
||||
|
||||
<rdf:Description rdf:about="http://www.example.org/vincent_donofrio">
|
||||
<ex:starred_in>
|
||||
<ex:tv_show rdf:about="http://www.example.org/law_and_order_ci" />
|
||||
</ex:starred_in>
|
||||
</rdf:Description>
|
||||
|
||||
<rdf:Description rdf:about="http://www.example.org/the_thirteenth_floor">
|
||||
<ex:similar_plot_as rdf:resource="http://www.example.org/the_matrix" />
|
||||
</rdf:Description>
|
||||
|
||||
</rdf:RDF>
|
||||
|
27
packages/raptor/music.rdf
Normal file
27
packages/raptor/music.rdf
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<rdf:RDF
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cd="http://www.recshop.fake/cd#">
|
||||
|
||||
<rdf:Description
|
||||
rdf:about="http://www.recshop.fake/cd/Empire Burlesque">
|
||||
<cd:artist>Bob Dylan</cd:artist>
|
||||
<cd:country>USA</cd:country>
|
||||
<cd:company>Columbia</cd:company>
|
||||
<cd:price>10.90</cd:price>
|
||||
<cd:year>1985</cd:year>
|
||||
</rdf:Description>
|
||||
|
||||
<rdf:Description
|
||||
rdf:about="http://www.recshop.fake/cd/Hide your heart">
|
||||
<cd:artist>Bonnie Tyler</cd:artist>
|
||||
<cd:country>UK</cd:country>
|
||||
<cd:company>CBS Records</cd:company>
|
||||
<cd:price>9.90</cd:price>
|
||||
<cd:year>1988</cd:year>
|
||||
</rdf:Description>
|
||||
.
|
||||
.
|
||||
.
|
||||
</rdf:RDF>
|
3
packages/raptor/raptor.yap
Normal file
3
packages/raptor/raptor.yap
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
:- load_foreign_files(['raptor'],[],raptor_yap_init).
|
||||
|
2
packages/raptor/raptor_config.h
Normal file
2
packages/raptor/raptor_config.h
Normal file
@@ -0,0 +1,2 @@
|
||||
#define HAVE_RAPTOR2_RAPTOR2_H 1
|
||||
/* #undef HAVE_RAPTOR_H */
|
2
packages/raptor/raptor_config.h.cmake
Normal file
2
packages/raptor/raptor_config.h.cmake
Normal file
@@ -0,0 +1,2 @@
|
||||
#cmakedefine HAVE_RAPTOR2_RAPTOR2_H ${HAVE_RAPTOR2_RAPTOR2_H}
|
||||
#cmakedefine HAVE_RAPTOR_H ${HAVE_RAPTOR_H}
|
2
packages/raptor/raptor_config.h.in
Normal file
2
packages/raptor/raptor_config.h.in
Normal file
@@ -0,0 +1,2 @@
|
||||
#undef HAVE_RAPTOR2_RAPTOR2_H
|
||||
#undef HAVE_RAPTOR_H
|
175
packages/raptor/raptor_yap.c
Normal file
175
packages/raptor/raptor_yap.c
Normal file
@@ -0,0 +1,175 @@
|
||||
/* Copyright (C) 2013 David Vaz <davidvaz@dcc.fc.up.pt>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version
|
||||
* 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public
|
||||
* License along with this program; if not, write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "raptor_config.h"
|
||||
#include "YapInterface.h"
|
||||
#ifdef HAVE_RAPTOR2_RAPTOR2_H
|
||||
#include "raptor2/raptor2.h"
|
||||
#else
|
||||
#include "raptor2.h"
|
||||
#endif
|
||||
|
||||
void raptor_yap_init (void);
|
||||
|
||||
raptor_world* world;
|
||||
|
||||
struct exo_aux {
|
||||
YAP_Functor functor;
|
||||
YAP_PredEntryPtr pred;
|
||||
size_t n;
|
||||
};
|
||||
|
||||
static YAP_Atom
|
||||
term_load(const raptor_term *term)
|
||||
{
|
||||
size_t len;
|
||||
switch(term->type) {
|
||||
case RAPTOR_TERM_TYPE_LITERAL:
|
||||
// fprintf(stderr, "%s,", term->value.literal.string);
|
||||
return YAP_LookupAtom((const char *)term->value.literal.string);
|
||||
|
||||
case RAPTOR_TERM_TYPE_BLANK:
|
||||
// fprintf(stderr, "%s,", term->value.blank.string);
|
||||
return YAP_LookupAtom((const char *)term->value.blank.string);
|
||||
|
||||
case RAPTOR_TERM_TYPE_URI:
|
||||
// fprintf(stderr, "%s,", raptor_uri_as_counted_string(term->value.uri, &len));
|
||||
return YAP_LookupAtom((const char *)raptor_uri_as_counted_string(term->value.uri, &len));
|
||||
|
||||
case RAPTOR_TERM_TYPE_UNKNOWN:
|
||||
default:
|
||||
raptor_log_error_formatted(term->world, RAPTOR_LOG_LEVEL_ERROR, NULL,
|
||||
"Triple has unsupported term type %d",
|
||||
term->type);
|
||||
break;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static int so_far = 0;
|
||||
|
||||
static void
|
||||
load_triples(void* user_data, raptor_statement* triple)
|
||||
{
|
||||
struct exo_aux *aux = (struct exo_aux *) user_data;
|
||||
YAP_Term args[4];
|
||||
|
||||
//args[0] = (YAP_CELL)aux->functor;
|
||||
args[0] = YAP_MkAtomTerm(term_load(triple->subject));
|
||||
args[1] = YAP_MkAtomTerm(term_load(triple->predicate));
|
||||
args[2] = YAP_MkAtomTerm(term_load(triple->object));
|
||||
// fprintf(stderr, "\n");
|
||||
|
||||
YAP_AssertTuples( aux->pred, args, so_far++, 1 );
|
||||
}
|
||||
|
||||
static void
|
||||
count_triples(void* user_data, raptor_statement* triple)
|
||||
{
|
||||
unsigned int* count_p = (unsigned int*)user_data;
|
||||
(*count_p)++;
|
||||
|
||||
term_load(triple->subject);
|
||||
term_load(triple->predicate);
|
||||
term_load(triple->object);
|
||||
// fprintf(stderr, "\n");
|
||||
}
|
||||
|
||||
static YAP_Bool
|
||||
load(void)
|
||||
{
|
||||
YAP_Term tfn = YAP_ARG1;
|
||||
YAP_Term mod = YAP_ARG2;
|
||||
YAP_Term tfunctor = YAP_ARG3;
|
||||
const char *filename;
|
||||
|
||||
raptor_parser* rdf_parser = NULL;
|
||||
unsigned int count;
|
||||
unsigned char *uri_string;
|
||||
raptor_uri *uri, *base_uri;
|
||||
|
||||
if (YAP_IsVarTerm(tfn) || !YAP_IsAtomTerm(tfn)) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
filename = YAP_AtomName(YAP_AtomOfTerm(tfn));
|
||||
|
||||
rdf_parser = raptor_new_parser(world, "rdfxml");
|
||||
|
||||
raptor_parser_set_statement_handler(rdf_parser, &count, count_triples);
|
||||
|
||||
uri_string = raptor_uri_filename_to_uri_string(filename);
|
||||
uri = raptor_new_uri(world, uri_string);
|
||||
base_uri = raptor_uri_copy(uri);
|
||||
|
||||
count = 0;
|
||||
if(!raptor_parser_parse_file(rdf_parser, uri, base_uri)) {
|
||||
// fprintf(stderr, "%s : %d triples\n", filename, count);
|
||||
} else {
|
||||
fprintf(stderr, "%s : failed to parse\n", filename);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* now lets load */
|
||||
{
|
||||
struct exo_aux aux;
|
||||
size_t sz;
|
||||
|
||||
aux.functor = YAP_MkFunctor(YAP_AtomOfTerm(tfunctor), 3);
|
||||
aux.pred = YAP_FunctorToPredInModule( aux.functor, mod );
|
||||
sz = 3*sizeof(YAP_CELL)*count;
|
||||
|
||||
if (!YAP_NewExo( aux.pred, sz, NULL)){
|
||||
fprintf(stderr, "Failed to alocate space\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
aux.n = 0;
|
||||
raptor_parser_set_statement_handler(rdf_parser, (void *) &aux, load_triples);
|
||||
if(!raptor_parser_parse_file(rdf_parser, uri, base_uri)) {
|
||||
fprintf(stderr, "%s : %d triples\n", filename, count);
|
||||
}
|
||||
}
|
||||
|
||||
raptor_free_uri(base_uri);
|
||||
raptor_free_uri(uri);
|
||||
raptor_free_memory(uri_string);
|
||||
|
||||
raptor_free_parser(rdf_parser);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static inline void
|
||||
raptor_yap_halt (int exit, void* world)
|
||||
{
|
||||
raptor_free_world((raptor_world*) world);
|
||||
}
|
||||
|
||||
void raptor_yap_init (void)
|
||||
{
|
||||
world = raptor_new_world();
|
||||
YAP_HaltRegisterHook (raptor_yap_halt, (void *) world);
|
||||
|
||||
YAP_UserCPredicate("rdf_load", load, 3);
|
||||
}
|
174
packages/raptor/raptor_yap.c~
Normal file
174
packages/raptor/raptor_yap.c~
Normal file
@@ -0,0 +1,174 @@
|
||||
/* Copyright (C) 2013 David Vaz <davidvaz@dcc.fc.up.pt>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version
|
||||
* 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public
|
||||
* License along with this program; if not, write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "raptor_config.h"
|
||||
#include "YapInterface.h"
|
||||
#ifdef HAVE_RAPTOR2_RAPTOR2_H
|
||||
#include "raptor2/raptor2.h"
|
||||
#elif HAVE_RAPTOR2_H
|
||||
#include "raptor2.h"
|
||||
#else
|
||||
#include "raptor.h"
|
||||
#endif
|
||||
|
||||
raptor_world* world;
|
||||
|
||||
struct exo_aux {
|
||||
void * handle;
|
||||
YAP_Functor functor;
|
||||
int n;
|
||||
};
|
||||
|
||||
YAP_Atom
|
||||
term_load(const raptor_term *term)
|
||||
{
|
||||
size_t len;
|
||||
switch(term->type) {
|
||||
case RAPTOR_TERM_TYPE_LITERAL:
|
||||
// fprintf(stderr, "%s,", term->value.literal.string);
|
||||
return YAP_LookupAtom(term->value.literal.string);
|
||||
|
||||
case RAPTOR_TERM_TYPE_BLANK:
|
||||
// fprintf(stderr, "%s,", term->value.blank.string);
|
||||
return YAP_LookupAtom(term->value.blank.string);
|
||||
|
||||
case RAPTOR_TERM_TYPE_URI:
|
||||
// fprintf(stderr, "%s,", raptor_uri_as_counted_string(term->value.uri, &len));
|
||||
return YAP_LookupAtom(raptor_uri_as_counted_string(term->value.uri, &len));
|
||||
|
||||
case RAPTOR_TERM_TYPE_UNKNOWN:
|
||||
default:
|
||||
raptor_log_error_formatted(term->world, RAPTOR_LOG_LEVEL_ERROR, NULL,
|
||||
"Triple has unsupported term type %d",
|
||||
term->type);
|
||||
break;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
load_triples(void* user_data, raptor_statement* triple)
|
||||
{
|
||||
struct exo_aux *aux = (struct exo_aux *) user_data;
|
||||
YAP_Term appl;
|
||||
YAP_Term args[3];
|
||||
|
||||
args[0] = YAP_MkAtomTerm(term_load(triple->subject));
|
||||
args[1] = YAP_MkAtomTerm(term_load(triple->predicate));
|
||||
args[2] = YAP_MkAtomTerm(term_load(triple->object));
|
||||
// fprintf(stderr, "\n");
|
||||
|
||||
appl = YAP_MkApplTerm(aux->functor, 3, args);
|
||||
|
||||
exoassert(aux->handle, aux->n++, appl );
|
||||
}
|
||||
|
||||
static void
|
||||
count_triples(void* user_data, raptor_statement* triple)
|
||||
{
|
||||
unsigned int* count_p = (unsigned int*)user_data;
|
||||
(*count_p)++;
|
||||
|
||||
term_load(triple->subject);
|
||||
term_load(triple->predicate);
|
||||
term_load(triple->object);
|
||||
// fprintf(stderr, "\n");
|
||||
}
|
||||
|
||||
static YAP_Bool
|
||||
load(void)
|
||||
{
|
||||
YAP_Term tfn = YAP_ARG1;
|
||||
YAP_Term mod = YAP_ARG2;
|
||||
YAP_Term tfunctor = YAP_ARG3;
|
||||
const char *filename;
|
||||
|
||||
raptor_parser* rdf_parser = NULL;
|
||||
unsigned int count;
|
||||
unsigned char *uri_string;
|
||||
raptor_uri *uri, *base_uri;
|
||||
|
||||
if (YAP_IsVarTerm(tfn) || !YAP_IsAtomTerm(tfn)) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
filename = YAP_AtomName(YAP_AtomOfTerm(tfn));
|
||||
|
||||
rdf_parser = raptor_new_parser(world, "rdfxml");
|
||||
|
||||
raptor_parser_set_statement_handler(rdf_parser, &count, count_triples);
|
||||
|
||||
uri_string = raptor_uri_filename_to_uri_string(filename);
|
||||
uri = raptor_new_uri(world, uri_string);
|
||||
base_uri = raptor_uri_copy(uri);
|
||||
|
||||
count = 0;
|
||||
if(!raptor_parser_parse_file(rdf_parser, uri, base_uri)) {
|
||||
// fprintf(stderr, "%s : %d triples\n", filename, count);
|
||||
} else {
|
||||
fprintf(stderr, "%s : failed to parse\n", filename);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* now lets load */
|
||||
{
|
||||
struct exo_aux aux;
|
||||
YAP_Term appl;
|
||||
|
||||
aux.functor = YAP_MkFunctor(YAP_AtomOfTerm(tfunctor), 3);
|
||||
appl = YAP_MkNewApplTerm(aux.functor,3);
|
||||
|
||||
if ((aux.handle = exodb_get_space(appl, mod, YAP_MkIntTerm(count))) == NULL){
|
||||
fprintf(stderr, "Failed to alocate space\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
aux.n = 0;
|
||||
raptor_parser_set_statement_handler(rdf_parser, (void *) &aux, load_triples);
|
||||
if(!raptor_parser_parse_file(rdf_parser, uri, base_uri)) {
|
||||
fprintf(stderr, "%s : %d triples\n", filename, count);
|
||||
}
|
||||
}
|
||||
|
||||
raptor_free_uri(base_uri);
|
||||
raptor_free_uri(uri);
|
||||
raptor_free_memory(uri_string);
|
||||
|
||||
raptor_free_parser(rdf_parser);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
inline void
|
||||
raptor_yap_halt (int exit, void* world)
|
||||
{
|
||||
raptor_free_world((raptor_world*) world);
|
||||
}
|
||||
|
||||
void raptor_yap_init (void)
|
||||
{
|
||||
world = raptor_new_world();
|
||||
YAP_HaltRegisterHook (raptor_yap_halt, (void *) world);
|
||||
|
||||
YAP_UserCPredicate("rdf_load", load, 3);
|
||||
}
|
1
packages/raptor/rdf.yap
Normal file
1
packages/raptor/rdf.yap
Normal file
@@ -0,0 +1 @@
|
||||
:- load_foreign_files(['raptor'],[],raptor_yap_init).
|
Reference in New Issue
Block a user