|
@@ -94,7 +94,7 @@ option(ENV_CONF_FILE "Set the environment conf file name.")
|
|
option(LICENSE_FILE "Set the license file to use.")
|
|
option(LICENSE_FILE "Set the license file to use.")
|
|
|
|
|
|
if(NOT LICENSE_FILE)
|
|
if(NOT LICENSE_FILE)
|
|
- if(MAKE_R_ONLY)
|
|
|
|
|
|
+ if(REMBED)
|
|
set(LICENSE_FILE "R-LICENSE.txt")
|
|
set(LICENSE_FILE "R-LICENSE.txt")
|
|
else ()
|
|
else ()
|
|
set(LICENSE_FILE "LICENSE.txt")
|
|
set(LICENSE_FILE "LICENSE.txt")
|
|
@@ -103,7 +103,7 @@ endif()
|
|
|
|
|
|
include(${HPCC_SOURCE_DIR}/cmake_modules/optionDefaults.cmake)
|
|
include(${HPCC_SOURCE_DIR}/cmake_modules/optionDefaults.cmake)
|
|
|
|
|
|
-if ( MAKE_R_ONLY )
|
|
|
|
|
|
+if ( REMBED )
|
|
# various components that are not needed if only making the R plugin
|
|
# various components that are not needed if only making the R plugin
|
|
SET(USE_LIBARCHIVE 0)
|
|
SET(USE_LIBARCHIVE 0)
|
|
SET(USE_APR 0)
|
|
SET(USE_APR 0)
|
|
@@ -111,13 +111,24 @@ endif()
|
|
|
|
|
|
include(${HPCC_SOURCE_DIR}/cmake_modules/commonSetup.cmake)
|
|
include(${HPCC_SOURCE_DIR}/cmake_modules/commonSetup.cmake)
|
|
|
|
|
|
-if ( MAKE_R_ONLY )
|
|
|
|
|
|
+if ( PLUGIN )
|
|
HPCC_ADD_SUBDIRECTORY (roxie/roxiemem)
|
|
HPCC_ADD_SUBDIRECTORY (roxie/roxiemem)
|
|
HPCC_ADD_SUBDIRECTORY (rtl/nbcd)
|
|
HPCC_ADD_SUBDIRECTORY (rtl/nbcd)
|
|
HPCC_ADD_SUBDIRECTORY (rtl/eclrtl)
|
|
HPCC_ADD_SUBDIRECTORY (rtl/eclrtl)
|
|
HPCC_ADD_SUBDIRECTORY (system/lzma)
|
|
HPCC_ADD_SUBDIRECTORY (system/lzma)
|
|
HPCC_ADD_SUBDIRECTORY (system/jlib)
|
|
HPCC_ADD_SUBDIRECTORY (system/jlib)
|
|
- HPCC_ADD_SUBDIRECTORY (plugins/Rembed)
|
|
|
|
|
|
+ HPCC_ADD_SUBDIRECTORY (dali/base)
|
|
|
|
+ HPCC_ADD_SUBDIRECTORY (common/workunit "CASSANDRAEMBED")
|
|
|
|
+ HPCC_ADD_SUBDIRECTORY (plugins/Rembed "REMBED")
|
|
|
|
+ HPCC_ADD_SUBDIRECTORY (plugins/v8embed "V8EMBED")
|
|
|
|
+ HPCC_ADD_SUBDIRECTORY (plugins/memcached "MEMCACHED")
|
|
|
|
+ HPCC_ADD_SUBDIRECTORY (plugins/pyembed "PYEMBED")
|
|
|
|
+ HPCC_ADD_SUBDIRECTORY (plugins/redis "REDISEMBED")
|
|
|
|
+ HPCC_ADD_SUBDIRECTORY (plugins/javaembed "JAVAEMBED")
|
|
|
|
+ HPCC_ADD_SUBDIRECTORY (plugins/kafka "KAFKAEMBED")
|
|
|
|
+ HPCC_ADD_SUBDIRECTORY (plugins/cassandra "CASSANDRAEMBED")
|
|
|
|
+ HPCC_ADD_SUBDIRECTORY (plugins/sqlite3 "SQLITE3EMBED")
|
|
|
|
+ HPCC_ADD_SUBDIRECTORY (plugins/mysql "MYSQLEMBED")
|
|
elseif ( NOT MAKE_DOCS_ONLY )
|
|
elseif ( NOT MAKE_DOCS_ONLY )
|
|
HPCC_ADD_SUBDIRECTORY (initfiles)
|
|
HPCC_ADD_SUBDIRECTORY (initfiles)
|
|
HPCC_ADD_SUBDIRECTORY (tools)
|
|
HPCC_ADD_SUBDIRECTORY (tools)
|
|
@@ -157,9 +168,9 @@ if("${stagever}" MATCHES "^rc[0-9]+$")
|
|
endif()
|
|
endif()
|
|
|
|
|
|
if(TOP_LEVEL_PROJECT)
|
|
if(TOP_LEVEL_PROJECT)
|
|
- if(MAKE_R_ONLY)
|
|
|
|
- set(CPACK_PACKAGE_NAME "hpccsystems-r-plugin")
|
|
|
|
- set(PACKAGE_FILE_NAME_PREFIX "hpccsystems-r-plugin")
|
|
|
|
|
|
+ if(PLUGIN)
|
|
|
|
+ set(CPACK_PACKAGE_NAME "hpccsystems-${pluginname}-plugin")
|
|
|
|
+ set(PACKAGE_FILE_NAME_PREFIX "hpccsystems-${pluginname}-plugin")
|
|
elseif(PLATFORM)
|
|
elseif(PLATFORM)
|
|
set(CPACK_PACKAGE_NAME "hpccsystems-platform")
|
|
set(CPACK_PACKAGE_NAME "hpccsystems-platform")
|
|
set(PACKAGE_FILE_NAME_PREFIX "hpccsystems-platform-${projname}")
|
|
set(PACKAGE_FILE_NAME_PREFIX "hpccsystems-platform-${projname}")
|
|
@@ -171,6 +182,7 @@ if(TOP_LEVEL_PROJECT)
|
|
set(CPACK_PACKAGE_VERSION_MAJOR ${majorver})
|
|
set(CPACK_PACKAGE_VERSION_MAJOR ${majorver})
|
|
set(CPACK_PACKAGE_VERSION_MINOR ${minorver})
|
|
set(CPACK_PACKAGE_VERSION_MINOR ${minorver})
|
|
set(CPACK_PACKAGE_VERSION_PATCH ${point}${VER_SEPARATOR}${stagever})
|
|
set(CPACK_PACKAGE_VERSION_PATCH ${point}${VER_SEPARATOR}${stagever})
|
|
|
|
+ set(CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
|
|
set(CPACK_PACKAGE_CONTACT "HPCCSystems <ossdevelopment@lexisnexis.com>")
|
|
set(CPACK_PACKAGE_CONTACT "HPCCSystems <ossdevelopment@lexisnexis.com>")
|
|
set(CPACK_SOURCE_GENERATOR TGZ)
|
|
set(CPACK_SOURCE_GENERATOR TGZ)
|
|
|
|
|
|
@@ -210,15 +222,12 @@ if(TOP_LEVEL_PROJECT)
|
|
message("-- Auto Detecting Packaging type")
|
|
message("-- Auto Detecting Packaging type")
|
|
message("-- distro uses ${packageManagement}, revision is ${packageRevisionArch}")
|
|
message("-- distro uses ${packageManagement}, revision is ${packageRevisionArch}")
|
|
|
|
|
|
- if("${packageManagement}" STREQUAL "RPM" AND WITH_PLUGINS)
|
|
|
|
|
|
+ if("${packageManagement}" STREQUAL "RPM")
|
|
set(CPACK_RPM_SPEC_MORE_DEFINE
|
|
set(CPACK_RPM_SPEC_MORE_DEFINE
|
|
"%define _use_internal_dependency_generator 0
|
|
"%define _use_internal_dependency_generator 0
|
|
-%define __getdeps() while read file; do /usr/lib/rpm/rpmdeps -%{1} ${file}; done | /bin/sort -u
|
|
|
|
|
|
+%define __getdeps() while read file; do /usr/lib/rpm/rpmdeps -%{1} ${file} | %{__grep} -v libRInside.so | %{__grep} -v libRcpp.so ; done | /bin/sort -u
|
|
%define __find_provides /bin/sh -c '%{__getdeps P}'
|
|
%define __find_provides /bin/sh -c '%{__getdeps P}'
|
|
-%define __find_requires /bin/sh -c '%{__grep} -v libRembed.so | %{__getdeps R}'")
|
|
|
|
- if(NOT MAKE_R_ONLY)
|
|
|
|
- set(PACKAGE_FILE_NAME_PREFIX "${PACKAGE_FILE_NAME_PREFIX}-with-plugins")
|
|
|
|
- endif()
|
|
|
|
|
|
+%define __find_requires /bin/sh -c '%{__getdeps R}'")
|
|
endif()
|
|
endif()
|
|
|
|
|
|
if("${packageManagement}" STREQUAL "DEB")
|
|
if("${packageManagement}" STREQUAL "DEB")
|
|
@@ -333,13 +342,13 @@ if(TOP_LEVEL_PROJECT)
|
|
endif ()
|
|
endif ()
|
|
endif(UNIX)
|
|
endif(UNIX)
|
|
|
|
|
|
- if(MAKE_R_ONLY)
|
|
|
|
|
|
+ if(PLUGIN)
|
|
if("${packageManagement}" STREQUAL "RPM")
|
|
if("${packageManagement}" STREQUAL "RPM")
|
|
SET_DEPENDENCIES(CPACK_RPM_PACKAGE_REQUIRES "hpccsystems-platform = ${CPACK_RPM_PACKAGE_VERSION}")
|
|
SET_DEPENDENCIES(CPACK_RPM_PACKAGE_REQUIRES "hpccsystems-platform = ${CPACK_RPM_PACKAGE_VERSION}")
|
|
elseif("${packageManagement}" STREQUAL "DEB")
|
|
elseif("${packageManagement}" STREQUAL "DEB")
|
|
- SET_DEPENDENCIES(CPACK_DEBIAN_PACKAGE_DEPENDS "hpccsystems-platform = ${CPACK_RPM_PACKAGE_VERSION}")
|
|
|
|
|
|
+ SET_DEPENDENCIES(CPACK_DEBIAN_PACKAGE_DEPENDS "hpccsystems-platform (= ${CPACK_PACKAGE_VERSION})")
|
|
else()
|
|
else()
|
|
- message(WARNING "Dependencies not set")
|
|
|
|
|
|
+ message(WARNING "Plugin Static Dependencies not set")
|
|
endif()
|
|
endif()
|
|
else()
|
|
else()
|
|
if(EXISTS ${HPCC_SOURCE_DIR}/cmake_modules/dependencies/${packageRevision}.cmake)
|
|
if(EXISTS ${HPCC_SOURCE_DIR}/cmake_modules/dependencies/${packageRevision}.cmake)
|
|
@@ -354,9 +363,9 @@ if(TOP_LEVEL_PROJECT)
|
|
set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
|
set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
|
endif(UNIX)
|
|
endif(UNIX)
|
|
|
|
|
|
- if(PLATFORM)
|
|
|
|
|
|
+ if(PLATFORM OR PLUGIN)
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PACKAGE_FILE_NAME_PREFIX}")
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PACKAGE_FILE_NAME_PREFIX}")
|
|
- else(PLATFORM)
|
|
|
|
|
|
+ else()
|
|
if(APPLE OR WIN32)
|
|
if(APPLE OR WIN32)
|
|
set(CPACK_PACKAGE_FILE_NAME "${PACKAGE_FILE_NAME_PREFIX}_${version}-${stagever}${CPACK_SYSTEM_NAME}")
|
|
set(CPACK_PACKAGE_FILE_NAME "${PACKAGE_FILE_NAME_PREFIX}_${version}-${stagever}${CPACK_SYSTEM_NAME}")
|
|
endif()
|
|
endif()
|
|
@@ -395,13 +404,14 @@ if(TOP_LEVEL_PROJECT)
|
|
add_dependencies(SIGN PACKAGE)
|
|
add_dependencies(SIGN PACKAGE)
|
|
set_property(TARGET SIGN PROPERTY FOLDER "CMakePredefinedTargets")
|
|
set_property(TARGET SIGN PROPERTY FOLDER "CMakePredefinedTargets")
|
|
endif()
|
|
endif()
|
|
- endif(PLATFORM)
|
|
|
|
|
|
+ endif(PLATFORM OR PLUGIN)
|
|
endif(TOP_LEVEL_PROJECT)
|
|
endif(TOP_LEVEL_PROJECT)
|
|
|
|
|
|
###
|
|
###
|
|
## Below are the non-compile based install scripts required for
|
|
## Below are the non-compile based install scripts required for
|
|
## the hpcc platform.
|
|
## the hpcc platform.
|
|
###
|
|
###
|
|
-
|
|
|
|
-install(FILES ${HPCC_SOURCE_DIR}/${LICENSE_FILE} DESTINATION "." COMPONENT Runtime)
|
|
|
|
|
|
+if(PLATFORM OR CLIENTTOOLS OR REMBED)
|
|
|
|
+ install(FILES ${HPCC_SOURCE_DIR}/${LICENSE_FILE} DESTINATION "." COMPONENT Runtime)
|
|
|
|
+endif()
|
|
include(CPack)
|
|
include(CPack)
|