1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-02-17 11:45:50 +00:00

Move db tagging functions to a new postgresql backend lib.

This commit is contained in:
King_DuckZ 2016-05-22 02:53:54 +01:00
parent 62bf47d0ed
commit 5203fbece2
6 changed files with 25 additions and 3 deletions

View file

@ -128,6 +128,7 @@ add_subdirectory(src/common)
add_subdirectory(src/machinery)
add_subdirectory(lib/pbl)
add_subdirectory(lib/glob2regex)
add_subdirectory(src/backends/postgresql)
#Actions
add_subdirectory(src/main)

View 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
)

View file

@ -15,7 +15,7 @@
* 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 "dindexer-common/settings.hpp"
#include <ciso646>

View file

@ -3,7 +3,6 @@ project(${bare_name}-tag CXX)
add_executable(${PROJECT_NAME}
main.cpp
commandline.cpp
tag_postgres.cpp
)
target_include_directories(${PROJECT_NAME}
@ -16,6 +15,7 @@ target_link_libraries(${PROJECT_NAME}
PRIVATE ${bare_name}-if
PRIVATE ${bare_name}-common
PRIVATE glob2regex
PRIVATE ${bare_name}-backend-postgresql
)
string(REPLACE "${bare_name}-" "" ACTION_NAME "${PROJECT_NAME}")

View file

@ -18,7 +18,7 @@
#include "commandline.hpp"
#include "dindexer-common/settings.hpp"
#include "dindexerConfig.h"
#include "tag_postgres.hpp"
#include "backends/postgresql/tag.hpp"
#include "dindexer-common/split_tags.hpp"
#include "glob2regex/glob2regex.hpp"
#include "enum.h"