Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
celllframe-node
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
celllframe-node
Commits
b52e631c
Commit
b52e631c
authored
3 years ago
by
dmitriy.gerasimov
Browse files
Options
Downloads
Plain Diff
Merge branch 'support-5044' into 'master'
Support 5044 See merge request
!250
parents
3b6a716e
e56da22a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!250
Support 5044
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
CMakeLists.txt
+3
-1
3 additions, 1 deletion
CMakeLists.txt
cellframe-sdk
+1
-1
1 addition, 1 deletion
cellframe-sdk
prod_build
+1
-1
1 addition, 1 deletion
prod_build
sources/main_node_cli.c
+8
-1
8 additions, 1 deletion
sources/main_node_cli.c
sources/main_node_tool.c
+8
-1
8 additions, 1 deletion
sources/main_node_tool.c
with
21 additions
and
5 deletions
CMakeLists.txt
+
3
−
1
View file @
b52e631c
...
...
@@ -10,7 +10,6 @@ SET( CPACK_PACKAGE_VERSION_MAJOR 4)
SET
(
CPACK_PACKAGE_VERSION_MINOR 4
)
SET
(
CPACK_PACKAGE_VERSION_PATCH 55
)
# init CellFrame SDK
add_definitions
(
"-DDAP_VERSION=
\"
${
CPACK_PACKAGE_VERSION_MAJOR
}
-
${
CPACK_PACKAGE_VERSION_MINOR
}
.
${
CPACK_PACKAGE_VERSION_PATCH
}
\"
"
)
set
(
SUBMODULES_NO_BUILD ON
)
...
...
@@ -79,6 +78,9 @@ if(UNIX)
SET
(
CPACK_SYSTEM_ARCH
"amd64"
)
SET
(
CPACK_SYSTEM_CODENAME
"
${
DEBIAN_OS_NAME
}
"
)
SET
(
CPACK_SYSTEM_NAME
"
${
CPACK_SYSTEM_TYPE
}
-
${
CPACK_SYSTEM_VERSION
}
-
${
CPACK_SYSTEM_ARCH
}
-
${
CPACK_SYSTEM_CODENAME
}
"
)
if
(
BUILD_WITH_GDB_DRIVER_PGSQL
)
SET
(
CPACK_SYSTEM_NAME
"
${
CPACK_SYSTEM_NAME
}
-pgsql"
)
endif
()
if
(
CMAKE_BUILD_TYPE MATCHES Debug
)
SET
(
CPACK_SYSTEM_NAME
"
${
CPACK_SYSTEM_NAME
}
-dbg"
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
cellframe-sdk
@
39f0cc65
Compare
bd40f27b
...
39f0cc65
Subproject commit
bd40f27b7a4f3cbca99e4879aa7ce5d6899905bc
Subproject commit
39f0cc65878ee1a6b089f8a44edd6afff3753a66
This diff is collapsed.
Click to expand it.
prod_build
@
9e35d926
Compare
f6f8d1e4
...
9e35d926
Subproject commit
f6f8d1e4bf8ab62037f6eb5a17f807eef11a2f05
Subproject commit
9e35d9261d642584e6a6cc94817d40a934acecde
This diff is collapsed.
Click to expand it.
sources/main_node_cli.c
+
8
−
1
View file @
b52e631c
...
...
@@ -201,7 +201,14 @@ int main(int argc, const char *argv[])
SetConsoleOutputCP
(
1252
);
g_sys_dir_path
=
dap_strdup_printf
(
"%s/%s"
,
regGetUsrPath
(),
dap_get_appname
());
#elif DAP_OS_MAC
g_sys_dir_path
=
dap_strdup_printf
(
"/Applications/%s.app/Contents/Resources"
,
dap_get_appname
());
char
*
l_username
=
NULL
;
exec_with_ret
(
&
l_username
,
"whoami|tr -d '
\n
'"
);
if
(
!
l_username
){
printf
(
"Fatal Error: Can't obtain username"
);
return
2
;
}
g_sys_dir_path
=
dap_strdup_printf
(
"/Users/%s/Applications/Cellframe.app/Contents/Resources"
,
l_username
);
DAP_DELETE
(
l_username
);
#elif DAP_OS_ANDROID
g_sys_dir_path
=
dap_strdup_printf
(
"/storage/emulated/0/opt/%s"
,
dap_get_appname
());
#elif DAP_OS_UNIX
...
...
This diff is collapsed.
Click to expand it.
sources/main_node_tool.c
+
8
−
1
View file @
b52e631c
...
...
@@ -381,7 +381,14 @@ static int s_init( int argc, const char **argv )
g_sys_dir_path
=
dap_strdup_printf
(
"%s/%s"
,
regGetUsrPath
(),
dap_get_appname
());
char
*
s_log_dir_path
=
dap_strdup_printf
(
"%s/var/log"
,
g_sys_dir_path
)
;
#elif DAP_OS_MAC
g_sys_dir_path
=
dap_strdup_printf
(
"/Applications/%s.app/Contents/Resources"
,
dap_get_appname
());
char
*
l_username
=
NULL
;
exec_with_ret
(
&
l_username
,
"whoami|tr -d '
\n
'"
);
if
(
!
l_username
){
printf
(
"Fatal Error: Can't obtain username"
);
return
2
;
}
g_sys_dir_path
=
dap_strdup_printf
(
"/Users/%s/Applications/Cellframe.app/Contents/Resources"
,
l_username
);
DAP_DELETE
(
l_username
);
char
*
s_log_dir_path
=
dap_strdup_printf
(
"/Library/%s.app/Logs"
,
dap_get_appname
()
)
;
#elif DAP_OS_ANDROID
g_sys_dir_path
=
dap_strdup_printf
(
"/storage/emulated/0/opt/%s"
,
dap_get_appname
());
...
...
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