1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-02-16 11:35:49 +00:00

Move db locate functions to the postgresql backend lib.

This commit is contained in:
King_DuckZ 2016-05-22 03:05:58 +01:00
parent 45ecdb9a2b
commit 641261306f
5 changed files with 4 additions and 3 deletions

View file

@ -3,6 +3,7 @@ project(${bare_name}-backend-postgresql CXX)
add_library(${PROJECT_NAME} STATIC add_library(${PROJECT_NAME} STATIC
tag.cpp tag.cpp
delete.cpp delete.cpp
locate.cpp
) )
#target_include_directories(${PROJECT_NAME} #target_include_directories(${PROJECT_NAME}

View file

@ -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 "postgre_locate.hpp" #include "backends/postgresql/locate.hpp"
#include "pq/connection.hpp" #include "pq/connection.hpp"
#include "dindexer-machinery/tiger.hpp" #include "dindexer-machinery/tiger.hpp"
#include <utility> #include <utility>

View file

@ -3,7 +3,6 @@ project(${bare_name}-locate CXX)
add_executable(${PROJECT_NAME} add_executable(${PROJECT_NAME}
main.cpp main.cpp
commandline.cpp commandline.cpp
postgre_locate.cpp
hash.cpp hash.cpp
) )
@ -17,6 +16,7 @@ target_link_libraries(${PROJECT_NAME}
PRIVATE ${bare_name}-common PRIVATE ${bare_name}-common
PRIVATE ${bare_name}-machinery PRIVATE ${bare_name}-machinery
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}")

View file

@ -16,7 +16,7 @@
*/ */
#include "commandline.hpp" #include "commandline.hpp"
#include "postgre_locate.hpp" #include "backends/postgresql/locate.hpp"
#include "dindexer-common/settings.hpp" #include "dindexer-common/settings.hpp"
#include "dindexer-common/split_tags.hpp" #include "dindexer-common/split_tags.hpp"
#include "dindexerConfig.h" #include "dindexerConfig.h"