Kouhei Sutou
null+****@clear*****
Sun Feb 18 13:59:24 JST 2018
Kouhei Sutou 2018-02-18 13:59:24 +0900 (Sun, 18 Feb 2018) New Revision: b49f80357722835e75876743443fcb7ff97560be https://github.com/groonga/groonga/commit/b49f80357722835e75876743443fcb7ff97560be Message: Use the same directory as .dll/.exe for .pdb Modified files: CMakeLists.txt lib/CMakeLists.txt lib/ctx.c packages/windows/Rakefile plugins/functions/CMakeLists.txt plugins/query_expanders/CMakeLists.txt plugins/suggest/CMakeLists.txt plugins/token_filters/CMakeLists.txt plugins/tokenizers/CMakeLists.txt src/CMakeLists.txt src/suggest/CMakeLists.txt vendor/lz4/CMakeLists.txt vendor/mecab/CMakeLists.txt vendor/message_pack/CMakeLists.txt Modified: CMakeLists.txt (+0 -1) =================================================================== --- CMakeLists.txt 2018-02-16 18:31:24 +0900 (fb581c7a9) +++ CMakeLists.txt 2018-02-18 13:59:24 +0900 (237e898a7) @@ -84,7 +84,6 @@ option(GRN_EMBED set(BIN_DIR "bin") set(SBIN_DIR "sbin") set(LIB_DIR "lib") -set(PDB_DIR "${LIB_DIR}/pdb") set(INCLUDE_DIR "include") set(GRN_INCLUDE_DIR "include/groonga") set(DATA_DIR "share") Modified: lib/CMakeLists.txt (+2 -2) =================================================================== --- lib/CMakeLists.txt 2018-02-16 18:31:24 +0900 (8a219318d) +++ lib/CMakeLists.txt 2018-02-18 13:59:24 +0900 (382c904ce) @@ -1,4 +1,4 @@ -# Copyright(C) 2012-2016 Brazil +# Copyright(C) 2012-2018 Brazil # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -121,7 +121,7 @@ else() RUNTIME DESTINATION "${BIN_DIR}") if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:libgroonga> - DESTINATION "${PDB_DIR}" + DESTINATION "${BIN_DIR}" OPTIONAL) endif() endif() Modified: lib/ctx.c (+3 -2) =================================================================== --- lib/ctx.c 2018-02-16 18:31:24 +0900 (c99d53e7b) +++ lib/ctx.c 2018-02-18 13:59:24 +0900 (77f408e6d) @@ -1633,7 +1633,8 @@ exception_filter(EXCEPTION_POINTERS *info) base_dir = grn_windows_base_dir(); { char *current, *end; - const char *pdb_dir = "\\lib\\pdb"; + /* TODO: Add more directories for plugins and so on. */ + const char *bin_dir = "\\bin"; current = search_path + strlen(search_path); end = current + sizeof(search_path) - 1; for (; *base_dir && current < end; base_dir++, current++) { @@ -1647,7 +1648,7 @@ exception_filter(EXCEPTION_POINTERS *info) current--; } *current = '\0'; - grn_strcat(search_path, sizeof(search_path), pdb_dir); + grn_strcat(search_path, sizeof(search_path), bin_dir); } SymSetSearchPath(process, search_path); Modified: packages/windows/Rakefile (+1 -2) =================================================================== --- packages/windows/Rakefile 2018-02-16 18:31:24 +0900 (2abe5de7d) +++ packages/windows/Rakefile 2018-02-18 13:59:24 +0900 (8b1655042) @@ -516,15 +516,14 @@ namespace :pdb do generate_pdb_bat.open("w") do |bat| cd(binary_dir) do Dir.glob("**/*.{exe,dll}") do |binary| - pdb = "lib\\pdb\\" + File.basename(binary, ".*") + ".pdb" binary = binary.gsub("/", "\\") + pdb = binary.gsub(/\.(?:exe|dll)\z/, ".pdb") bat.print("bin\\#{cv2pdb.basename} #{binary} #{binary} #{pdb}\r\n") end end end chmod(0755, generate_pdb_bat) cp(cv2pdb, bin_dir) - mkdir_p(lib_dir + "pdb") cv2pdb_license_dir = license_dir + "cv2pdb" mkdir_p(cv2pdb_license_dir) Modified: plugins/functions/CMakeLists.txt (+3 -3) =================================================================== --- plugins/functions/CMakeLists.txt 2018-02-16 18:31:24 +0900 (f878126bc) +++ plugins/functions/CMakeLists.txt 2018-02-18 13:59:24 +0900 (6901024ff) @@ -1,4 +1,4 @@ -# Copyright(C) 2015-2017 Brazil +# Copyright(C) 2015-2018 Brazil # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -38,7 +38,7 @@ else() install(TARGETS vector_functions DESTINATION "${GRN_FUNCTIONS_PLUGIN_DIR}") if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:vector_functions> - DESTINATION "${PDB_DIR}" + DESTINATION "${GRN_FUNCTIONS_PLUGIN_DIR}" OPTIONAL) endif() endif() @@ -63,7 +63,7 @@ else() install(TARGETS string_functions DESTINATION "${GRN_FUNCTIONS_PLUGIN_DIR}") if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:string_functions> - DESTINATION "${PDB_DIR}" + DESTINATION "${GRN_FUNCTIONS_PLUGIN_DIR}" OPTIONAL) endif() endif() Modified: plugins/query_expanders/CMakeLists.txt (+2 -2) =================================================================== --- plugins/query_expanders/CMakeLists.txt 2018-02-16 18:31:24 +0900 (b90df5a45) +++ plugins/query_expanders/CMakeLists.txt 2018-02-18 13:59:24 +0900 (705848563) @@ -1,4 +1,4 @@ -# Copyright(C) 2012-2013 Brazil +# Copyright(C) 2012-2018 Brazil # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -36,7 +36,7 @@ else() install(TARGETS tsv_query_expander DESTINATION "${QUERY_EXPANDERS_DIR}") if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:tsv_query_expander> - DESTINATION "${PDB_DIR}" + DESTINATION "${QUERY_EXPANDERS_DIR}" OPTIONAL) endif() endif() Modified: plugins/suggest/CMakeLists.txt (+4 -3) =================================================================== --- plugins/suggest/CMakeLists.txt 2018-02-16 18:31:24 +0900 (2abfaf2ee) +++ plugins/suggest/CMakeLists.txt 2018-02-18 13:59:24 +0900 (036a5cbc8) @@ -1,4 +1,4 @@ -# Copyright(C) 2012-2013 Brazil +# Copyright(C) 2012-2018 Brazil # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -18,6 +18,7 @@ include_directories( ${MRUBY_INCLUDE_DIRS} ${MESSAGE_PACK_INCLUDE_DIRS}) +set(GRN_SUGGEST_PLUGIN_DIR "${GRN_RELATIVE_PLUGINS_DIR}/suggest") read_file_list(${CMAKE_CURRENT_SOURCE_DIR}/sources.am SUGGEST_SOURCES) set_source_files_properties(${SUGGEST_SOURCES} PROPERTIES @@ -31,10 +32,10 @@ if(GRN_EMBED) else() add_library(suggest MODULE ${SUGGEST_SOURCES}) set_target_properties(suggest PROPERTIES PREFIX "") - install(TARGETS suggest DESTINATION "${GRN_RELATIVE_PLUGINS_DIR}/suggest") + install(TARGETS suggest DESTINATION "${GRN_SUGGEST_PLUGIN_DIR}") if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:suggest> - DESTINATION "${PDB_DIR}" + DESTINATION "${GRN_SUGGEST_PLUGIN_DIR}" OPTIONAL) endif() endif() Modified: plugins/token_filters/CMakeLists.txt (+3 -3) =================================================================== --- plugins/token_filters/CMakeLists.txt 2018-02-16 18:31:24 +0900 (da75572e7) +++ plugins/token_filters/CMakeLists.txt 2018-02-18 13:59:24 +0900 (907cb6b1b) @@ -1,4 +1,4 @@ -# Copyright(C) 2014 Brazil +# Copyright(C) 2014-2018 Brazil # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -38,7 +38,7 @@ else() install(TARGETS stop_word_token_filter DESTINATION "${TOKEN_FILTERS_DIR}") if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:stop_word_token_filter> - DESTINATION "${PDB_DIR}" + DESTINATION "${TOKEN_FILTERS_DIR}" OPTIONAL) endif() endif() @@ -65,7 +65,7 @@ if(GRN_WITH_LIBSTEMMER) install(TARGETS stem_token_filter DESTINATION "${TOKEN_FILTERS_DIR}") if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:stem_token_filter> - DESTINATION "${PDB_DIR}" + DESTINATION "${TOKEN_FILTERS_DIR}" OPTIONAL) endif() endif() Modified: plugins/tokenizers/CMakeLists.txt (+3 -3) =================================================================== --- plugins/tokenizers/CMakeLists.txt 2018-02-16 18:31:24 +0900 (0d4c7609e) +++ plugins/tokenizers/CMakeLists.txt 2018-02-18 13:59:24 +0900 (5f0eb325d) @@ -1,4 +1,4 @@ -# Copyright(C) 2012-2013 Brazil +# Copyright(C) 2012-2018 Brazil # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -50,7 +50,7 @@ if(GRN_WITH_MECAB) install(TARGETS mecab_tokenizer DESTINATION "${TOKENIZERS_DIR}") if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:mecab_tokenizer> - DESTINATION "${PDB_DIR}" + DESTINATION "${TOKENIZERS_DIR}" OPTIONAL) endif() endif() @@ -78,7 +78,7 @@ if(GRN_WITH_KYTEA) install(TARGETS kytea_tokenizer DESTINATION "${TOKENIZERS_DIR}") if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:kytea_tokenizer> - DESTINATION "${PDB_DIR}" + DESTINATION "${TOKENIZERS_DIR}" OPTIONAL) endif() endif() Modified: src/CMakeLists.txt (+4 -4) =================================================================== --- src/CMakeLists.txt 2018-02-16 18:31:24 +0900 (acead668e) +++ src/CMakeLists.txt 2018-02-18 13:59:24 +0900 (ac02314be) @@ -1,4 +1,4 @@ -# Copyright(C) 2012-2013 Brazil +# Copyright(C) 2012-2018 Brazil # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -29,7 +29,7 @@ target_link_libraries(groonga libgroonga) install(TARGETS groonga DESTINATION ${BIN_DIR}) if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:groonga> - DESTINATION "${PDB_DIR}" + DESTINATION "${BIN_DIR}" OPTIONAL) endif() @@ -46,7 +46,7 @@ if(GRN_WITH_MRUBY) install(TARGETS grndb DESTINATION ${BIN_DIR}) if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:grndb> - DESTINATION "${PDB_DIR}" + DESTINATION "${BIN_DIR}" OPTIONAL) endif() endif() @@ -71,7 +71,7 @@ target_link_libraries(groonga-benchmark libgroonga) install(TARGETS groonga-benchmark DESTINATION ${BIN_DIR}) if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:groonga-benchmark> - DESTINATION "${PDB_DIR}" + DESTINATION "${BIN_DIR}" OPTIONAL) endif() Modified: src/suggest/CMakeLists.txt (+2 -2) =================================================================== --- src/suggest/CMakeLists.txt 2018-02-16 18:31:24 +0900 (c9210efaa) +++ src/suggest/CMakeLists.txt 2018-02-18 13:59:24 +0900 (59f25bdcf) @@ -1,4 +1,4 @@ -# Copyright(C) 2012-2013 Brazil +# Copyright(C) 2012-2018 Brazil # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -31,7 +31,7 @@ install( DESTINATION ${BIN_DIR}) if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:groonga-suggest-create-dataset> - DESTINATION "${PDB_DIR}" + DESTINATION "${BIN_DIR}" OPTIONAL) endif() Modified: vendor/lz4/CMakeLists.txt (+2 -2) =================================================================== --- vendor/lz4/CMakeLists.txt 2018-02-16 18:31:24 +0900 (8de3d8a71) +++ vendor/lz4/CMakeLists.txt 2018-02-18 13:59:24 +0900 (27c2a0405) @@ -1,4 +1,4 @@ -# Copyright(C) 2016 Brazil +# Copyright(C) 2016-2018 Brazil # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -85,7 +85,7 @@ if(GRN_WITH_BUNDLED_LZ4) DESTINATION "${BIN_DIR}") if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:lz4> - DESTINATION "${PDB_DIR}" + DESTINATION "${BIN_DIR}" OPTIONAL) endif() install(FILES Modified: vendor/mecab/CMakeLists.txt (+2 -2) =================================================================== --- vendor/mecab/CMakeLists.txt 2018-02-16 18:31:24 +0900 (760102aa8) +++ vendor/mecab/CMakeLists.txt 2018-02-18 13:59:24 +0900 (790ce371f) @@ -1,4 +1,4 @@ -# Copyright(C) 2015 Brazil +# Copyright(C) 2015-2018 Brazil # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -179,7 +179,7 @@ if(GRN_WITH_BUNDLED_MECAB) $<TARGET_PDB_FILE:libmecab> $<TARGET_PDB_FILE:mecab> $<TARGET_PDB_FILE:mecab-dict-index> - DESTINATION "${PDB_DIR}" + DESTINATION "${BIN_DIR}" OPTIONAL) endif() install(FILES "${MECAB_SOURCE_DIR}/src/mecab.h" Modified: vendor/message_pack/CMakeLists.txt (+2 -2) =================================================================== --- vendor/message_pack/CMakeLists.txt 2018-02-16 18:31:24 +0900 (431fa91a4) +++ vendor/message_pack/CMakeLists.txt 2018-02-18 13:59:24 +0900 (1663aa804) @@ -1,4 +1,4 @@ -# Copyright(C) 2016 Brazil +# Copyright(C) 2016-2018 Brazil # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -43,7 +43,7 @@ if(GRN_WITH_BUNDLED_MESSAGE_PACK) RUNTIME DESTINATION "${BIN_DIR}") if(MSVC AND CMAKE_VERSION VERSION_GREATER "3.1") install(FILES $<TARGET_PDB_FILE:msgpackc> - DESTINATION "${PDB_DIR}" + DESTINATION "${BIN_DIR}" OPTIONAL) endif() install(DIRECTORY -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180218/0df67c02/attachment-0001.htm