Commit 8581de85 authored by Dominik Charousset's avatar Dominik Charousset

Build shell as submodule

parent 3f6a0784
......@@ -10,3 +10,6 @@
[submodule "probe"]
path = probe
url = https://github.com/actor-framework/probe.git
[submodule "shell"]
path = shell
url = https://github.com/actor-framework/shell
......@@ -261,6 +261,21 @@ else()
# make sure variable is set for build log
set(CAF_NO_NEXUS yes)
endif()
# build shell if not being told otherwise
if(NOT CAF_NO_SHELL AND EXISTS "${CMAKE_SOURCE_DIR}/shell/caf/")
if(NOT CAF_HAS_PROBE_EVENTS)
message(WARNING "cannot build shell: probe-event submodule missing")
set(CAF_NO_SHELL yes)
else()
message(STATUS "Enter subdirectory shell")
add_subdirectory(shell)
add_dependencies(shell libcaf_io)
set(CAF_NO_SHELL no)
endif()
else()
# make sure variable is set for build log
set(CAF_NO_SHELL yes)
endif()
# build probe if not being told otherwise
if(NOT CAF_NO_PROBE AND EXISTS "${CMAKE_SOURCE_DIR}/probe/caf/")
if(NOT CAF_HAS_PROBE_EVENTS)
......@@ -337,6 +352,8 @@ endmacro()
invertYesNo(CAF_NO_EXAMPLES CAF_BUILD_EXAMPLES)
invertYesNo(CAF_NO_UNIT_TESTS CAF_BUILD_UNIT_TESTS)
invertYesNo(CAF_NO_NEXUS CAF_BUILD_NEXUS)
invertYesNo(CAF_NO_PROBE CAF_BUILD_PROBE)
invertYesNo(CAF_NO_SHELL CAF_BUILD_SHELL)
invertYesNo(CAF_NO_MEM_MANAGEMENT CAF_BUILD_MEM_MANAGEMENT)
invertYesNo(CAF_NO_BENCHMARKS CAF_BUILD_BENCHMARKS)
# collect all compiler flags
......@@ -358,6 +375,7 @@ message(STATUS
"\nBuild examples: ${CAF_BUILD_EXAMPLES}"
"\nBuild unit tests: ${CAF_BUILD_UNIT_TESTS}"
"\nBuild nexus: ${CAF_BUILD_NEXUS}"
"\nBuild shell: ${CAF_BUILD_SHELL}"
"\nBuild probe: ${CAF_BUILD_PROBE}"
"\nBuild benchmarks: ${CAF_BUILD_BENCHMARKS}"
"\n"
......
Subproject commit c5f1e48d5adda1b5aa0b92d0e18bde69166c1705
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment