The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

532 B

structured_sources()

A new function, structured_sources() has been added. This function allows languages like Rust which depend on the filesystem layout at compile time to mix generated and static sources.

executable(
  'main',
  structured_sources(
    'main.rs,
    {'mod' : generated_mod_rs},
  )
)

Meson will then at build time copy the files into the build directory (if necessary), so that the desired file structure is laid out, and compile that. In this case:

root/
  main.rs
  mod/
    mod.rs