Page MenuHomePhabricator

[CMAKE] Use CPack to build source packages
ClosedPublic

Authored by Fabien on Oct 21 2019, 08:41.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Commits
rABCebf78761756f: [CMAKE] Use CPack to build source packages
Summary

This diff adds a new package_source build target, which creates a
tar.gz archive of the source files.
The archive contains all the files required to build the software with
autotools or cmake. The output is then slightly different from the
output of autotools' make dist.

Depends on D4267.

Test Plan
ninja package_source

Use the archive to build the software with autotools and cmake.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cmake_package_source
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 7820
Build 13662: Bitcoin ABC Buildbot (legacy)
Build 13661: arc lint + arc unit

Event Timeline

Fabien created this revision.Oct 21 2019, 08:41
Herald added a reviewer: Restricted Project. · View Herald TranscriptOct 21 2019, 08:41
deadalnix added inline comments.Oct 21 2019, 23:37
CMakeLists.txt
53

It would be a good idea to parse .gitignore and go from there.

Fabien planned changes to this revision.Oct 22 2019, 06:04
Fabien added inline comments.
CMakeLists.txt
53

Good idea !

Fabien updated this revision to Diff 13639.Oct 22 2019, 11:05

Use git to get an list of files/directories to exclude.

Fabien updated this revision to Diff 13640.Oct 22 2019, 11:06

Newline.

deadalnix accepted this revision.Oct 23 2019, 01:15
This revision is now accepted and ready to land.Oct 23 2019, 01:15
This revision was automatically updated to reflect the committed changes.