mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-07-03 14:14:11 +00:00
Move db tagging functions to a new postgresql backend lib.
This commit is contained in:
parent
62bf47d0ed
commit
5203fbece2
6 changed files with 25 additions and 3 deletions
|
@ -128,6 +128,7 @@ add_subdirectory(src/common)
|
||||||
add_subdirectory(src/machinery)
|
add_subdirectory(src/machinery)
|
||||||
add_subdirectory(lib/pbl)
|
add_subdirectory(lib/pbl)
|
||||||
add_subdirectory(lib/glob2regex)
|
add_subdirectory(lib/glob2regex)
|
||||||
|
add_subdirectory(src/backends/postgresql)
|
||||||
|
|
||||||
#Actions
|
#Actions
|
||||||
add_subdirectory(src/main)
|
add_subdirectory(src/main)
|
||||||
|
|
21
src/backends/postgresql/CMakeLists.txt
Normal file
21
src/backends/postgresql/CMakeLists.txt
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
project(${bare_name}-backend-postgresql CXX)
|
||||||
|
|
||||||
|
add_library(${PROJECT_NAME} STATIC
|
||||||
|
tag.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
#target_include_directories(${PROJECT_NAME}
|
||||||
|
#)
|
||||||
|
#target_include_directories(${PROJECT_NAME} SYSTEM
|
||||||
|
#)
|
||||||
|
|
||||||
|
target_link_libraries(${PROJECT_NAME}
|
||||||
|
PRIVATE ${bare_name}-if
|
||||||
|
PRIVATE pq
|
||||||
|
)
|
||||||
|
|
||||||
|
install(TARGETS ${PROJECT_NAME}
|
||||||
|
LIBRARY DESTINATION lib
|
||||||
|
RUNTIME DESTINATION bin
|
||||||
|
ARCHIVE DESTINATION lib/static
|
||||||
|
)
|
|
@ -15,7 +15,7 @@
|
||||||
* along with "dindexer". If not, see <http://www.gnu.org/licenses/>.
|
* along with "dindexer". If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tag_postgres.hpp"
|
#include "backends/postgresql/tag.hpp"
|
||||||
#include "pq/connection.hpp"
|
#include "pq/connection.hpp"
|
||||||
#include "dindexer-common/settings.hpp"
|
#include "dindexer-common/settings.hpp"
|
||||||
#include <ciso646>
|
#include <ciso646>
|
|
@ -3,7 +3,6 @@ project(${bare_name}-tag CXX)
|
||||||
add_executable(${PROJECT_NAME}
|
add_executable(${PROJECT_NAME}
|
||||||
main.cpp
|
main.cpp
|
||||||
commandline.cpp
|
commandline.cpp
|
||||||
tag_postgres.cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(${PROJECT_NAME}
|
target_include_directories(${PROJECT_NAME}
|
||||||
|
@ -16,6 +15,7 @@ target_link_libraries(${PROJECT_NAME}
|
||||||
PRIVATE ${bare_name}-if
|
PRIVATE ${bare_name}-if
|
||||||
PRIVATE ${bare_name}-common
|
PRIVATE ${bare_name}-common
|
||||||
PRIVATE glob2regex
|
PRIVATE glob2regex
|
||||||
|
PRIVATE ${bare_name}-backend-postgresql
|
||||||
)
|
)
|
||||||
|
|
||||||
string(REPLACE "${bare_name}-" "" ACTION_NAME "${PROJECT_NAME}")
|
string(REPLACE "${bare_name}-" "" ACTION_NAME "${PROJECT_NAME}")
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#include "commandline.hpp"
|
#include "commandline.hpp"
|
||||||
#include "dindexer-common/settings.hpp"
|
#include "dindexer-common/settings.hpp"
|
||||||
#include "dindexerConfig.h"
|
#include "dindexerConfig.h"
|
||||||
#include "tag_postgres.hpp"
|
#include "backends/postgresql/tag.hpp"
|
||||||
#include "dindexer-common/split_tags.hpp"
|
#include "dindexer-common/split_tags.hpp"
|
||||||
#include "glob2regex/glob2regex.hpp"
|
#include "glob2regex/glob2regex.hpp"
|
||||||
#include "enum.h"
|
#include "enum.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue