Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
41a61063
Unverified
Commit
41a61063
authored
Mar 16, 2021
by
Tachi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Meson in Debian packaging
parent
df5bc509
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
17 deletions
+37
-17
debian/control
debian/control
+1
-2
debian/rules
debian/rules
+36
-15
No files found.
debian/control
View file @
41a61063
...
...
@@ -4,7 +4,7 @@ Priority: optional
Maintainer: Kip Warner <kip@thevertigo.com>
Standards-Version: 4.2.1
Build-Depends:
cmake (>= 3.8
.0),
meson (>= 0.50
.0),
cppcheck,
debhelper-compat (= 11),
dh-exec,
...
...
@@ -59,4 +59,3 @@ Description: elegant C++ REST framework
Pistache is released under the Apache License 2.0 license.
.
This package contains the shared library built with SSL support.
debian/rules
View file @
41a61063
...
...
@@ -38,19 +38,18 @@ SOURCE_DIR = $(abspath $(PACKAGE_DIR)/../)
# Main packaging script based on debhelper 7 syntax. The % is an implicit
# pattern rule that acts as a universal target...
%:
dh $@
dh $@
--buildsystem=meson
# Configure source...
override_dh_auto_configure:
dh_auto_configure -- \
-G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
--buildtype=release \
-DPISTACHE_BUILD_EXAMPLES=true \
-DPISTACHE_BUILD_TESTS=true \
-DPISTACHE_ENABLE_NETWORK_TESTS=false \
-DPISTACHE_BUILD_DOCS=false \
-DPISTACHE_USE_SSL=true \
-
DCMAKE_INSTALL_PREFIX=/usr
\
-
-prefix=/usr
\
$(SOURCE_DIR)
# Perform unit testing, but only if not disabled...
...
...
@@ -70,31 +69,53 @@ endif
get-orig-source: $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.bz2 $(info I: $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM))
@
## Prepare an upstream vanilla distribution tarball...
#$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.bz2:
# @echo "# Preparing source for $(DEB_SOURCE) v$(DEB_VERSION_UPSTREAM)..."
# cd $(SOURCE_DIR) \
# && cd $(PACKAGE_DIR) \
# && mkdir -p $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) \
# && cd $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) \
# && cmake \
# -G "Unix Makefiles" \
# -DCMAKE_BUILD_TYPE=Release \
# -DPISTACHE_BUILD_EXAMPLES=true \
# -DPISTACHE_BUILD_TESTS=true \
# -DPISTACHE_ENABLE_NETWORK_TESTS=false \
# -DPISTACHE_BUILD_DOCS=false \
# -DPISTACHE_USE_SSL=true \
# -DCMAKE_INSTALL_PREFIX=/usr \
# $(SOURCE_DIR) \
# && make dist \
# && mv -v $(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM).tar.bz2 $(SOURCE_DIR)/../$@
# @echo "# Cleaning up..."
# cd $(PACKAGE_DIR)/$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) \
# && make clean
# cd $(PACKAGE_DIR) \
# && $(RM) -r $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM)
# Prepare an upstream vanilla distribution tarball...
$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.bz2:
@echo "# Preparing source for $(DEB_SOURCE) v$(DEB_VERSION_UPSTREAM)..."
cd $(SOURCE_DIR) \
&& cd $(PACKAGE_DIR) \
&& mkdir -p $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) \
&& cd $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) \
&& cmake \
-G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
&& meson setup $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) \
--buildtype=release \
-DPISTACHE_BUILD_EXAMPLES=true \
-DPISTACHE_BUILD_TESTS=true \
-DPISTACHE_ENABLE_NETWORK_TESTS=false \
-DPISTACHE_BUILD_DOCS=false \
-DPISTACHE_USE_SSL=true \
-DCMAKE_INSTALL_PREFIX=/usr \
$(SOURCE_DIR) \
&& make dist \
&& mv -v $(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM).tar.bz2 $(SOURCE_DIR)/../$@
--prefix=/usr \
&& cd $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) \
&& ninja dist \
&& rm meson-dist/$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM).tar.xz.sha256sum \
&& mv -v meson-dist/$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM).tar.xz $(SOURCE_DIR)/../$@
@echo "# Cleaning up..."
cd $(PACKAGE_DIR)/$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) \
&&
make
clean
&&
ninja
clean
cd $(PACKAGE_DIR) \
&& $(RM) -r $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM)
# Targets which aren't actual products...
.PHONY: get-orig-source override_dh_auto_configure override_dh_auto_test
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