Skip to content
Snippets Groups Projects
Commit e9d79727 authored by Sergei Rashitov's avatar Sergei Rashitov
Browse files

Merge submodule into cellframe-sdk-python/libdap-chain-gdb-python

parents bbdc6ed3 09efbcc7
No related branches found
No related tags found
1 merge request!26Support 3689
Showing
with 392 additions and 1 deletion
Subproject commit 510c499d547f0457e1ec9e7a109e3716a0f2e415
*.user
build/
[submodule "libdap"]
path = libdap
url = https://gitlab.demlabs.net/cellframe/libdap.git
[submodule "libdap-server-core-python"]
path = libdap-server-core-python
url = https://gitlab.demlabs.net/cellframe/libdap-server-core-python.git
[submodule "libdap-crypto-python"]
path = libdap-crypto-python
url = https://gitlab.demlabs.net/cellframe/libdap-crypto-python.git
[submodule "libdap-chain-python"]
path = libdap-chain-python
url = https://gitlab.demlabs.net/cellframe/libdap-chain-python.git
[submodule "libdap-chain"]
path = libdap-chain
url = https://gitlab.demlabs.net/cellframe/libdap-chain.git
[submodule "libdap-chain-crypto"]
path = libdap-chain-crypto
url = https://gitlab.demlabs.net/cellframe/libdap-chain-crypto.git
[submodule "libdap-chain-gdb"]
path = libdap-chain-gdb
url = https://gitlab.demlabs.net/cellframe/libdap-chain-gdb.git
[submodule "libdap-chain-global-db"]
path = libdap-chain-global-db
url = https://gitlab.demlabs.net/cellframe/libdap-chain-global-db.git
[submodule "libdap-chain-mempool"]
path = libdap-chain-mempool
url = https://gitlab.demlabs.net/cellframe/libdap-chain-mempool.git
[submodule "libdap-chain-net"]
path = libdap-chain-net
url = https://gitlab.demlabs.net/cellframe/libdap-chain-net.git
[submodule "libdap-chain-net-srv"]
path = libdap-chain-net-srv
url = https://gitlab.demlabs.net/cellframe/libdap-chain-net-srv.git
[submodule "libdap-chain-net-srv-vpn"]
path = libdap-chain-net-srv-vpn
url = https://gitlab.demlabs.net/cellframe/libdap-chain-net-srv-vpn.git
[submodule "libdap-chain-wallet"]
path = libdap-chain-wallet
url = https://gitlab.demlabs.net/cellframe/libdap-chain-wallet.git
[submodule "libdap-client"]
path = libdap-client
url = https://gitlab.demlabs.net/cellframe/libdap-client.git
[submodule "libdap-crypto"]
path = libdap-crypto
url = https://gitlab.demlabs.net/cellframe/libdap-crypto.git
[submodule "libdap-server"]
path = libdap-server
url = https://gitlab.demlabs.net/cellframe/libdap-server.git
[submodule "libdap-server-core"]
path = libdap-server-core
url = https://gitlab.demlabs.net/cellframe/libdap-server-core.git
[submodule "libdap-server-http-db-auth"]
path = libdap-server-http-db-auth
url = https://gitlab.demlabs.net/cellframe/libdap-server-http-db-auth.git
[submodule "libdap-server-udp"]
path = libdap-server-udp
url = https://gitlab.demlabs.net/cellframe/libdap-server-udp.git
[submodule "libdap-stream"]
path = libdap-stream
url = https://gitlab.demlabs.net/cellframe/libdap-stream.git
[submodule "libdap-stream-ch"]
path = libdap-stream-ch
url = https://gitlab.demlabs.net/cellframe/libdap-stream-ch.git
[submodule "libdap-stream-ch-chain"]
path = libdap-stream-ch-chain
url = https://gitlab.demlabs.net/cellframe/libdap-stream-ch-chain.git
[submodule "libdap-stream-ch-chain-net"]
path = libdap-stream-ch-chain-net
url = https://gitlab.demlabs.net/cellframe/libdap-stream-ch-chain-net.git
[submodule "libdap-server-http-db"]
path = libdap-server-http-db
url = https://gitlab.demlabs.net/cellframe/libdap-server-http-db.git
[submodule "libdap-chain-net-python"]
path = libdap-chain-net-python
url = https://gitlab.demlabs.net/cellframe/libdap-chain-net-python.git
[submodule "libdap-client-python"]
path = libdap-client-python
url = https://gitlab.demlabs.net/cellframe/libdap-client-python.git
[submodule "libdap-chain-common"]
path = libdap-chain-common
url = https://gitlab.demlabs.net/cellframe/libdap-chain-common.git
[submodule "libdap-python"]
path = libdap-python
url = https://gitlab.demlabs.net/cellframe/libdap-python.git
[submodule "libdap-chain-common-python"]
path = libdap-chain-common-python
url = https://gitlab.demlabs.net/cellframe/libdap-chain-common-python.git
project(dap_chain_gdb_python_module C)
cmake_minimum_required(VERSION 2.8)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_COLOR_MAKEFILE ON)
set(CMAKE_C_STANDARD 11)
add_definitions("-fpic")
if(UNIX)
add_definitions("-DDAP_OS_UNIX")
endif()
if (NOT (${SUBMODULES_NO_BUILD} MATCHES ON))
set (SUBMODULES_NO_BUILD ON)
if (NOT (TARGET dap_core))
add_subdirectory(libdap)
target_compile_options(
dap_core PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_crypto))
add_subdirectory(libdap-crypto)
target_compile_options(
dap_crypto PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_chain_coommon))
add_subdirectory(libdap-chain-common)
target_compile_options(
dap_chain_common PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_chain))
add_subdirectory(libdap-chain)
target_compile_options(
dap_chain PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_chain_crypto))
add_subdirectory(libdap-chain-crypto)
target_compile_options(
dap_chain_crypto PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_chain_mempool))
add_subdirectory(libdap-chain-mempool)
target_compile_options(
dap_chain_mempool PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_chain_net))
add_subdirectory(libdap-chain-net)
target_compile_options(
dap_chain_net PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_server_core))
add_subdirectory(libdap-server-core)
target_compile_options(
dap_server_core PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_chain_global_db))
add_subdirectory(libdap-chain-global-db)
target_compile_options(
dap_chain_global_db PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_client))
add_subdirectory(libdap-client)
target_compile_options(
dap_client PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET libdap-server))
add_subdirectory(libdap-server)
# target_compile_options(
# libdap-server PRIVATE
# "-fpic"
# )
endif()
if (NOT (TARGET dap_stream))
add_subdirectory(libdap-stream)
target_compile_options(
dap_stream PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_stream_ch))
add_subdirectory(libdap-stream-ch)
target_compile_options(
dap_stream_ch PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_stream_ch_chain))
add_subdirectory(libdap-stream-ch-chain)
target_compile_options(
dap_stream_ch_chain PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_stream_ch_chain_net))
add_subdirectory(libdap-stream-ch-chain-net)
target_compile_options(
dap_stream_ch_chain_net PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_udp_server))
add_subdirectory(libdap-server-udp)
target_compile_options(
dap_udp_server PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_chain_wallet))
add_subdirectory(libdap-chain-wallet)
target_compile_options(
dap_chain_wallet PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_chain_net_srv))
add_subdirectory(libdap-chain-net-srv)
target_compile_options(
dap_chain_net_srv PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_server_http_db_auth))
add_subdirectory(libdap-server-http-db-auth)
target_compile_options(
dap_server_http_db_auth PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_chain_gdb))
add_subdirectory(libdap-chain-gdb)
target_compile_options(
dap_chain_gdb PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_chain_net_srv_vpn))
add_subdirectory(libdap-chain-net-srv-vpn)
target_compile_options(
dap_chain_net_srv_vpn PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET dap_server_http_db))
add_subdirectory(libdap-server-http-db)
target_compile_options(
dap_server_http_db PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET (dap_python_module)))
add_subdirectory(libdap-python)
target_compile_options(
dap_python_module PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET (dap_chain_python_module)))
add_subdirectory(libdap-chain-python)
target_compile_options(
dap_chain_python_module PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET (dap_crypto_python_module)))
add_subdirectory(libdap-crypto-python)
target_compile_options(
dap_crypto_python_module PRIVATE
"-fpic"
)
endif()
if (NOT (TARGET (dap_chain_common_python_module)))
add_subdirectory(libdap-chain-common-python)
target_compile_options(
dap_chain_common_python_module PRIVATE
"-fpic"
)
endif()
endif()
file(GLOB CHAIN_GDB_PYTHON_SRCS src/*.c)
file(GLOB CHAIN_GDB_PYTHON_HEADERS include/*.h)
set(Python_ADDITIONAL_VERSIONS 3.7)
find_package (PythonLibs REQUIRED)
include_directories(${PYTHON_INCLUDE_DIR} include/)
add_library(${PROJECT_NAME} STATIC ${CHAIN_GDB_PYTHON_SRCS} ${CHAIN_GDB_PYTHON_HEADERS})
target_link_libraries(${PROJECT_NAME})
target_link_libraries(${PROJECT_NAME} dap_chain_gdb dap_core dap_chain dap_chain_global_db dap_chain_mempool dap_chain_net dap_chain_python_module)
target_include_directories(${PROJECT_NAME} PUBLIC include/ )
# libdap-chain-gdb-python
#ifndef _WRAPPING_DAP_CHAIN_GDB_
#define _WRAPPING_DAP_CHAIN_GDB_
#include <Python.h>
#include "dap_chain_gdb.h"
#include "libdap-chain-python.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct PyDapChainGDB{
PyObject_HEAD
}PyDapChainGDBObject;
int dap_chain_gdb_init_py(void);
PyObject* dap_chain_gdb_new_py(PyObject* self, PyObject *args);
PyObject *dap_chain_gdb_delete_py(PyObject *self, PyObject *args);
PyObject *dap_chain_gdb_get_group_py(PyObject *self, PyObject *args);
static PyMethodDef DapChainGDBMethod[] = {
{"new", (PyCFunction)dap_chain_gdb_new_py, METH_VARARGS | METH_STATIC, ""},
{"delete", (PyCFunction)dap_chain_gdb_delete_py, METH_VARARGS | METH_STATIC, ""},
{"getGroup", (PyCFunction)dap_chain_gdb_get_group_py, METH_VARARGS | METH_STATIC, ""},
{NULL, NULL, 0, NULL}
};
static PyTypeObject DapChainGDBObject_DapChainGDBType = {
PyVarObject_HEAD_INIT(NULL, 0)
"CellFrame.ChainGDB", /* tp_name */
sizeof(PyDapChainGDBObject), /* tp_basicsize */
0, /* tp_itemsize */
0, /* tp_dealloc */
0, /* tp_print */
0, /* tp_getattr */
0, /* tp_setattr */
0, /* tp_reserved */
0, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_sequence */
0, /* tp_as_mapping */
0, /* tp_hash */
0, /* tp_call */
0, /* tp_str */
0, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT |
Py_TPFLAGS_BASETYPE, /* tp_flags */
"Chain gdb object", /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */
0, /* tp_richcompare */
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
DapChainGDBMethod, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
0, /* tp_base */
0, /* tp_dict */
0, /* tp_descr_get */
0, /* tp_descr_set */
0, /* tp_dictoffset */
0, /* tp_init */
0, /* tp_alloc */
PyType_GenericNew, /* tp_new */
};
#ifdef __cplusplus
}
#endif
#endif // _WRAPPING_DAP_CHAIN_GDB_
libdap @ 50bbcf37
Subproject commit 50bbcf376dffe7e9cec736c6c1665181a44da524
libdap-chain @ d790628d
Subproject commit d790628d8f9a77d46e0a233892f196a4d69a3739
libdap-chain-common @ dde4bb64
Subproject commit dde4bb6403957dcbd2e0a983b36661ad303f5756
libdap-chain-common-python @ 4886d3e9
Subproject commit 4886d3e91ce097e3f923e4b4d3e52bb8509d7c46
libdap-chain-crypto @ 1248013a
Subproject commit 1248013aff1bbde72e92d20e9c13225ab11b2b16
libdap-chain-gdb @ 25f96687
Subproject commit 25f9668706f8e728351db9295e6a1fe0111d32bc
libdap-chain-global-db @ ed828cf1
Subproject commit ed828cf1519ce0f2d77ef691a5cf3a909397d82a
libdap-chain-mempool @ 6c5e89c1
Subproject commit 6c5e89c119aa98456026c3cc564029619470df4b
libdap-chain-net @ 0c4b45ab
Subproject commit 0c4b45ab2f3b8ac5cd432727af36225bd1c0643c
libdap-chain-net-python @ e405405d
Subproject commit e405405d6dd4bbdac7fba21566d8ae05ef78efb0
libdap-chain-net-srv @ c28d683b
Subproject commit c28d683b226c8d39cd898609eb15a4049e74cf4e
libdap-chain-net-srv-vpn @ d532852f
Subproject commit d532852fd138e47498e62a16c5b3b7b139bda549
libdap-chain-python @ 95cbc332
Subproject commit 95cbc3329247ee600361e6f0963e838a7df79aa0
libdap-chain-wallet @ 20b72087
Subproject commit 20b720870059589bd1e1b079426d1777bdfac91a
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment