Merge branch 'master' of ssh://ssh.dcc.fc.up.pt:31064/home/vsc/yap

This commit is contained in:
Vitor Santos Costa 2018-11-17 06:23:18 +00:00
commit 9b31c93a46
65 changed files with 247 additions and 265 deletions

View File

@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.4)
# Sets the version of CMake required to build the native # Sets the version of CMake required to build the native
# library. You should either keep the default value or pass a # library. You should either keep the default value or pass a
# value of 3.4.0 or lower. # value of 3.4.0 or lower.fg
include(CMakeToolsHelpers OPTIONAL) include(CMakeToolsHelpers OPTIONAL)
include(FeatureSummary) include(FeatureSummary)
@ -313,22 +313,8 @@ ADD_CUSTOM_TARGET(run_install COMMAND ${CMAKE_MAKE_PROGRAM} install)
set(prefix ${CMAKE_INSTALL_PREFIX}) #BINDIR}) set(prefix ${CMAKE_INSTALL_PREFIX}) #BINDIR})
set(bindir ${CMAKE_INSTALL_PREFIX}/bin) #BINDIR})
set(includedir ${CMAKE_INSTALL_PREFIX}/include) #INCLUDEDIR})
set(libdir ${CMAKE_INSTALL_PREFIX}/lib) #LIBDIR})
set(exec_prefix ${CMAKE_INSTALL_PREFIX}/libexec) #LIBEXECDIR})
set(datarootdir ${CMAKE_INSTALL_PREFIX}/share) #DATAROOTDIR})
if (ANDROID)
set(datarootdir ${YAP_APP_DIR}/src/generated/assets)
endif ()
set(datadir ${CMAKE_INSTALL_PREFIX}/share) #DATADIR})
set(mandir ${CMAKE_INSTALL_PREFIX}/share/man) #MANDIR})
set(docdir ${CMAKE_INSTALL_PREFIX}/share/docs) #MANDIR}) set(docdir ${CMAKE_INSTALL_PREFIX}/share/docs) #MANDIR})
set(libpl ${datadir}/Yap)
set(dlls ${libdir}/Yap)
set(YAP_ROOTDIR ${prefix}) set(YAP_ROOTDIR ${prefix})
# erootdir -> rootdir # erootdir -> rootdir
# libdir defined above # libdir defined above
@ -338,10 +324,8 @@ set(YAP_LIBDIR ${CMAKE_INSTALL_FULL_LIBDIR})
set(YAP_DLLDIR ${CMAKE_INSTALL_FULL_LIBDIR}/Yap) set(YAP_DLLDIR ${CMAKE_INSTALL_FULL_LIBDIR}/Yap)
set(YAP_PLDIR ${CMAKE_INSTALL_FULL_DATADIR}/Yap) set(YAP_PLDIR ${CMAKE_INSTALL_FULL_DATADIR}/Yap)
set(YAP_INSTALL_DLLDIR ${CMAKE_INSTALL_LIBDIR}/Yap) set(YAP_INSTALL_LIBDIR ${CMAKE_INSTALL_LIBDIR}/Yap)
set(YAP_INSTALL_PLDIR ${CMAKE_INSTALL_DATADIR}/Yap) set(YAP_INSTALL_DATADIR ${CMAKE_INSTALL_DATADIR}/Yap)
set(libpl ${YAP_INSTALL_PLDIR})
# #
# #
@ -499,9 +483,9 @@ endif ()
# #
# #
## the RPATH to be used when installing, but only if it's not a system directory ## the RPATH to be used when installing, but only if it's not a system directory
#LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${libdir}" isSystemDir) #LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${YAP_INSTALL_LIBDIR}" isSystemDir)
# IF("${isSystemDir}" STREQUAL "-1") # IF("${isSystemDir}" STREQUAL "-1")
# SET(CMAKE_INSTALL_RPATH ${libdir}) # SET(CMAKE_INSTALL_RPATH ${YAP_INSTALL_LIBDIR})
#ENDIF("${isSystemDir}" STREQUAL "-1") #ENDIF("${isSystemDir}" STREQUAL "-1")
# #
IF(NOT WIN32 AND NOT APPLE) IF(NOT WIN32 AND NOT APPLE)
@ -866,6 +850,19 @@ if (WITH_JAVA)
# JAVA_AWT_INCLUDE_PATH = the include path to jawt.h # JAVA_AWT_INCLUDE_PATH = the include path to jawt.h
get_filename_component ( JAVA_AWT_DIR ${JAVA_AWT_LIBRARY} DIRECTORY)
get_filename_component ( JAVA_JNI_DIR ${JAVA_JVM_LIBRARY} DIRECTORY)
list(APPEND CMAKE_INSTALL_RPATH ${JAVA_AWT_DIR};${JAVA_JNI_DIR})
if (APPLE)
set(CMAKE_MACOSX_RPATH 1)
find_library (JLI jli ${JAVA_AWT_DIR}/jli)
find_library (JAL JavaApplicationLauncher FRAMEWORK ONLY PATH /System/Library/PrivateFrameworks)
find_library (JL JavaLaunching FRAMEWORK ONLY PATH /System/Library/PrivateFrameworks)
list(APPEND CMAKE_INSTALL_RPATH ${JAVA_AWT_DIR}/jli)
list(APPEND JNI_LIBRARIES ${JLI};${JAL};${JL})
endif()
endif (JNI_FOUND) endif (JNI_FOUND)
@ -958,8 +955,8 @@ target_link_libraries(yap-bin libYap)
install(TARGETS libYap yap-bin install(TARGETS libYap yap-bin
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )
@ -990,7 +987,7 @@ endif(WITH_MPI)
# #
install(FILES ${INCLUDE_HEADERS} ${CONFIGURATION_HEADERS} DESTINATION ${includedir}/Yap ) install(FILES ${INCLUDE_HEADERS} ${CONFIGURATION_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/Yap )

View File

@ -5,27 +5,27 @@ set(SO_MINOR 0)
set(SO_PATCH 0) set(SO_PATCH 0)
set (CXX_SOURCES set (CXX_SOURCES
yapi.cpp yapi.cpp
) )
list(APPEND LIBYAP_SOURCES ${CXX_SOURCES} PARENT_SCOPE) list(APPEND LIBYAP_SOURCES ${CXX_SOURCES} PARENT_SCOPE)
if ( WIN32 OR ANDROID) if ( WIN32 OR ANDROID)
add_component (YAP++ ${CXX_SOURCES} ) add_component (YAP++ ${CXX_SOURCES} )
set_property( DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS "_YAP_NOT_INSTALLED_=1;HAVE_CONFIG_H=1;_GNU_SOURCE;YAP_KERNEL=1" ) set_property( DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS "_YAP_NOT_INSTALLED_=1;HAVE_CONFIG_H=1;_GNU_SOURCE;YAP_KERNEL=1" )
else() else()
add_lib(YAP++ ${CXX_SOURCES} ) add_lib(YAP++ ${CXX_SOURCES} )
if (WITH_PYTHON) if (WITH_PYTHON)
target_link_libraries(YAP++ Py4YAP ) target_link_libraries(YAP++ Py4YAP )
endif() endif()
target_link_libraries(YAP++ ${CMAKE_DL_LIBS} libYap) target_link_libraries(YAP++ ${CMAKE_DL_LIBS} libYap)
MY_install(TARGETS YAP++ MY_install(TARGETS YAP++
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
) )
endif() endif()

View File

@ -2,29 +2,29 @@ set(LIBJIT_MAJOR_VERSION 0)
set(LIBJIT_MINOR_VERSION 1) set(LIBJIT_MINOR_VERSION 1)
set(LIBJIT_PATCH_VERSION 0) set(LIBJIT_PATCH_VERSION 0)
set(LIBJIT_FULL_VERSION set(LIBJIT_FULL_VERSION
${LIBJIT_MAJOR_VERSION}.${LIBJIT_MINOR_VERSION}.${LIBJIT_PATCH_VERSION}) ${LIBJIT_MAJOR_VERSION}.${LIBJIT_MINOR_VERSION}.${LIBJIT_PATCH_VERSION})
set(LIBJIT_SOURCES set(LIBJIT_SOURCES
jit_analysispreds.c jit_analysispreds.c
jit_configpreds.c jit_configpreds.c
jit_statisticpreds.c jit_statisticpreds.c
jit_codegenpreds.c jit_codegenpreds.c
jit_debugpreds.c jit_debugpreds.c
jit_traced.c jit_traced.c
jit_transformpreds.c jit_transformpreds.c
JIT_Compiler.cpp JIT_Compiler.cpp
JIT_Init.cpp JIT_Init.cpp
) )
set(LIBJIT_HEADERS set(LIBJIT_HEADERS
HPP/JIT.hpp HPP/JIT.hpp
HPP/JIT_Compiler.hpp HPP/JIT_Compiler.hpp
HPP/jit_predicates.hpp HPP/jit_predicates.hpp
../OPTYap/traced_or.insts.h ../OPTYap/traced_or.insts.h
../OPTYap/traced_tab.insts.h ../OPTYap/traced_tab.insts.h
../OPTYap/traced_tab.tries.insts.h ../OPTYap/traced_tab.tries.insts.h
../C/traced_absmi_insts.h ../C/traced_absmi_insts.h
) )
# The following variables are defined: # The following variables are defined:
# LLVM_FOUND - true if LLVM was found # LLVM_FOUND - true if LLVM was found
@ -59,18 +59,17 @@ set (POSITION_INDEPENDENT_CODE TRUE)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${LLVM_CXXFLAGS}) set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${LLVM_CXXFLAGS})
add_lib (libyapjit add_lib (libyapjit
${LIBJIT_SOURCES} ${LIBJIT_SOURCES}
${LIBJIT_HEADERS} ${LIBJIT_HEADERS}
) )
set_target_properties(libyapjit set_target_properties(libyapjit
PROPERTIES PROPERTIES
# RPATH ${libdir} VERSION ${LIBJIT_FULL_VERSION}
SOVERSION ${LIBJIT_MAJOR_VERSION}.${LIBJIT_MINOR_VERSION} SOVERSION ${LIBJIT_MAJOR_VERSION}.${LIBJIT_MINOR_VERSION}
POSITION_INDEPENDENT_CODE TRUE POSITION_INDEPENDENT_CODE TRUE
OUTPUT_NAME YapJIT OUTPUT_NAME YapJIT
) )
target_link_libraries(libyapjit libYap ${LLVM_LIBRARIES} z) target_link_libraries(libyapjit libYap ${LLVM_LIBRARIES})
set ( YAP_YAPJITLIB $<TARGET_FILE_NAME:libyapjit> ) set ( YAP_YAPJITLIB $<TARGET_FILE_NAME:libyapjit> )

View File

@ -71,7 +71,7 @@ add_component (libOPTYap
My_set_target_properties(libOPTYap My_set_target_properties(libOPTYap
PROPERTIES PROPERTIES
# RPATH ${libdir} VERSION ${LIBYAPTAI_FULL_VERSION} # RPATH ${CMAKE_INSTALL_LIBDIR} VERSION ${LIBYAPTAI_FULL_VERSION}
# SOVERSION ${LIBYAPTAI_MAJOR_VERSION}.${LIBYAPTAI_MINOR_VERSION} # SOVERSION ${LIBYAPTAI_MAJOR_VERSION}.${LIBYAPTAI_MINOR_VERSION}
POSITION_INDEPENDENT_CODE TRUE POSITION_INDEPENDENT_CODE TRUE
OUTPUT_NAME OPTYap OUTPUT_NAME OPTYap

View File

@ -159,8 +159,8 @@ target_link_libraries(yap-bin libYap )
install(TARGETS libYap yap-bin install(TARGETS libYap yap-bin
RUNTIME DESTINATION ${bindir} RUNTIME DESTINATION ${bindir}
LIBRARY DESTINATION ${libdir} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${libdir} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
) )

View File

@ -137,10 +137,8 @@ endif()
set ( libpl ${datarootdir}/Yap) set ( libpl ${datarootdir}/Yap)
set ( includedir "${prefix}/include") set ( includedir "${prefix}/include")
set ( exec_prefix "${prefix}") set ( exec_prefix "${prefix}")
set ( libdir "${exec_prefix}/lib")
set ( datadir "${datarootdir}") set ( datadir "${datarootdir}")
set ( mandir "${datarootdir}/man") set ( mandir "${datarootdir}/man")
set ( bindir "${exec_prefix}/bin")
set ( docdir "${datarootdir}/doc/Yap") set ( docdir "${datarootdir}/doc/Yap")
set ( dlls "${exec_prefix}/lib/Yap") set ( dlls "${exec_prefix}/lib/Yap")
@ -149,10 +147,10 @@ set(YAP_ROOTDIR ${prefix})
# erootdir -> rootdir # erootdir -> rootdir
# bindir defined above # bindir defined above
# libdir defined above # libdir defined above
set(YAP_LIBDIR "${dlls}") set(YAP_LIBDIR "${YAP_INSTALL_LIBDIR}")
set(YAP_SHAREDIR "${datarootdir}") set(YAP_SHAREDIR "${datarootdir}")
set(YAP_BINDIR "${bindir}") set(YAP_BINDIR "${CMAKE_INSTALL_BINDIR}")
set(YAP_INCLUDEDIR "${includedir}") set(YAP_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}")
set(YAP_ROOTDIR "${prefix}") set(YAP_ROOTDIR "${prefix}")
# #

View File

@ -264,6 +264,9 @@
#define REMOTE_OpenArray(wid) (REMOTE(wid)->OpenArray) #define REMOTE_OpenArray(wid) (REMOTE(wid)->OpenArray)
/* in a single gc */ /* in a single gc */
#define LOCAL_MallocDepth (Yap_local.MallocDepth)
#define REMOTE_MallocDepth(wid) (REMOTE(wid)->MallocDepth)
#define LOCAL_total_marked (Yap_local.total_marked) #define LOCAL_total_marked (Yap_local.total_marked)
#define REMOTE_total_marked(wid) (REMOTE(wid)->total_marked) #define REMOTE_total_marked(wid) (REMOTE(wid)->total_marked)

View File

@ -28,7 +28,7 @@ SET(CMAKE_SKIP_BUILD_RPATH FALSE)
# (but later on when installing) # (but later on when installing)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
SET(CMAKE_INSTALL_RPATH "${libdir};${dlls}:") SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_LIBDIR};${YAP_INSTALL_LIBDIR}:")
# add the automatically determined parts of the RPATH # add the automatically determined parts of the RPATH
# which point to directories outside the build tree to the install RPATH # which point to directories outside the build tree to the install RPATH
@ -47,9 +47,9 @@ set_target_properties(libYap
endif() endif()
# the RPATH to be used when installing, but only if it's not a system directory # the RPATH to be used when installing, but only if it's not a system directory
LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${libdir};${dlls}" isSystemDir) LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_LIBDIR};${YAP_INSTALL_LIBDIR}" isSystemDir)
IF("${isSystemDir}" STREQUAL "-1") IF("${isSystemDir}" STREQUAL "-1")
SET(CMAKE_INSTALL_RPATH "${libdir};${dlls}") SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_LIBDIR};${YAP_INSTALL_LIBDIR}")
ENDIF("${isSystemDir}" STREQUAL "-1") ENDIF("${isSystemDir}" STREQUAL "-1")

View File

@ -76,10 +76,10 @@ MY_add_subdirectory(ytest)
add_to_group( LIBRARY_PL pl_library) add_to_group( LIBRARY_PL pl_library)
install(FILES ${LIBRARY_PL} DESTINATION ${libpl}) install(FILES ${LIBRARY_PL} DESTINATION ${YAP_INSTALL_DATADIR})
if (ANDROID) if (ANDROID)
file( INSTALL ${LIBRARY_PL} DESTINATION ${libpl} ) file( INSTALL ${LIBRARY_PL} DESTINATION ${YAP_INSTALL_DATADIR} )
endif() endif()
include_directories("dialect/swi") include_directories("dialect/swi")

View File

@ -5,7 +5,7 @@ set (LIBRARY_PL_VLP
) )
install(FILES ${LIBRARY_PL_CLP} install(FILES ${LIBRARY_PL_CLP}
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )

View File

@ -7,7 +7,7 @@ set (LIBRARY_PL_CLP
add_to_group( LIBRARY_PL_CLP pl_library ) add_to_group( LIBRARY_PL_CLP pl_library )
install(FILES ${LIBRARY_PL_CLP} install(FILES ${LIBRARY_PL_CLP}
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )

View File

@ -14,5 +14,5 @@ COMMAND ${CMAKE_COMMAND} -E touch visited
DEPENDS ${DIALECTS_PL} ) # WORKING_DIRECTORY ${CMAKE_BINARY_DIR} ) DEPENDS ${DIALECTS_PL} ) # WORKING_DIRECTORY ${CMAKE_BINARY_DIR} )
install(FILES ${DIALECTS_PL} install(FILES ${DIALECTS_PL}
DESTINATION ${libpl}/dialect DESTINATION ${YAP_INSTALL_DATADIR}/dialect
) )

View File

@ -7,5 +7,5 @@ set (SDIALECTS_PL
add_SubDirectory( fli ) add_SubDirectory( fli )
install(FILES ${SDIALECTS_PL} install(FILES ${SDIALECTS_PL}
DESTINATION ${libpl}/dialect/swi DESTINATION ${YAP_INSTALL_DATADIR}/dialect/swi
) )

View File

@ -8,7 +8,7 @@ add_component (libswi
MY_set_target_properties(libswi MY_set_target_properties(libswi
PROPERTIES PROPERTIES
# RPATH ${libdir} VERSION ${LIBYAPTAI_FULL_VERSION} # RPATH ${CMAKE_INSTALL_LIBDIR} VERSION ${LIBYAPTAI_FULL_VERSION}
# SOVERSION ${LIBYAPTAI_MAJOR_VERSION}.${LIBYAPTAI_MINOR_VERSION} # SOVERSION ${LIBYAPTAI_MAJOR_VERSION}.${LIBYAPTAI_MINOR_VERSION}
POSITION_INDEPENDENT_CODE ON POSITION_INDEPENDENT_CODE ON
) )

View File

@ -58,7 +58,7 @@ add_component (libswi_os
set_target_properties(libswi_os set_target_properties(libswi_os
PROPERTIES PROPERTIES
# RPATH ${libdir} VERSION ${LIBSWI_OS_FULL_VERSION} # RPATH ${CMAKE_INSTALL_LIBDIR} VERSION ${LIBSWI_OS_FULL_VERSION}
# SOVERSION ${LIBSWI_OS_MAJOR_VERSION}.${LIBSWI_OS_MINOR_VERSION} # SOVERSION ${LIBSWI_OS_MAJOR_VERSION}.${LIBSWI_OS_MINOR_VERSION}
POSITION_INDEPENDENT_CODE TRUE POSITION_INDEPENDENT_CODE TRUE
OUTPUT_NAME swi_os OUTPUT_NAME swi_os

View File

@ -45,7 +45,7 @@ add_library (libyaptai OBJECT
set_target_properties(libyaptai set_target_properties(libyaptai
PROPERTIES PROPERTIES
# RPATH ${libdir} VERSION ${LIBYAPTAI_FULL_VERSION} # RPATH ${CMAKE_INSTALL_LIBDIR} VERSION ${LIBYAPTAI_FULL_VERSION}
# SOVERSION ${LIBYAPTAI_MAJOR_VERSION}.${LIBYAPTAI_MINOR_VERSION} # SOVERSION ${LIBYAPTAI_MAJOR_VERSION}.${LIBYAPTAI_MINOR_VERSION}
POSITION_INDEPENDENT_CODE TRUE POSITION_INDEPENDENT_CODE TRUE
OUTPUT_NAME yaptai OUTPUT_NAME yaptai

View File

@ -78,9 +78,9 @@ set_property( DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS HAVE_MPI_H=1)
PUBLIC ${MPI_C_COMPILE_FLAGS}) PUBLIC ${MPI_C_COMPILE_FLAGS})
install(TARGETS yap_mpi install(TARGETS yap_mpi
RUNTIME DESTINATION ${bindir} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )
endif (MPI_C_FOUND) endif (MPI_C_FOUND)

View File

@ -15,8 +15,8 @@ if (MATLAB_FOUND)
target_link_libraries(matlab libYap $(MATLAB_LIBRARIES) ) target_link_libraries(matlab libYap $(MATLAB_LIBRARIES) )
install(TARGETS matlab install(TARGETS matlab
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ) ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR} )
endif (MATLAB_FOUND) endif (MATLAB_FOUND)

View File

@ -6,8 +6,8 @@ target_link_libraries(matrix libYap)
set_target_properties (matrix PROPERTIES PREFIX "") set_target_properties (matrix PROPERTIES PREFIX "")
install(TARGETS matrix install(TARGETS matrix
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
) )

View File

@ -10,5 +10,5 @@ set_target_properties (yap_random PROPERTIES PREFIX "")
endif() endif()
MY_install(TARGETS yap_random MY_install(TARGETS yap_random
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ) ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR} )

View File

@ -26,6 +26,6 @@ TARGET_INCLUDE_DIRECTORIES (regexp PUBLIC BEFORE
${CMAKE_TOP_SOURCE_DIR}/include;${CMAKE_CURRENT_BINARY_DIR};${CMAKE_CURRENT_SOURCE_DIR} ) ${CMAKE_TOP_SOURCE_DIR}/include;${CMAKE_CURRENT_BINARY_DIR};${CMAKE_CURRENT_SOURCE_DIR} )
install(TARGETS regexp install(TARGETS regexp
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ) ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR} )

View File

@ -11,6 +11,6 @@ target_link_libraries(yap_rl libYap)
set_target_properties (yap_rl PROPERTIES PREFIX "") set_target_properties (yap_rl PROPERTIES PREFIX "")
install(TARGETS yap_rl install(TARGETS yap_rl
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ) ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR} )

View File

@ -39,8 +39,8 @@ set_target_properties (sys PROPERTIES PREFIX "")
endif() endif()
MY_install(TARGETS sys MY_install(TARGETS sys
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ) ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR} )
configure_file ("sys_config.h.cmake" "sys_config.h" ) configure_file ("sys_config.h.cmake" "sys_config.h" )

View File

@ -5,7 +5,7 @@
/* Define to 1 if you have the <openssl/ripemd.h> header file. */ /* Define to 1 if you have the <openssl/ripemd.h> header file. */
#ifndef HAVE_APR_1_APR_MD5_H #ifndef HAVE_APR_1_APR_MD5_H
/* #undef HAVE_APR_1_APR_MD5_H */ #define HAVE_APR_1_APR_MD5_H 1
#endif #endif

View File

@ -13,9 +13,9 @@ target_link_libraries(tries libYap)
set_target_properties (tries PROPERTIES PREFIX "") set_target_properties (tries PROPERTIES PREFIX "")
install(TARGETS tries install(TARGETS tries
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR}) ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR})
set ( ITRIES_SOURCES set ( ITRIES_SOURCES
@ -34,7 +34,7 @@ target_link_libraries(itries libYap)
set_target_properties (itries PROPERTIES PREFIX "") set_target_properties (itries PROPERTIES PREFIX "")
install(TARGETS itries install(TARGETS itries
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ) ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR} )

View File

@ -8,5 +8,5 @@ add_custom_target (ytest_helpers SOURCES ${HELPER_PL} ) # WORKING_DIRECTORY ${CM
install(FILES ${HELPER_PL} install(FILES ${HELPER_PL}
DESTINATION ${libpl}/ytest DESTINATION ${YAP_INSTALL_DATADIR}/ytest
) )

View File

@ -48,7 +48,7 @@ set (POSITION_INDEPENDENT_CODE TRUE)
MY_set_target_properties(libYAPOs MY_set_target_properties(libYAPOs
PROPERTIES PROPERTIES
# RPATH ${libdir} VERSION ${LIBYAPTAI_FULL_VERSION} # RPATH ${CMAKE_INSTALL_LIBDIR} VERSION ${LIBYAPTAI_FULL_VERSION}
# SOVERSION ${LIBYAPTAI_MAJOR_VERSION}.${LIBYAPTAI_MINOR_VERSION} # SOVERSION ${LIBYAPTAI_MAJOR_VERSION}.${LIBYAPTAI_MINOR_VERSION}
POSITION_INDEPENDENT_CODE TRUE POSITION_INDEPENDENT_CODE TRUE
) )
@ -66,8 +66,8 @@ add_to_group( YAPOS_PL_SOURCES pl_os_library)
if (ANDROID) if (ANDROID)
file(INSTALL ${YAPOS_PL_SOURCES} DESTINATION ${libpl}/os) file(INSTALL ${YAPOS_PL_SOURCES} DESTINATION ${YAP_INSTALL_DATADIR}/os)
else() else()
install (FILES ${YAPOS_PL_SOURCES} install (FILES ${YAPOS_PL_SOURCES}
DESTINATION ${libpl}/os ) DESTINATION ${YAP_INSTALL_DATADIR}/os )
endif() endif()

View File

@ -100,15 +100,15 @@ ENDIF()
install(FILES install(FILES
${CLPBN_TOP} ${CLPBN_TOP}
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )
install(FILES install(FILES
${CLPBN_PL} ${CLPBN_PL}
DESTINATION ${libpl}/clpbn DESTINATION ${YAP_INSTALL_DATADIR}/clpbn
) )
install(FILES install(FILES
${CLPBN_LEARNING_PROGRAMS} ${CLPBN_LEARNING_PROGRAMS}
DESTINATION ${libpl}/clpbn/learning DESTINATION ${YAP_INSTALL_DATADIR}/clpbn/learning
) )

View File

@ -69,7 +69,7 @@ if (CMAKE_MAJOR_VERSION GREATER 2)
install(TARGETS horus HorusCli install(TARGETS horus HorusCli
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )
endif() endif()

View File

@ -42,17 +42,17 @@ if (GECODE_FOUND)
include_directories (${GECODE_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${GECODE_VERSION}) include_directories (${GECODE_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${GECODE_VERSION})
install(TARGETS gecode_yap install(TARGETS gecode_yap
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gecode.yap install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gecode.yap
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )
install(FILES clpfd.yap install(FILES clpfd.yap
DESTINATION ${libpl}/gecode DESTINATION ${YAP_INSTALL_DATADIR}/gecode
) )
endif (GECODE_FOUND) endif (GECODE_FOUND)

View File

@ -56,11 +56,11 @@ set (LIBRARY_PL
) )
install(FILES ${PROGRAMS} install(FILES ${PROGRAMS}
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )
install(FILES ${PROBLOG_PROGRAMS} install(FILES ${PROBLOG_PROGRAMS}
DESTINATION ${libpl}/problog DESTINATION ${YAP_INSTALL_DATADIR}/problog
) )

View File

@ -23,7 +23,6 @@ IF (CUDD_FOUND)
SET ( BDD_SOURCES SET ( BDD_SOURCES
cudd.c cudd.c
) )
ADD_LIBRARY(cudd SHARED ${BDD_SOURCES} ) ADD_LIBRARY(cudd SHARED ${BDD_SOURCES} )
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
@ -49,18 +48,18 @@ IF (CUDD_FOUND)
add_subdirectory(simplecudd_lfi) add_subdirectory(simplecudd_lfi)
set(YAP_SYSTEM_OPTIONS "cudd " ${YAP_SYSTEM_OPTIONS} PARENT_SCOPE) set(YAP_SYSTEM_OPTIONS "cudd " ${YAP_SYSTEM_OPTIONS} PARENT_SCOPE)
INSTALL(FILES ${CMAKE_BINARY_DIR}/cudd_config.h DESTINATION ${includedir}) INSTALL(FILES ${CMAKE_BINARY_DIR}/cudd_config.h DESTINATION ${YAP_INSTALL_INCLUDEDIR})
install(TARGETS cudd install(TARGETS cudd
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )
INSTALL(FILES bdd.yap DESTINATION ${libpl}) INSTALL(FILES bdd.yap DESTINATION ${YAP_INSTALL_DATADIR})
INSTALL(FILES ddnnf.yap DESTINATION ${libpl}) INSTALL(FILES ddnnf.yap DESTINATION ${YAP_INSTALL_DATADIR})
INSTALL(FILES simpbool.yap DESTINATION ${libpl}) INSTALL(FILES simpbool.yap DESTINATION ${YAP_INSTALL_DATADIR})
INSTALL(FILES trie_sp.yap DESTINATION ${libpl}) INSTALL(FILES trie_sp.yap DESTINATION ${YAP_INSTALL_DATADIR})
ENDIF (CUDD_FOUND) ENDIF (CUDD_FOUND)

View File

@ -5,9 +5,9 @@
if (YAP_ROOT) if (YAP_ROOT)
set( YAP_INCLUDE_DIR ../../include ) set( YAP_INCLUDE_DIR ../../include )
set( YAP_PL_LIBRARY_DIR ${libpl} ) set( YAP_PL_LIBRARY_DIR ${YAP_INSTALL_DATADIR} )
set( YAP_LIBRARY libYap ) set( YAP_LIBRARY libYap )
set( YAP_DLLS ${YAP_INSTALL_DLLDIR} ) set( YAP_DLLS ${YAP_INSTALL_LIBDIR} )
else() else()

View File

@ -26,6 +26,6 @@ target_link_libraries(Problogbdd
install(TARGETS Problogbdd install(TARGETS Problogbdd
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
) )

View File

@ -30,6 +30,6 @@ target_link_libraries(Problogbdd-Lfi
install(TARGETS Problogbdd-Lfi install(TARGETS Problogbdd-Lfi
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
) )

View File

@ -19,7 +19,7 @@ set (CLPQRPRIV clpqr/class.pl clpqr/dump.pl
clpqr/project.pl clpqr/redund.pl) clpqr/project.pl clpqr/redund.pl)
set (LIBPL clpr.pl clpq.pl ${CLPRPRIV} ${CLPQPRIV} ${CLPQRPRIV} ) set (LIBPL clpr.pl clpq.pl ${CLPRPRIV} ${CLPQPRIV} ${CLPQRPRIV} )
install ( FILES ${LIBPL} DESTINATION ${libpl} ) install ( FILES ${YAP_INSTALL_DATADIR} DESTINATION ${YAP_INSTALL_DATADIR} )
# $(PL) -q -f $(srcdir)/clpr_test.pl -g test,halt -t 'halt(1)' # $(PL) -q -f $(srcdir)/clpr_test.pl -g test,halt -t 'halt(1)'

View File

@ -148,9 +148,9 @@ IF (CUDD_FOUND)
) )
install(TARGETS bddem install(TARGETS bddem
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )
@ -171,15 +171,15 @@ IF (CUDD_FOUND)
add_subDIRECTORY ( approx/simplecuddLPADs ) add_subDIRECTORY ( approx/simplecuddLPADs )
install(TARGETS cplint install(TARGETS cplint
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )
INSTALL(FILES ${CPLINT_PROGRAMS} DESTINATION ${libpl}) INSTALL(FILES ${CPLINT_PROGRAMS} DESTINATION ${YAP_INSTALL_DATADIR})
INSTALL(FILES ${CPLINT_LEARNING_PROGRAMS} DESTINATION ${libpl}/cplint) INSTALL(FILES ${CPLINT_LEARNING_PROGRAMS} DESTINATION ${YAP_INSTALL_DATADIR}/cplint)
INSTALL(FILES ${CPLINT_EXAMPLE_PROGRAMS} DESTINATION ${libpl}/cplint/examples) INSTALL(FILES ${CPLINT_EXAMPLE_PROGRAMS} DESTINATION ${YAP_INSTALL_DATADIR}/cplint/examples)
INSTALL(FILES ${CPLINT_TEST_PROGRAMS} DESTINATION ${libpl}/cplint/examples) INSTALL(FILES ${CPLINT_TEST_PROGRAMS} DESTINATION ${YAP_INSTALL_DATADIR}/cplint/examples)
INSTALL(FILES ${CPLINT_SEMANTICS_PROGRAMS} DESTINATION ${libpl}) INSTALL(FILES ${CPLINT_SEMANTICS_PROGRAMS} DESTINATION ${YAP_INSTALL_DATADIR})
ENDIF() ENDIF()

View File

@ -27,6 +27,6 @@ target_link_libraries(LPADbdd
install(TARGETS LPADbdd install(TARGETS LPADbdd
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
) )

View File

@ -103,12 +103,12 @@ endif( THRUST_INCLUDE_DIR )
) )
install(TARGETS libcuda install(TARGETS libcuda
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )
install(FILES ${PL_SOURCES} install(FILES ${PL_SOURCES}
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )

View File

@ -42,17 +42,17 @@ if (GECODE_FOUND)
include_directories (${GECODE_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${GECODE_VERSION}) include_directories (${GECODE_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${GECODE_VERSION})
install(TARGETS gecode_yap install(TARGETS gecode_yap
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gecode.yap install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gecode.yap
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )
install(FILES clpfd.yap install(FILES clpfd.yap
DESTINATION ${libpl}/gecode DESTINATION ${YAP_INSTALL_DATADIR}/gecode
) )
endif (GECODE_FOUND) endif (GECODE_FOUND)

View File

@ -16,7 +16,7 @@ if (Java_Development_FOUND)
add_subdirectory (src/java) add_subdirectory (src/java)
install(FILES jpl.pl install(FILES jpl.pl
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )
endif (Java_Development_FOUND) endif (Java_Development_FOUND)

View File

@ -4701,11 +4701,11 @@ java_home(Home) :-
setup_jvm :- setup_jvm :-
jvm_ready, !. jvm_ready, !.
setup_jvm :- setup_jvm :-
check_java_libs(JVM, Java), check_java_libs(_JVM, _Java),
add_jpl_to_classpath, add_jpl_to_classpath,
libjpl(JPL), libjpl(JPL),
add_jpl_to_ldpath(JPL,FullJPL), add_jpl_to_ldpath(JPL,FullJPL),
catch(load_absolute_foreign_files([FullJPL],[Java,JVM],install), E, report_java_setup_problem(E)), catch(load_absolute_foreign_files([FullJPL],[],install), E, report_java_setup_problem(E)),
assert(jvm_ready). assert(jvm_ready).
report_java_setup_problem(E) :- report_java_setup_problem(E) :-

View File

@ -5,22 +5,7 @@ add_lib(jplYap jpl.h jpl.c hacks.h)
include_directories (${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2} ${JAVA_AWT_PATH} ) include_directories (${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2} ${JAVA_AWT_PATH} )
get_filename_component ( JAVA_AWT_DIR ${JAVA_AWT_LIBRARY} DIRECTORY) target_link_libraries(jplYap libYap ${JNI_LIBRARIES})
get_filename_component ( JAVA_JNI_DIR ${JAVA_JVM_LIBRARY} DIRECTORY)
list(APPEND CMAKE_INSTALL_RPATH ${JAVA_AWT_DIR};${JAVA_JNI_DIR})
if (APPLE)
set(CMAKE_MACOSX_RPATH 1)
find_library (JLI jli ${JAVA_AWT_DIR}/jli)
find_library (JAL JavaApplicationLauncher FRAMEWORK ONLY PATH /System/Library/PrivateFrameworks)
find_library (JL JavaLaunching FRAMEWORK ONLY PATH /System/Library/PrivateFrameworks)
list(APPEND CMAKE_INSTALL_RPATH ${JAVA_AWT_DIR}/jli)
target_link_libraries(jplYap libYap ${JL} ${JAL} -L${JAVA_AWT_DIR}/jli -ljli )
else()
target_link_libraries(jplYap libYap ${JAVA_JVM_LIBRARY})
endif()
set_target_properties(jplYap PROPERTIES set_target_properties(jplYap PROPERTIES
OUTPUT_NAME jpl OUTPUT_NAME jpl
@ -28,7 +13,7 @@ endif()
# set(YAP_SYSTEM_OPTIONS "jpl " ${YAP_SYSTEM_OPTIONS} PARENT_SCOPE) # set(YAP_SYSTEM_OPTIONS "jpl " ${YAP_SYSTEM_OPTIONS} PARENT_SCOPE)
install(TARGETS jplYap install(TARGETS jplYap
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )

View File

@ -81,4 +81,4 @@ add_jar(jpl
SOURCES ${JPLJAVA} SOURCES ${JPLJAVA}
OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}) OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
install_jar(jpl ${libpl} ) install_jar(jpl ${YAP_INSTALL_DATADIR} )

View File

@ -27,9 +27,9 @@ if (WITH_MYSQL)
add_lib(YAPmysql ${MYSQL_SOURCES}) add_lib(YAPmysql ${MYSQL_SOURCES})
target_link_libraries(YAPmysql ${MYSQL_LIBRARIES} libYap) target_link_libraries(YAPmysql ${MYSQL_LIBRARIES} libYap)
install(TARGETS YAPmysql install(TARGETS YAPmysql
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
) )
endif() endif()
include_directories(${MYSQL_INCLUDE_DIR} ..) include_directories(${MYSQL_INCLUDE_DIR} ..)

View File

@ -30,9 +30,9 @@ if (WITH_ODBC)
install(TARGETS YAPodbc install(TARGETS YAPodbc
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )
else() else()

View File

@ -14,7 +14,7 @@ set(MYDDAS_DRIVERS
if (ANDROID) if (ANDROID)
set (MYDDAS_PREFIX ${libpl} ) set (MYDDAS_PREFIX ${YAP_INSTALL_DATADIR} )
else() else()
set (MYDDAS_PREFIX ${CMAKE_CURRENT_BINARY_DIR} ) set (MYDDAS_PREFIX ${CMAKE_CURRENT_BINARY_DIR} )
endif() endif()
@ -78,5 +78,5 @@ add_to_group(MYDDAS_YAP pl_library )
add_custom_target(plmyddas ALL DEPENDS ${MYDDAS_YAP} ) add_custom_target(plmyddas ALL DEPENDS ${MYDDAS_YAP} )
install(FILES ${MYDDAS_YAP} install(FILES ${MYDDAS_YAP}
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )

View File

@ -30,9 +30,9 @@ if (WITH_POSTGRES)
-DMYDDAS_POSTGRES=1) -DMYDDAS_POSTGRES=1)
install(TARGETS YAPpostgres install(TARGETS YAPpostgres
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )
endif (PostgreSQL_FOUND) endif (PostgreSQL_FOUND)

View File

@ -52,21 +52,21 @@ if (WITH_SQLITE3)
set_target_properties(YAPsqlite3 set_target_properties(YAPsqlite3
PROPERTIES PROPERTIES
# RPATH ${libdir} VERSION ${LIBYAPTAI_FULL_VERSION} # RPATH ${CMAKE_INSTALL_LIBDIR} VERSION ${LIBYAPTAI_FULL_VERSION}
# SOVERSION ${LIBYAPTAI_MAJOR_VERSION}.${LIBYAPTAI_MINOR_VERSION} # SOVERSION ${LIBYAPTAI_MAJOR_VERSION}.${LIBYAPTAI_MINOR_VERSION}
POSITION_INDEPENDENT_CODE ON POSITION_INDEPENDENT_CODE ON
PREFIX "" PREFIX ""
) )
install(TARGETS YAPsqlite3 install(TARGETS YAPsqlite3
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
) )
endif() endif()
install(FILES ${SQLITE_EXTRA} install(FILES ${SQLITE_EXTRA}
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )
endif() endif()

View File

@ -28,9 +28,9 @@ target_link_libraries(Py4YAP libYap ${PYTHON_LIBRARIES})
install(TARGETS Py4YAP install(TARGETS Py4YAP
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )
@ -46,13 +46,13 @@ set_property( SOURCE ${PYTHON_SOURCES} APPEND PROPERTY COMPILE_DEFINITIONS YA
set (PYTHON_PL python.pl) set (PYTHON_PL python.pl)
install(FILES python.pl DESTINATION ${libpl} ) install(FILES python.pl DESTINATION ${YAP_INSTALL_DATADIR} )
add_to_group( PYTHON_PL pl_library ) add_to_group( PYTHON_PL pl_library )
set_target_properties (YAPPython PROPERTIES PREFIX "") set_target_properties (YAPPython PROPERTIES PREFIX "")
install(TARGETS YAPPython install(TARGETS YAPPython
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ) ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR} )

View File

@ -73,10 +73,10 @@ endif()
COMMAND ${PYTHON_EXECUTABLE} setup.py sdist ${bdist} COMMAND ${PYTHON_EXECUTABLE} setup.py sdist ${bdist}
COMMAND ${PYTHON_EXECUTABLE} -m pip install ${PYTHON_USER_INSTALL} --ignore-installed . COMMAND ${PYTHON_EXECUTABLE} -m pip install ${PYTHON_USER_INSTALL} --ignore-installed .
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})"
DEPENDS Py4YAP ${CMAKE_BINARY_DIR}/${YAP_STARTUP} ${YAP_INSTALL_DLLDIR} ) DEPENDS Py4YAP ${CMAKE_BINARY_DIR}/${YAP_STARTUP} ${YAP_INSTALL_LIBDIR} )
install(FILES ${YAP4PY_PL} DESTINATION ${libpl} ) install(FILES ${YAP4PY_PL} DESTINATION ${YAP_INSTALL_DATADIR} )
add_to_group( YAP4PY_PL pl_library ) add_to_group( YAP4PY_PL pl_library )

View File

@ -58,18 +58,18 @@ here = path.abspath(path.dirname(__file__))
sys.path.insert(0, "/home/vsc/github/yap-6.3/packages/python/swig") sys.path.insert(0, "/home/vsc/github/yap-6.3/packages/python/swig")
python_libdir = path.abspath(path.dirname("/usr/lib/x86_64-linux-gnu/libpython3.6m.so")) python_libdir = path.abspath(path.dirname("/usr/lib/libpython3.7m.so"))
if platform.system() == 'Windows': if platform.system() == 'Windows':
local_libs = [] local_libs = []
win_libs = ['wsock32','ws2_32'] win_libs = ['wsock32','ws2_32']
my_extra_link_args = ['-Wl,-export-all-symbols'] my_extra_link_args = ['-Wl,-export-all-symbols']
elif platform.system() == 'Darwin': elif platform.system() == 'Darwin':
my_extra_link_args = ['-L','..','-Wl,-rpath,'+abspath(join(sysconfig.get_path('platlib'),'yap4py')),'-Wl,-rpath,/lib','-Wl,-rpath,../yap4py'] my_extra_link_args = ['-L','..','-Wl,-rpath,'+abspath(join(sysconfig.get_path('platlib'),'yap4py')),'-Wl,-rpath,/usr/local/lib','-Wl,-rpath,../yap4py']
win_libs = [] win_libs = []
local_libs = ['Py4YAP'] local_libs = ['Py4YAP']
elif platform.system() == 'Linux': elif platform.system() == 'Linux':
my_extra_link_args = ['-L','..','-Wl,-rpath,'+abspath(join(sysconfig.get_path('platlib'),'yap4py')),'-Wl,-rpath,/lib','-Wl,-rpath,'+join('/lib','..'),'-Wl,-rpath,../yap4py'] my_extra_link_args = ['-L','..','-Wl,-rpath,'+abspath(join(sysconfig.get_path('platlib'),'yap4py')),'-Wl,-rpath,/usr/local/lib','-Wl,-rpath,'+join('/usr/local/lib','..'),'-Wl,-rpath,../yap4py']
win_libs = [] win_libs = []
local_libs = ['Py4YAP'] local_libs = ['Py4YAP']
@ -78,22 +78,23 @@ elif platform.system() == 'Linux':
native_sources = ["yap4py/yap_wrap.cxx","yap4py/yapi.cpp"] native_sources = ["yap4py/yap_wrap.cxx","yap4py/yapi.cpp"]
#gmp_dir = path.abspath(path.dirname("/usr/lib/x86_64-linux-gnu/libgmp.so")) #gmp_dir = path.abspath(path.dirname("/lib/libgmp.so"))
# Get the long description from the README file # Get the long description from the README file
extensions = [Extension('_yap', native_sources, extensions = [Extension('_yap', native_sources,
define_macros=[('MAJOR_VERSION', '1'), define_macros=[('MAJOR_VERSION', '6'),
('MINOR_VERSION', '0'), ('MINOR_VERSION', '4'),
('_YAP_NOT_INSTALLED_', '1'), ('_YAP_NOT_INSTALLED_', '1'),
('YAP_PYTHON', '1'), ('YAP_PYTHON', '1'),
('PYTHONSWIG', '1'),
('_GNU_SOURCE', '1')], ('_GNU_SOURCE', '1')],
runtime_library_dirs=[ runtime_library_dirs=[
abspath(join(sysconfig.get_path('platlib'),'yap4py')), abspath(sysconfig.get_path('platlib')),'/lib'], abspath(join(sysconfig.get_path('platlib'),'yap4py')), abspath(sysconfig.get_path('platlib')),'/usr/local/lib'],
swig_opts=['-modern', '-c++', '-py3', swig_opts=['-modern', '-c++', '-py3',
'-DX_API', '-Iyap4py/include' ], '-DX_API', '-Iyap4py/include' ],
library_dirs=[".",'../../..','/lib'], library_dirs=[".",'../../..','/usr/local/lib'],
extra_link_args=my_extra_link_args, extra_link_args=my_extra_link_args,
libraries=['Yap','gmp']+win_libs+local_libs, libraries=['Yap','gmp']+win_libs+local_libs,
include_dirs=['/home/vsc/github/yap-6.3/H', include_dirs=['/home/vsc/github/yap-6.3/H',
@ -103,7 +104,7 @@ extensions = [Extension('_yap', native_sources,
'/home/vsc/github/yap-6.3/os', '/home/vsc/github/yap-6.3/os',
'/home/vsc/github/yap-6.3/utf8proc', '/home/vsc/github/yap-6.3/utf8proc',
'/home/vsc/github/yap-6.3/packages/python', '/home/vsc/github/yap-6.3/packages/python',
'../../..', '/home/vsc/github/yap-6.3',
'/home/vsc/github/yap-6.3/CXX' ] '/home/vsc/github/yap-6.3/CXX' ]
)] )]
@ -114,7 +115,7 @@ package_data = {
data_files=[] data_files=[]
version_ns = {'__version__': '6.3.5', 'minor-version': '6', 'minor-version': '3', 'patch': '5'} version_ns = {'__version__': '6.4.1', 'major-version': '6', 'minor-version': '4', 'patch': '1'}
setup_args = dict( setup_args = dict(
name=name, name=name,

View File

@ -440,4 +440,4 @@ add_custom_target(YAP_KERNEL ALL
OUTPUT_VARIABLE setupOut OUTPUT_VARIABLE setupOut
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})") WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")
install(FILES ${PL_SOURCES} DESTINATION ${libpl} ) install(FILES ${PL_SOURCES} DESTINATION ${YAP_INSTALL_DATADIR} )

View File

@ -54,9 +54,9 @@ else (WIN32)
endif() endif()
install(TARGETS libxml2 install(TARGETS libxml2
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${libdir} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
) )
endif(WIN32) endif(WIN32)
@ -67,7 +67,7 @@ endif(WIN32)
set_target_properties (libxml2 PROPERTIES PREFIX "") set_target_properties (libxml2 PROPERTIES PREFIX "")
INSTALL(FILES xml2.yap DESTINATION ${libpl}) INSTALL(FILES xml2.yap DESTINATION ${YAP_INSTALL_DATADIR})
ENDIF (LIBXML2_FOUND) ENDIF (LIBXML2_FOUND)
@ -109,14 +109,14 @@ IF (RAPTOR_FOUND)
set_target_properties (raptor PROPERTIES PREFIX "") set_target_properties (raptor PROPERTIES PREFIX "")
install(TARGETS raptor install(TARGETS raptor
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${libdir} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
) )
INSTALL(FILES raptor.yap DESTINATION ${libpl}) INSTALL(FILES raptor.yap DESTINATION ${YAP_INSTALL_DATADIR})
INSTALL(FILES rdf.yap DESTINATION ${libpl}) INSTALL(FILES rdf.yap DESTINATION ${YAP_INSTALL_DATADIR})
configure_file ("raptor_config.h.cmake" "raptor_config.h" ) configure_file ("raptor_config.h.cmake" "raptor_config.h" )

View File

@ -5,9 +5,9 @@
if (YAP_ROOT) if (YAP_ROOT)
set( YAP_INCLUDE_DIR ../../include ) set( YAP_INCLUDE_DIR ../../include )
set( YAP_PL_LIBRARY_DIR ${libpl} ) set( YAP_PL_LIBRARY_DIR ${YAP_INSTALL_DATADIR} )
set( YAP_LIBRARY libYap ) set( YAP_LIBRARY libYap )
set( YAP_DLLS ${YAP_INSTALL_DLLDIR} ) set( YAP_DLLS ${YAP_INSTALL_LIBDIR} )
else() else()

View File

@ -38,13 +38,13 @@ include_directories (
configure_file ("rconfig.h.cmake" "rconfig.h" ) configure_file ("rconfig.h.cmake" "rconfig.h" )
install(TARGETS real install(TARGETS real
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
) )
install(FILES real.pl install(FILES real.pl
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )
endif() endif()

View File

@ -44,8 +44,8 @@ pl-minisat.C
install ( install (
TARGETS minisat2 TARGETS minisat2
RUNTIME DESTINATION ${CMAKE_INSTALL_BIINDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BIINDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
) )

View File

@ -11,7 +11,7 @@ set (EXAMPLE_PROGRAMS
install(FILES install(FILES
${PROGRAMS} ${PROGRAMS}
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )
add_subDIRECTORY (C) add_subDIRECTORY (C)

View File

@ -18,20 +18,20 @@ FILE( MAKE_DIRECTORY ${YAP_APP_DIR}/src/generated/jni)
add_custom_target (pllib add_custom_target (pllib
COMMAND ${CMAKE_COMMAND} -E make_directory ${pllib} COMMAND ${CMAKE_COMMAND} -E make_directory ${YAP_INSTALL_DATADIR}
COMMAND ${CMAKE_COMMAND} -E copy ${pl_library} ${pllib} COMMAND ${CMAKE_COMMAND} -E copy ${pl_library} ${YAP_INSTALL_DATADIR}
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/android.yap ${pllib} COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/android.yap ${YAP_INSTALL_DATADIR}
DEPENDS ${pl_library} DEPENDS ${pl_library}
) )
add_custom_target (pllibpl add_custom_target (pllibpl
COMMAND ${CMAKE_COMMAND} -E make_directory ${pllib}/pl COMMAND ${CMAKE_COMMAND} -E make_directory ${YAP_INSTALL_DATADIR}/pl
COMMAND ${CMAKE_COMMAND} -E copy ${pl_boot_library} ${pllib}/pl COMMAND ${CMAKE_COMMAND} -E copy ${pl_boot_library} ${YAP_INSTALL_DATADIR}/pl
DEPENDS pllib ${pl_boot_library} DEPENDS pllib ${pl_boot_library}
) )
add_custom_target (pllibos ALL add_custom_target (pllibos ALL
COMMAND ${CMAKE_COMMAND} -E make_directory ${pllib}/os COMMAND ${CMAKE_COMMAND} -E make_directory ${YAP_INSTALL_DATADIR}/os
COMMAND ${CMAKE_COMMAND} -E copy ${pl_os_library} ${pllib}/os COMMAND ${CMAKE_COMMAND} -E copy ${pl_os_library} ${YAP_INSTALL_DATADIR}/os
DEPENDS pllibpl ${pl_os_library} DEPENDS pllibpl ${pl_os_library}
) )

View File

@ -45,7 +45,7 @@ if (JNI_FOUND)
DEPENDS Native DEPENDS Native
PROPERTIES OUTPUT_NAME Native PROPERTIES OUTPUT_NAME Native
) )
install_jar(NativeJar ${libpl}) install_jar(NativeJar ${YAP_INSTALL_DATADIR})
add_dependencies(NativeJar Native ) add_dependencies(NativeJar Native )
#install_jni_symlink(NativeJar .) #install_jni_symlink(NativeJar .)
@ -65,12 +65,12 @@ if (JNI_FOUND)
SET(CMAKE_JAVA_COMPILE_FLAGS "-source" "1.8" "-target" "1.8") SET(CMAKE_JAVA_COMPILE_FLAGS "-source" "1.8" "-target" "1.8")
install( TARGETS Native install( TARGETS Native
RUNTIME DESTINATION ${CMAKE_INSTALL_BIINDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BIINDIR}
ARCHIVE DESTINATION ${libdir} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${libdir} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
) )
install_jar(JavaYAP ${libpl}) install_jar(JavaYAP ${YAP_INSTALL_DATADIR})
#install_jni_symlink(JavaYAP ${libpl}) #install_jni_symlink(JavaYAP ${YAP_INSTALL_DATADIR})

View File

@ -56,7 +56,7 @@ if (Java_Development_FOUND)
DEPENDS Native DEPENDS Native
PROPERTIES OUTPUT_NAME Native PROPERTIES OUTPUT_NAME Native
) )
install_jar(NativeJar ${libpl}) install_jar(NativeJar ${YAP_INSTALL_DATADIR})
add_dependencies(NativeJar Native ) add_dependencies(NativeJar Native )
#install_jni_symlink(NativeJar .) #install_jni_symlink(NativeJar .)
@ -73,15 +73,15 @@ if (Java_Development_FOUND)
SOURCES "JavaYAP.java" SOURCES "JavaYAP.java"
ENTRY_POINT JavaYAP ENTRY_POINT JavaYAP
INCLUDE_JARS NativeJar ) INCLUDE_JARS NativeJar )
SET(CMAKE_JAVA_COMPILE_FLAGS "-source" "1.8" "-target" "1.8") SET(CMAKE_JAVA_COMPILE_FLAGS)
install( TARGETS Native install( TARGETS Native
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_DLLDIR}
ARCHIVE DESTINATION ${libdir} ARCHIVE DESTINATION ${CMAKE_INSTALL_DLLDIR}
LIBRARY DESTINATION ${libdir} LIBRARY DESTINATION ${CMAKE_INSTALL_DLLDIR}
) )
install_jar(JavaYAP ${libpl}) install_jar(JavaYAP ${YAP_INSTALL_DATADIR})
#install_jni_symlink(JavaYAP ${libpl}) #install_jni_symlink(JavaYAP ${YAP_INSTALL_DATADIR})

View File

@ -37,9 +37,9 @@ add_custom_target (xmlpl SOURCES ${XML_PL} ${LIBRARY_PL} ) # WORKING_DIRECTORY $
install(FILES ${LIBRARY_PL} install(FILES ${LIBRARY_PL}
DESTINATION ${libpl}/xml DESTINATION ${YAP_INSTALL_DATADIR}/xml
) )
install(FILES ${XML_PL} install(FILES ${XML_PL}
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )

View File

@ -35,11 +35,11 @@ ENDIF (NOT YAP_FOUND)
install(TARGETS LBFGS install(TARGETS LBFGS
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${libdir} ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
) )
INSTALL(FILES lbfgs.pl DESTINATION ${libpl}) INSTALL(FILES lbfgs.pl DESTINATION ${YAP_INSTALL_DATADIR})

View File

@ -68,7 +68,7 @@ if (ANDROID)
add_custom_target(STARTUP add_custom_target(STARTUP
DEPENDS ${PL_BOOT_SOURCES} DEPENDS ${PL_BOOT_SOURCES}
) )
file (INSTALL ${PL_BOOT_SOURCES} DESTINATION ${libpl}/pl) file (INSTALL ${PL_BOOT_SOURCES} DESTINATION ${YAP_INSTALL_DATADIR}/pl)
elseif(CMAKE_CROSSCOMPILING) elseif(CMAKE_CROSSCOMPILING)
add_custom_target(STARTUP ALL SOURCES add_custom_target(STARTUP ALL SOURCES
DEPENDS ${PL_BOOT_SOURCES} DEPENDS ${PL_BOOT_SOURCES}
@ -89,11 +89,11 @@ else ()
install(FILES ${CMAKE_TOP_BINARY_DIR}/${YAP_STARTUP} install(FILES ${CMAKE_TOP_BINARY_DIR}/${YAP_STARTUP}
DESTINATION ${YAP_INSTALL_DLLDIR} DESTINATION ${YAP_INSTALL_LIBDIR}
) )
endif() endif()
install(FILES ${PL_BOOT_SOURCES} install(FILES ${PL_BOOT_SOURCES}
DESTINATION ${libpl}/pl DESTINATION ${YAP_INSTALL_DATADIR}/pl
) )

View File

@ -38,11 +38,11 @@ set (LIBRARY_PL
if (ANDROID) if (ANDROID)
file(INSTALL ${LIBRARY_PL} DESTINATION ${libpl}) file(INSTALL ${LIBRARY_PL} DESTINATION ${YAP_INSTALL_DATADIR})
endif() endif()
install(FILES ${LIBRARY_PL} install(FILES ${LIBRARY_PL}
DESTINATION ${libpl} DESTINATION ${YAP_INSTALL_DATADIR}
) )
add_to_group( LIBRARY_PL pl_library ) add_to_group( LIBRARY_PL pl_library )