Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
python-cellframe
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
1
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
Show more breadcrumbs
cellframe
python-cellframe
Commits
3d8f93ce
Commit
3d8f93ce
authored
4 years ago
by
dmitriy.gerasimov
Browse files
Options
Downloads
Plain Diff
Merge branch 'support-3367' into 'master'
Support 3367 See merge request
!20
parents
a7f044c5
c81f0554
No related branches found
No related tags found
1 merge request
!20
Support 3367
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+7
-4
7 additions, 4 deletions
CMakeLists.txt
dists/examples/1.Authority/MyAuthCli.py
+1
-1
1 addition, 1 deletion
dists/examples/1.Authority/MyAuthCli.py
setup.py
+4
-3
4 additions, 3 deletions
setup.py
with
12 additions
and
8 deletions
CMakeLists.txt
+
7
−
4
View file @
3d8f93ce
cmake_minimum_required
(
VERSION 2.8
)
if
(
SUPPORT_PYTHON_PLUGINS
)
project
(
API_CellFrame C
)
else
()
...
...
@@ -9,9 +10,7 @@ set(CMAKE_COLOR_MAKEFILE ON)
set
(
CMAKE_C_STANDARD 11
)
set
(
Python_ADDITIONAL_VERSIONS 3.7 3.6 3.5 3.4
)
set
(
Python_ADDITIONAL_VERSIONS 3.9 3.8 3.7 3.6 3.5 3.4
)
find_package
(
PythonLibs REQUIRED
)
include_directories
(
${
PYTHON_INCLUDE_DIR
}
include/
)
file
(
GLOB PYTHON_CELLFRAME_SRCS src/*.c
)
...
...
@@ -42,7 +41,9 @@ target_compile_options(dap_stream_ch_chain_net PRIVATE "-fpic" )
target_compile_options
(
dap_stream_ch_chain PRIVATE
"-fpic"
)
target_compile_options
(
dap_udp_server PRIVATE
"-fpic"
)
target_compile_options
(
dap_chain_net_srv PRIVATE
"-fpic"
)
target_compile_options
(
dap_chain_net_srv_vpn PRIVATE
"-fpic"
)
if
(
NOT WIN32
)
target_compile_options
(
dap_chain_net_srv_vpn PRIVATE
"-fpic"
)
endif
()
target_compile_options
(
dap_chain_gdb PRIVATE
"-fpic"
)
target_compile_options
(
dap_enc_server PRIVATE
"-fpic"
)
target_compile_options
(
dap_http_server PRIVATE
"-fpic"
)
...
...
@@ -134,7 +135,9 @@ target_compile_options(dap_stream_ch_chain_net PRIVATE "-fpic" )
target_compile_options
(
dap_stream_ch_chain PRIVATE
"-fpic"
)
target_compile_options
(
dap_udp_server PRIVATE
"-fpic"
)
target_compile_options
(
dap_chain_net_srv PRIVATE
"-fpic"
)
if
(
NOT WIN32
)
target_compile_options
(
dap_chain_net_srv_vpn PRIVATE
"-fpic"
)
endif
()
target_compile_options
(
dap_chain_gdb PRIVATE
"-fpic"
)
target_compile_options
(
dap_enc_server PRIVATE
"-fpic"
)
target_compile_options
(
dap_http_server PRIVATE
"-fpic"
)
...
...
This diff is collapsed.
Click to expand it.
dists/examples/1.Authority/MyAuthCli.py
+
1
−
1
View file @
3d8f93ce
#!/usr/bin/python3
import
sys
import
os
from
CellFrame.libCel
L
Frame
import
AppCli
from
CellFrame.libCel
l
Frame
import
AppCli
app_name
=
"
MyAuth
"
tmp_dir
=
os
.
getcwd
()
+
"
/tmp
"
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
4
−
3
View file @
3d8f93ce
...
...
@@ -48,9 +48,10 @@ class CMakeBuild(build_ext):
cmake_args
+=
[
'
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}
'
.
format
(
cfg
.
upper
(),
extdir
)]
if
sys
.
maxsize
>
2
**
32
:
cmake_args
+=
[
'
-A
'
,
'
x64
'
]
build_args
+=
[
'
--
'
,
'
/m
'
]
cmake_args
+=
[
'
-G
'
,
'
MinGW Makefiles
'
]
#if sys.maxsize > 2**32:
# cmake_args += ['-A', 'x64']
#build_args += ['--', '/m']
else
:
cmake_args
+=
[
'
-DCMAKE_BUILD_TYPE=
'
+
cfg
]
build_args
+=
[
'
--
'
,
'
-j4
'
]
...
...
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