How to build app resources with a particular directory layout? #11725
Unanswered
smilediver
asked this question in
Q&A
Replies: 1 comment
-
Maybe you could use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. My question is how to use meson to build resources for an app, where the app is expecting a particular layout for the resources? Essentially I need to control where things go inside the build directory. Example of my use case is as follows:
Source data:
Built data and what the app might expect:
The build process basically has 3 cases:
data/objects/house/house.mesh
->data/objects/house/house.mesh
data/objects/house/house.png
->data/objects/house/house.png.bin
data/shaders/shader.frag
->data/shaders/glsl/shader.frag.bin
data/shaders/shader.frag
->data/shaders/dx12/shader.frag.bin
So I need some advice of what is the best way to set this up. Right now it seems that I need to mirror the build data directory in my source tree, place
meson.build
files where I want the built resources to go (egdata/shaders/glsl/meson.build
), and usecustom_target()
. But this greatly complicates the whole build setup, because I can't have just a singlemeson.build
file for data with a list of all resources and how to build them.Any tips or examples would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions