[Groonga-commit] groonga/groonga [master] cmake: support suggest plugin

アーカイブの一覧に戻る

null+****@clear***** null+****@clear*****
2012年 4月 13日 (金) 19:24:36 JST


Kouhei Sutou	2012-04-13 19:24:36 +0900 (Fri, 13 Apr 2012)

  New Revision: bc000c62c56b772652e701c8c604debb477cfaa6

  Log:
    cmake: support suggest plugin

  Added files:
    plugins/CMakeLists.txt
    plugins/suggest/CMakeLists.txt
    plugins/suggest/sources.am
  Modified files:
    .gitignore
    CMakeLists.txt
    plugins/suggest/Makefile.am

  Modified: .gitignore (+1 -1)
===================================================================
--- .gitignore    2012-04-13 19:18:38 +0900 (83b078e)
+++ .gitignore    2012-04-13 19:24:36 +0900 (2221cd7)
@@ -1,6 +1,7 @@
 *.la
 *.lo
 *.o
+*.so
 *.exe
 *.pyc
 *.gcno
@@ -63,7 +64,6 @@ cmake_install.cmake
 /doc/commands_not_implemented/
 /doc/sphinx/
 /lib/icudump
-/lib/libgroonga.so
 /coverage
 /coverage.info
 /test/unit/lib/*-*.*.*/

  Modified: CMakeLists.txt (+1 -0)
===================================================================
--- CMakeLists.txt    2012-04-13 19:18:38 +0900 (2bc4dfa)
+++ CMakeLists.txt    2012-04-13 19:24:36 +0900 (ca3ee4d)
@@ -109,5 +109,6 @@ set(LIBGROONGA ${CMAKE_BINARY_DIR}/lib/libgroonga.so)
 
 add_subdirectory(lib)
 add_subdirectory(src)
+add_subdirectory(plugins)
 
 configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)

  Added: plugins/CMakeLists.txt (+16 -0) 100644
===================================================================
--- /dev/null
+++ plugins/CMakeLists.txt    2012-04-13 19:24:36 +0900 (109f069)
@@ -0,0 +1,16 @@
+# Copyright(C) 2012 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
+
+add_subdirectory(suggest)

  Added: plugins/suggest/CMakeLists.txt (+25 -0) 100644
===================================================================
--- /dev/null
+++ plugins/suggest/CMakeLists.txt    2012-04-13 19:24:36 +0900 (725e76a)
@@ -0,0 +1,25 @@
+# Copyright(C) 2012 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
+
+include(${CMAKE_SOURCE_DIR}/build/cmake_modules/ReadFileList.cmake)
+
+include_directories(
+  ${CMAKE_SOURCE_DIR}/lib
+  )
+
+read_file_list(${CMAKE_CURRENT_SOURCE_DIR}/sources.am SUGGEST_SOURCES)
+add_library(suggest MODULE ${SUGGEST_SOURCES})
+set_target_properties(suggest PROPERTIES PREFIX "")
+target_link_libraries(suggest ${LIBGROONGA})

  Modified: plugins/suggest/Makefile.am (+1 -1)
===================================================================
--- plugins/suggest/Makefile.am    2012-04-13 19:18:38 +0900 (34731ba)
+++ plugins/suggest/Makefile.am    2012-04-13 19:24:36 +0900 (e16a947)
@@ -15,4 +15,4 @@ LIBS =						\
 
 suggest_plugins_LTLIBRARIES = suggest.la
 
-suggest_la_SOURCES = suggest.c
+include sources.am

  Added: plugins/suggest/sources.am (+2 -0) 100644
===================================================================
--- /dev/null
+++ plugins/suggest/sources.am    2012-04-13 19:24:36 +0900 (798a431)
@@ -0,0 +1,2 @@
+suggest_la_SOURCES =				\
+	suggest.c




Groonga-commit メーリングリストの案内
アーカイブの一覧に戻る