D28444: WIP/RFC: Add ECMCargo module

Carson Black noreply at phabricator.kde.org
Mon Mar 30 18:35:13 BST 2020


cblack created this revision.
cblack added reviewers: Frameworks, Build System.
Herald added projects: Frameworks, Build System.
Herald added subscribers: kde-buildsystem, kde-frameworks-devel.
cblack requested review of this revision.

REVISION SUMMARY
  The ECMCargo module allows for easy usage of Rust projects
  in a CMake project. Usage looks like this:
  
    ecm_add_cargo_workspace(
      WORKSPACE_DIRECTORY src/rs/
      WORKSPACE_NAME ikona
      FEATURES with-svgcleaner
      DEPENDS src/rs/src/ikona/icons/mod.rs
              src/rs/src/ikona/icontheme/mod.rs
              src/rs/src/ikona/icons/tests.rs
              src/rs/src/ikona/lib.rs
              src/rs/src/capi/capi.rs
      VENDOR_TARBALL ikona.cargo.vendor.tar.xz
      VENDOR_CONFIG cargo-vendor-config.toml
    )
    ...
    target_link_libraries(ikona
      PRIVATE Qt5::Core Qt5::Widgets Qt5::Quick Qt5::Concurrent KF5::I18n KF5::Kirigami2 KF5::ConfigWidgets "${ikona_artifacts_dir}/libikonars.so")
  
  Todo:
  
  [ ] More thorough testing
  [ ] Documentation

REPOSITORY
  R240 Extra CMake Modules

BRANCH
  cblack/cargo-integration

REVISION DETAIL
  https://phabricator.kde.org/D28444

AFFECTED FILES
  modules/ECMCargo.cmake

To: cblack, #frameworks, #build_system
Cc: kde-frameworks-devel, kde-buildsystem, LeGast00n, cblack, GB_2, bencreasy, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20200330/080ac1eb/attachment.html>


More information about the Kde-buildsystem mailing list