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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.