Page MenuHomePhabricator

[CMAKE] Use CPack to build source packages
ClosedPublic

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

Details

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 Passed
Unit
No Test Coverage
Build Status
Buildable 7831
Build 13684: Bitcoin ABC Buildbot (legacy)
Build 13683: arc lint + arc unit

Event Timeline

CMakeLists.txt
53 ↗(On Diff #13623)

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 ↗(On Diff #13623)

Good idea !

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

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