bitcoin/cmake
merge-script 79bbb381a1
Merge bitcoin/bitcoin#30901: cmake: Revamp handling of data files
ecf54a32ed cmake: Add support for builtin `codegen` target (Hennadii Stepanov)
a8c78a0574 cmake: Revamp handling of data files (Hennadii Stepanov)

Pull request description:

  This PR leverages the approach from the https://github.com/chaincodelabs/libmultiprocess project and introduces a new functions `target_json_data_sources()` and `target_raw_data_sources()`, which minimize the amount of code required to assign to assign a `*.json` or `*.raw` data file to the `test_bitcoin`,  `bench_bitcoin` or `unitester` targets.

  As requested in https://github.com/bitcoin/bitcoin/pull/30901#issuecomment-2654622689, the `codegen` build target is now supported, if available:
  ```
  $ cmake --version
  cmake version 3.31.5

  CMake suite maintained and supported by Kitware (kitware.com/cmake).
  $ cmake -G "Ninja" -B build
  $ cmake --build build --target codegen
  ```

ACKs for top commit:
  fjahr:
    re-ACK ecf54a32ed
  Sjors:
    re-tACK ecf54a32ed
  theuni:
    ACK ecf54a32ed

Tree-SHA512: bab92df6b81c47d9d97ba8db37470a6d7aa435d5578afe40df7154885eda55afc59f0bf20dc9db3b2fd88ceb9a0319b9678f9e9af01e7afd4851ec3a79f3f402
2025-03-03 14:41:05 +00:00
..
module cmake: Add support for builtin codegen target 2025-02-21 11:11:30 +00:00
script cmake: Copy cov_tool_wrapper.sh.in to the build tree 2025-01-23 10:00:58 +00:00
bitcoin-build-config.h.in cmake, refactor: Move HAVE_EVHTTP_... to libevent interface 2024-11-06 15:40:42 +00:00
ccache.cmake build: Unify -logsourcelocations format 2024-11-04 11:30:43 +00:00
crc32c.cmake Merge bitcoin/bitcoin#31662: cmake: Do not modify CMAKE_TRY_COMPILE_TARGET_TYPE globally 2025-02-20 15:07:03 -05:00
introspection.cmake scripted-diff: Rename CMake helper module 2025-02-20 12:39:20 +00:00
leveldb.cmake Merge bitcoin/bitcoin#31366: cmake: Check -Wno-* compiler options for leveldb target 2025-02-20 12:22:20 -05:00
minisketch.cmake Merge bitcoin/bitcoin#31880: cmake: Add optional sources to minisketch library directly 2025-02-25 14:11:58 -05:00
tests.cmake cmake: Add Python-based tests 2024-08-16 19:27:41 +01:00