stop using submodule

This commit is contained in:
Vítor Santos Costa 2015-10-13 08:24:56 +01:00
parent 9b33c9d8ba
commit 25c3010de6
30 changed files with 0 additions and 11267 deletions

View File

@ -1,16 +0,0 @@
# 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})

View File

@ -1 +0,0 @@
52

View File

@ -1,42 +0,0 @@
# 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"
)

View File

@ -1,119 +0,0 @@
# 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

View File

@ -1,10 +0,0 @@
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()

View File

@ -1,2 +0,0 @@
# Empty dependencies file for raptor.
# This may be replaced when dependencies are built.

View File

@ -1,8 +0,0 @@
# 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

View File

@ -1 +0,0 @@
/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

View File

@ -1,3 +0,0 @@
CMAKE_PROGRESS_1 =
CMAKE_PROGRESS_2 = 89

Binary file not shown.

View File

@ -1,228 +0,0 @@
# 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

View File

@ -1 +0,0 @@
/Users/vsc/Yap/yap-6.3/packages/raptor/YAP.build/Debug/raptor.build/Objects-normal/x86_64/raptor_yap.o

View File

@ -1,6 +0,0 @@
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

View File

@ -1,2 +0,0 @@
#!/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

View File

@ -1,2 +0,0 @@
#!/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

View File

@ -1,2 +0,0 @@
#!/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

View File

@ -1,177 +0,0 @@
// !$*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 */;
}

View File

@ -1,77 +0,0 @@
<?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>

View File

@ -1,77 +0,0 @@
<?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>

View File

@ -1,77 +0,0 @@
<?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>

View File

@ -1,77 +0,0 @@
<?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>

View File

@ -1,52 +0,0 @@
<?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>

File diff suppressed because it is too large Load Diff

View File

@ -1,81 +0,0 @@
# 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()

View File

@ -1,2 +0,0 @@
#define HAVE_RAPTOR2_RAPTOR2_H 1
/* #undef HAVE_RAPTOR_H */

View File

@ -1,174 +0,0 @@
/* 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);
}