Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-chain-global-db
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-chain-global-db
Commits
b764e6e8
Commit
b764e6e8
authored
5 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
...
parent
11849ead
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+8
-7
8 additions, 7 deletions
CMakeLists.txt
libdap-cuttdb/CMakeLists.txt
+11
-4
11 additions, 4 deletions
libdap-cuttdb/CMakeLists.txt
libdap-cuttdb/src/cdb_bgtask.c
+1
-1
1 addition, 1 deletion
libdap-cuttdb/src/cdb_bgtask.c
with
20 additions
and
12 deletions
CMakeLists.txt
+
8
−
7
View file @
b764e6e8
cmake_minimum_required
(
VERSION 2.8
)
project
(
dap_chain_global_db
)
project
(
dap_chain_global_db
C
)
file
(
GLOB DAP_CHAIN_GLOBAL_DB_SRC *.c
)
file
(
GLOB DAP_CHAIN_GLOBAL_DB_HDR *.h
)
add_subdirectory
(
libdap-cuttdb
)
if
(
WIN32
)
include_directories
(
../libdap/src/win32/
)
include_directories
(
../3rdparty/libmemcached/
)
...
...
@@ -18,17 +16,20 @@ if(WIN32)
include_directories
(
../3rdparty/libsqlite3/
)
endif
()
add_library
(
${
PROJECT_NAME
}
STATIC
${
DAP_CHAIN_GLOBAL_DB_SRC
}
${
DAP_CHAIN_GLOBAL_DB_HDR
}
)
add_subdirectory
(
libdap-cuttdb
)
if
(
WIN32
)
target_link_libraries
(
dap_chain_global_db
dap_core dap_crypto dap_chain dap_chain_crypto dap_cuttdb
)
target_link_libraries
(
${
PROJECT_NAME
}
dap_core dap_crypto dap_chain dap_chain_crypto dap_cuttdb
)
endif
()
if
(
UNIX
)
target_link_libraries
(
dap_chain_global_db
dap_core dap_crypto dap_chain dap_chain_crypto ldb talloc tevent sqlite3 dap_cuttdb
)
target_link_libraries
(
${
PROJECT_NAME
}
dap_core dap_crypto dap_chain dap_chain_crypto ldb talloc tevent sqlite3 dap_cuttdb
)
endif
()
target_include_directories
(
dap_chain_global_db INTERFACE .
)
set
(
${
PROJECT_NAME
}
_DEFINITIONS CACHE INTERNAL
"
${
PROJECT_NAME
}
: Definitions"
FORCE
)
#
set(${PROJECT_NAME}_DEFINITIONS CACHE INTERNAL "${PROJECT_NAME}: Definitions" FORCE)
set
(
${
PROJECT_NAME
}
_INCLUDE_DIRS
${
PROJECT_SOURCE_DIR
}
CACHE INTERNAL
"
${
PROJECT_NAME
}
: Include Directories"
FORCE
)
#
set(${PROJECT_NAME}_INCLUDE_DIRS ${PROJECT_SOURCE_DIR} CACHE INTERNAL "${PROJECT_NAME}: Include Directories" FORCE)
This diff is collapsed.
Click to expand it.
libdap-cuttdb/CMakeLists.txt
+
11
−
4
View file @
b764e6e8
cmake_minimum_required
(
VERSION 2.8
)
project
(
dap_cuttdb
)
project
(
dap_cuttdb
C
)
add_definitions
(
"-D_GNU_SOURCE"
)
set
(
CMAKE_C_FLAGS
"-std=gnu11 -Wall -Wextra -fPIC"
)
...
...
@@ -9,18 +9,25 @@ file(GLOB cuttdb_src src/*.c)
file
(
GLOB cuttdb_h src/*.h
)
# the server part ain't ported, and thus not built, so are tests.
list
(
FILTER cuttdb_src EXCLUDE REGEX
"ae."
)
list
(
FILTER cuttdb_src EXCLUDE REGEX
"ae_"
)
list
(
FILTER cuttdb_h EXCLUDE REGEX
"ae_"
)
list
(
FILTER cuttdb_src EXCLUDE REGEX
"server."
)
list
(
FILTER cuttdb_h EXCLUDE REGEX
"server."
)
list
(
FILTER cuttdb_src EXCLUDE REGEX
"dump."
)
list
(
FILTER cuttdb_h EXCLUDE REGEX
"dump."
)
list
(
FILTER cuttdb_src EXCLUDE REGEX
"builddb."
)
list
(
FILTER cuttdb_h EXCLUDE REGEX
"builddb."
)
list
(
FILTER cuttdb_src EXCLUDE REGEX
"test_mt."
)
list
(
FILTER cuttdb_h EXCLUDE REGEX
"test_mt."
)
if
(
UNIX
)
list
(
FILTER cuttdb_src EXCLUDE REGEX
"mman."
)
list
(
FILTER cuttdb_src EXCLUDE REGEX
"mman."
)
list
(
FILTER cuttdb_h EXCLUDE REGEX
"mman."
)
endif
()
add_library
(
${
PROJECT_NAME
}
STATIC
${
cuttdb_h
}
${
cuttdb_src
}
)
add_library
(
${
PROJECT_NAME
}
STATIC
${
cuttdb_src
}
${
cuttdb_h
}
)
set_target_properties
(
${
PROJECT_NAME
}
PROPERTIES LINKER_LANGUAGE C
)
set_target_properties
(
${
PROJECT_NAME
}
PROPERTIES COMPILER_LANGUAGE C
)
target_link_libraries
(
${
PROJECT_NAME
}
-lpthread
)
...
...
This diff is collapsed.
Click to expand it.
libdap-cuttdb/src/cdb_bgtask.c
+
1
−
1
View file @
b764e6e8
...
...
@@ -61,7 +61,7 @@ static void *_cdb_bgtask_func(void *arg)
CDBBGTASK
*
bt
=
(
CDBBGTASK
*
)
arg
;
#ifndef _WIN32
/* block all signals coming into current thread */
_
sigset_t
smask
;
sigset_t
smask
;
sigfillset
(
&
smask
);
pthread_sigmask
(
SIG_BLOCK
,
&
smask
,
NULL
);
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment