Page MenuHomePhabricator

[cmake] Add support to build native executables
ClosedPublic

Authored by deadalnix on Apr 7 2018, 20:15.

Details

Summary

As per title. This ensures that we can build the executable used to generate various assets.

Test Plan
cmake -GNinja .. -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Win32.cmake -DBUILD_BITCOIN_QT=OFF -DBUILD_BITCOIN_SEEDER=OFF
ninja generate_univalue_escapes_h

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cmakenativeexec
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 2252
Build 2646: Bitcoin ABC Buildbot (legacy)
Build 2645: arc lint + arc unit

Event Timeline

Exclude native target from all, so behavior is consistent in native and cross builds.

Remove superflusous depends

Refactor the native buolder module to use CMakeCache.txt as an anchor rather than build.ninja and add the phony target native-cmake-build

schancel edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Apr 8 2018, 14:43
This revision was automatically updated to reflect the committed changes.