Page MenuHomePhabricator

[CMAKE] Use CPack to build source packages
ClosedPublic

Authored by Fabien on Mon, Oct 21, 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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Fabien created this revision.Mon, Oct 21, 08:41
Herald added a reviewer: Restricted Project. · View Herald TranscriptMon, Oct 21, 08:41
deadalnix added inline comments.Mon, Oct 21, 23:37
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.Tue, Oct 22, 06:04
Fabien added inline comments.
CMakeLists.txt
53 ↗(On Diff #13623)

Good idea !

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

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

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

Newline.

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