[Groonga-commit] groonga/groonga at 9f23518 [master] cmake: support plugin bundled build

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 25 11:15:51 JST 2013


Kouhei Sutou	2013-04-25 11:15:51 +0900 (Thu, 25 Apr 2013)

  New Revision: 9f23518631e8fc68640a1f6fc5cdc87d5eb9b860
  https://github.com/groonga/groonga/commit/9f23518631e8fc68640a1f6fc5cdc87d5eb9b860

  Message:
    cmake: support plugin bundled build

  Added files:
    vendor/plugins/CMakeLists.txt
  Modified files:
    .gitignore
    CMakeLists.txt

  Modified: .gitignore (+1 -0)
===================================================================
--- .gitignore    2013-04-25 10:18:27 +0900 (b247c10)
+++ .gitignore    2013-04-25 11:15:51 +0900 (4d76e56)
@@ -35,6 +35,7 @@
 /data/groonga-httpd.conf
 /vendor/nginx-*/objs
 /vendor/mruby/parse.c
+/vendor/plugins/*/
 /groonga.spec
 /stamp-h1
 /CMakeCache.txt

  Modified: CMakeLists.txt (+2 -0)
===================================================================
--- CMakeLists.txt    2013-04-25 10:18:27 +0900 (26ec905)
+++ CMakeLists.txt    2013-04-25 11:15:51 +0900 (c49b886)
@@ -345,3 +345,5 @@ configure_file(groonga.pc.in "${CMAKE_CURRENT_BINARY_DIR}/groonga.pc" @ONLY)
 install(
   FILES "${CMAKE_CURRENT_BINARY_DIR}/groonga.pc"
   DESTINATION "${LIB_DIR}/pkgconfig/")
+
+add_subdirectory(vendor/plugins)

  Added: vendor/plugins/CMakeLists.txt (+25 -0) 100644
===================================================================
--- /dev/null
+++ vendor/plugins/CMakeLists.txt    2013-04-25 11:15:51 +0900 (2fa04fb)
@@ -0,0 +1,25 @@
+# Copyright(C) 2013 Brazil
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1 as published by the Free Software Foundation.
+#
+# This library 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
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+file(GLOB
+  PLUGIN_CMAKE_LISTS_LIST
+  "${CMAKE_CURRENT_SOURCE_DIR}/*/CMakeLists.txt")
+foreach(PLUGIN_CMAKE_LISTS "${PLUGIN_CMAKE_LISTS_LIST}")
+  string(REGEX REPLACE
+    "(^${CMAKE_CURRENT_SOURCE_DIR}/+|/+CMakeLists\\.txt$)" ""
+    PLUGIN_DIR
+    "${PLUGIN_CMAKE_LISTS}")
+  add_subdirectory("${PLUGIN_DIR}")
+endforeach(PLUGIN_CMAKE_LISTS)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index