]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
git: add submodule for spawn library
authorCasey Bodley <cbodley@redhat.com>
Wed, 6 Nov 2019 20:55:46 +0000 (15:55 -0500)
committerMauricio Faria de Oliveira <mfo@canonical.com>
Mon, 8 Mar 2021 12:36:37 +0000 (09:36 -0300)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit c84fc4036ea9481e47687f1a212419b6f83c3c94)
Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
.gitmodules
src/CMakeLists.txt
src/rgw/CMakeLists.txt
src/spawn [new submodule]

index fc961d5fb298d282a9748be11fd0788b58f7dbaa..08ed451fdab96d289c52fa1bf082be71644e7995 100644 (file)
@@ -58,3 +58,6 @@
 [submodule "src/c-ares"]
        path = src/c-ares
        url = https://github.com/ceph/c-ares.git
+[submodule "src/spawn"]
+       path = src/spawn
+       url = https://github.com/ceph/spawn.git
index f6a97ba15c426ea5b28ecb9f8f54135c81daef4a..93a5290331cc551ce322a46c9dd582f433f4a014 100644 (file)
@@ -692,6 +692,12 @@ if(WITH_RBD)
   add_subdirectory(rbd_replay)
 endif(WITH_RBD)
 
+if(WITH_BOOST_CONTEXT)
+  set(SPAWN_BUILD_TESTS OFF CACHE INTERNAL "disable building of spawn unit tests")
+  set(SPAWN_INSTALL OFF CACHE INTERNAL "disable installation of spawn headers")
+  add_subdirectory(spawn)
+endif()
+
 # RadosGW
 if(WITH_KVS)
   add_subdirectory(key_value_store)
index 12f831fbd8867823d49356560b4084b3d4c489d4..b1c757d60fa7f4268cbbb714ada88ffa2dab4ec3 100644 (file)
@@ -219,7 +219,7 @@ if(WITH_CURL_OPENSSL)
 endif()
 
 if(WITH_BOOST_CONTEXT)
-  target_link_libraries(rgw_a PRIVATE Boost::coroutine Boost::context)
+  target_link_libraries(rgw_a PRIVATE spawn)
 endif()
 
 set(rgw_libs rgw_a)
diff --git a/src/spawn b/src/spawn
new file mode 160000 (submodule)
index 0000000..5f4742f
--- /dev/null
+++ b/src/spawn
@@ -0,0 +1 @@
+Subproject commit 5f4742f647a5a33b9467f648a3968b3cd0a681ee