Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
firewire_camera
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
labrobotica
drivers
firewire_camera
Commits
35ec9271
Commit
35ec9271
authored
5 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Adapted to .deb package generation
parent
e25a07e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+36
-0
36 additions, 0 deletions
.gitlab-ci.yml
CMakeLists.txt
+24
-19
24 additions, 19 deletions
CMakeLists.txt
with
60 additions
and
19 deletions
.gitlab-ci.yml
0 → 100644
+
36
−
0
View file @
35ec9271
image
:
docker.io/labrobotica/labrobotica
stages
:
-
build
-
test
-
deploy
build-package
:
stage
:
build
script
:
# Uncomment to install dependencies
# - apt update
# - apt -y install iri-<package_name>-dev
-
apt update
-
apt -y install libdc1394-22-dev
-
apt -y install iri-iriutils-dev
-
mkdir -pv build
-
cd build
-
cmake -D CMAKE_BUILD_TYPE=RELEASE -DCPACK_PACKAGE_VERSION=$CI_COMMIT_TAG ..
-
make package -j $(nproc)
artifacts
:
paths
:
-
build/*.deb
expire_in
:
2 weeks
only
:
-
tags
update_repo
:
stage
:
deploy
script
:
-
cd build
-
"
scp
-i
/root/.ssh/iriLabKeyNopwd
-r
*firewire-camera*.deb
irilabo@147.83.76.226:packages/"
-
"
ssh
irilabo@147.83.76.226
-i
/root/.ssh/iriLabKeyNopwd
-tt
/home/irilabo/repo_scripts/update_repo.sh
firewire-camera"
only
:
-
tags
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
24
−
19
View file @
35ec9271
...
...
@@ -8,18 +8,7 @@ endif(COMMAND cmake_policy)
# The project name and the type of project
PROJECT
(
firewire_camera
)
SET
(
CPACK_PACKAGE_VERSION
"1.0.0"
)
SET
(
CPACK_PACKAGE_VERSION_MAJOR
"1"
)
SET
(
CPACK_PACKAGE_VERSION_MINOR
"0"
)
SET
(
CPACK_PACKAGE_VERSION_PATCH
"0"
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"(x86)|(X86)|(amd64)|(AMD64)"
)
SET
(
X86 TRUE
)
SET
(
CPACK_DEBIAN_PACKAGE_ARCHITECTURE
"amd64"
)
ELSE
()
SET
(
X86 FALSE
)
SET
(
CPACK_DEBIAN_PACKAGE_ARCHITECTURE
"i386"
)
ENDIF
()
SET
(
PACKAGE_NAME firewire-camera
)
SET
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/bin
)
SET
(
LIBRARY_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/lib
)
...
...
@@ -83,15 +72,29 @@ ELSE(UNIX)
)
ENDIF
(
UNIX
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"(x86)|(X86)|(amd64)|(AMD64)"
)
SET
(
X86 TRUE
)
SET
(
CPACK_DEBIAN_PACKAGE_ARCHITECTURE
"amd64"
)
ELSE
()
SET
(
X86 FALSE
)
SET
(
CPACK_DEBIAN_PACKAGE_ARCHITECTURE
"i386"
)
ENDIF
()
IF
(
UNIX
)
SET
(
CPACK_PACKAGE_FILE_NAME
"iri-
${
P
ROJECT
_NAME
}
-dev-
${
CPACK_PACKAGE_VERSION
}
-
${
CPACK_DEBIAN_PACKAGE_ARCHITECTURE
}
"
)
SET
(
CPACK_PACKAGE_NAME
"iri-
${
P
ROJECT
_NAME
}
-dev"
)
SET
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Part of IRI-laboratory libraries. More information at http://
wik
iri.upc.e
s/index.php/Robotics_Lab
"
)
SET
(
CPACK_PACKAGING_INSTALL_PREFIX
${
CMAKE_INSTALL_PREFIX
}
)
SET
(
CPACK_PACKAGE_FILE_NAME
"iri-
${
P
ACKAGE
_NAME
}
-dev-
${
CPACK_PACKAGE_VERSION
}
-
${
CPACK_DEBIAN_PACKAGE_ARCHITECTURE
}
"
)
SET
(
CPACK_PACKAGE_NAME
"iri-
${
P
ACKAGE
_NAME
}
-dev"
)
SET
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Part of IRI-laboratory libraries. More information at http
s
://
gitlab.
iri.upc.e
du/labrobotica/labrobotica_how_to
"
)
SET
(
CPACK_PACKAGING_INSTALL_PREFIX
/usr
)
SET
(
CPACK_GENERATOR
"DEB"
)
SET
(
CPACK_DEBIAN_PACKAGE_MAINTAINER
"galenya - labrobotica@iri.upc.edu"
)
SET
(
CPACK_SET_DESTDIR
"ON"
)
# Necessary because of the absolute install paths
SET
(
CPACK_DEBIAN_PACKAGE_DEPENDS
"iri-iriutils-dev (>= 1.0~
${
DISTRIB
}
)"
)
SET
(
CPACK_DEBIAN_PACKAGE_MAINTAINER
"labrobotica - labrobotica@iri.upc.edu"
)
# Uncomment to add the necessary mantainer scripts
# SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_SOURCE_DIR}/package_scripts/preinst;${CMAKE_SOURCE_DIR}/package_scripts/postinst;${CMAKE_SOURCE_DIR}/package_scripts/prerm;${CMAKE_SOURCE_DIR}/package_scripts/postrm")
# Uncomment to add dependencies comma separated
# SET(CPACK_DEBIAN_PACKAGE_DEPENDS "iri-<package_name>-dev (>= 1.0~${DISTRIB})")
SET
(
CPACK_DEBIAN_PACKAGE_DEPENDS
"iri-iriutils-dev (>= 1.0~
${
DISTRIB
}
), libdc1394-22-dev (>= 1.0~
${
DISTRIB
}
)"
)
INCLUDE
(
CPack
)
ELSE
(
UNIX
)
...
...
@@ -101,3 +104,5 @@ ELSE(UNIX)
)
ENDIF
(
UNIX
)
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