Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery.common.cpp
/
Microservice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1b75b63f
authored
Dec 12, 2016
by
amir
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
dd packaging and publish to archiva
parent
7a23ebc9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
1 deletions
CMakeLists.txt
build.gradle
CMakeLists.txt
View file @
1b75b63f
...
...
@@ -69,7 +69,8 @@ target_link_libraries (test_ZMQ Microservice)
# install include files
#
set
(
CMAKE_INSTALL_PREFIX ../internals
)
#set (CMAKE_INSTALL_PREFIX ../internals)
set
(
CMAKE_INSTALL_PREFIX dist
)
# src
file
(
GLOB INSTALL_FILES
"src/*.h"
)
install
(
FILES
${
INSTALL_FILES
}
DESTINATION include/microservice
)
...
...
@@ -92,7 +93,27 @@ install(FILES ${INSTALL_FILES} DESTINATION include/microservice/impl/servers)
file
(
GLOB INSTALL_FILES
"src/handlers/*.h"
)
install
(
FILES
${
INSTALL_FILES
}
DESTINATION include/microservice/handlers
)
#CPack
include
(
InstallRequiredSystemLibraries
)
set
(
CPACK_PACKAGE_VERSION_MAJOR
${
Microservice_VERSION_MAJOR
}
)
set
(
CPACK_PACKAGE_VERSION_MINOR
${
Microservice_VERSION_MINOR
}
)
set
(
CPACK_PACKAGE_VERSION_PATCH
${
Microservice_VERSION_PATCH
}
)
set
(
CPACK_SOURCE_PACKAGE_FILE_NAME
"
${
CMAKE_PROJECT_NAME
}
-
${
Microservice_VERSION_STRING
}
"
)
set
(
CPACK_SOURCE_GENERATOR
"ZIP"
)
set
(
CPACK_PACKAGE_INSTALL_DIRECTORY dist
)
set
(
CPACK_SET_DESTDIR
"ON"
)
set
(
CPACK_PACKAGE_DEFAULT_LOCATION
"./dist"
)
#set(CPACK_SOURCE_IGNORE_FILES
# "/build/;/.bzr/;~$;${CPACK_SOURCE_IGNORE_FILES}")
include
(
CPack
)
#add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
# install lib files
#
install
(
TARGETS Microservice DESTINATION lib
)
set
(
PUBLISH_FILE
${
CPACK_PACKAGE_FILE_NAME
}
-
${
CPACK_SYSTEM_NAME
}
.tar.gz
)
add_custom_target
(
publish COMMAND gradle uploadArchives -Pcversion=
${
Microservice_VERSION_STRING
}
-Ppublish_file=
${
PUBLISH_FILE
}
)
\ No newline at end of file
build.gradle
0 → 100644
View file @
1b75b63f
//apply plugin: 'java'
apply
plugin:
'maven'
apply
plugin:
'maven-publish'
group
=
'common.cpp'
version
=
cversion
def
someFile
=
file
(
publish_file
)
//'Microservice-0.4.0-Linux.tar.gz')
artifacts
{
archives
(
someFile
){
name
'microservice'
}
}
uploadArchives
{
repositories
{
mavenDeployer
{
repository
(
url:
'http://172.16.1.132:8081/repository/internal'
)
{
authentication
(
userName:
'admin'
,
password:
'giptmgr1'
)
}
// snapshotRepository(url: 'http://172.16.1.132:8081/repository/internal') {
// authentication(userName: 'admin', password: 'giptmgr1')
// }
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment