Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-server-core
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-server-core
Commits
1008394f
Commit
1008394f
authored
5 years ago
by
dmitriy.gerasimov
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://github.com/kelvinblockchain/libdap-server-core
parents
4a401fc2
e2be3d6b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.travis.yml
+3
-3
3 additions, 3 deletions
.travis.yml
CMakeLists.txt
+13
-12
13 additions, 12 deletions
CMakeLists.txt
libdap
+1
-1
1 addition, 1 deletion
libdap
test/CMakeLists.txt
+8
-9
8 additions, 9 deletions
test/CMakeLists.txt
test/main.c
+3
-4
3 additions, 4 deletions
test/main.c
with
28 additions
and
29 deletions
.travis.yml
+
3
−
3
View file @
1008394f
...
@@ -6,7 +6,7 @@ notifications:
...
@@ -6,7 +6,7 @@ notifications:
before_install
:
before_install
:
-
git submodule init
-
git submodule init
-
git submodule update
--recursive
-
git submodule update
script
:
script
:
-
mkdir build
-
mkdir build
...
@@ -20,5 +20,5 @@ addons:
...
@@ -20,5 +20,5 @@ addons:
sources
:
sources
:
-
ubuntu-toolchain-r-test
-
ubuntu-toolchain-r-test
packages
:
packages
:
-
libev-dev
-
libev-dev
-
libmemcached-dev
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
13
−
12
View file @
1008394f
cmake_minimum_required
(
VERSION 3.0
)
cmake_minimum_required
(
VERSION 3.0
)
if
(
TARGET dap_server_core
)
return
()
# The project has already been built.
endif
()
project
(
dap_server_core C
)
project
(
dap_server_core C
)
set
(
CMAKE_C_STANDARD 11
)
set
(
CMAKE_C_STANDARD 11
)
...
@@ -14,20 +10,25 @@ if(NOT (${SUBMODULES_NO_BUILD} MATCHES ON))
...
@@ -14,20 +10,25 @@ if(NOT (${SUBMODULES_NO_BUILD} MATCHES ON))
if
(
NOT
(
TARGET dap_core
)
)
if
(
NOT
(
TARGET dap_core
)
)
add_subdirectory
(
libdap
)
add_subdirectory
(
libdap
)
endif
()
endif
()
if
(
NOT
(
TARGET dap_crypto
)
)
if
(
NOT
(
TARGET dap_crypto
)
)
add_subdirectory
(
libdap-crypto
)
add_subdirectory
(
libdap-crypto
)
endif
()
endif
()
endif
()
endif
()
if
(
BUILD_DAP_SERVER_CORE_TESTS
)
file
(
GLOB DAP_SERVER_CORE_SOURCES src/*.c
)
file
(
GLOB DAP_SERVER_CORE_HEADERS include/*.h
)
add_library
(
${
PROJECT_NAME
}
STATIC
${
DAP_SERVER_CORE_HEADERS
}
${
DAP_SERVER_CORE_SOURCES
}
)
target_link_libraries
(
${
PROJECT_NAME
}
dap_test dap_core dap_crypto pthread memcached ev
)
target_include_directories
(
${
PROJECT_NAME
}
PUBLIC include
)
target_include_directories
(
${
PROJECT_NAME
}
PRIVATE src
)
if
(
${
BUILD_DAP_SERVER_CORE_TESTS
}
MATCHES ON
)
enable_testing
()
enable_testing
()
add_subdirectory
(
test
)
add_subdirectory
(
test
)
endif
()
endif
()
file
(
GLOB CORE_SERVER_SOURCES src/*.c
)
file
(
GLOB CORE_SERVER_HEADERS include/*.h src/*.h
)
add_library
(
${
PROJECT_NAME
}
STATIC
${
CORE_SERVER_SOURCES
}
${
CORE_SERVER_HEADERS
}
)
target_link_libraries
(
${
PROJECT_NAME
}
pthread ev memcached dap_core dap_crypto
)
target_include_directories
(
${
PROJECT_NAME
}
INTERFACE include/
)
This diff is collapsed.
Click to expand it.
libdap
@
4ab41cdc
Compare
d37b2aa2
...
4ab41cdc
Subproject commit
d37b2aa26d2a7cc068529db343a87fd728904d33
Subproject commit
4ab41cdcaa8087323652cd5fef702876ccc25dab
This diff is collapsed.
Click to expand it.
test/CMakeLists.txt
+
8
−
9
View file @
1008394f
if
(
TARGET server_core_test
)
return
()
# The project has already been built.
endif
()
project
(
server_core_test
)
project
(
server_core_test
)
add_subdirectory
(
libdap-test
)
if
(
NOT
(
TARGET dap_test
)
)
add_subdirectory
(
libdap-test
)
endif
()
file
(
GLOB SOURCES *.c
)
file
(
GLOB
DAP_SERVER_CORE_TEST_
SOURCES *.c
)
file
(
GLOB HEADERS *.h
)
file
(
GLOB
DAP_SERVER_CORE_TEST_
HEADERS *.h
)
add_executable
(
${
PROJECT_NAME
}
${
SOURCES
}
${
HEADERS
}
)
add_executable
(
${
PROJECT_NAME
}
${
DAP_SERVER_CORE_TEST_SOURCES
}
${
DAP_SERVER_CORE_TEST_
HEADERS
}
)
target_link_libraries
(
${
PROJECT_NAME
}
dap_test dap_core dap_crypto dap_server_core ev
)
target_link_libraries
(
${
PROJECT_NAME
}
dap_test dap_core dap_crypto dap_server_core ev
)
add_test
(
add_test
(
NAME
core_
server_test
NAME server_
core_
test
COMMAND
core_
server_test
COMMAND server_
core_
test
)
)
This diff is collapsed.
Click to expand it.
test/main.c
+
3
−
4
View file @
1008394f
#include
"dap_common.h"
#include
"dap_common.h"
#include
"dap_traffic_track_test.h"
#include
"dap_traffic_track_test.h"
int
main
(
void
)
{
int
main
(
int
argc
,
const
char
*
argv
[])
{
// switch off debug info from library
//dap_log_level_set(L_CRITICAL);
dap_log_level_set
(
L_CRITICAL
);
//dap_traffic_track_tests_run();
dap_traffic_track_tests_run
();
return
0
;
return
0
;
}
}
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