Different builddir for files in same source folder #13633
Replies: 2 comments
-
https://gitlab.com/vala-panel-project/vala-panel-appmenu/-/tree/master/subprojects/appmenu-gtk-module/src?ref_type=heads - look here, exactly your goal. I created 2 subdirs in source just with a meson.build files, and they are build different binaries from one source folder. |
Beta Was this translation helpful? Give feedback.
-
I am not entirely certain what you are trying to do here, but to shed a bit of light on how meson operates:
|
Beta Was this translation helpful? Give feedback.
-
Hi All,
I am new to meson buildtool and learning it these days. I have a specifc requirement where I want to generate two builddir let's say builddir1 & builddir2 from one source folder which contains all C files. So some of the object files should be generated in builddir1 and some should be in builddir2 - I can define source_builddir1 and source_builddir2 seprately and finally I want to generate either a static library or a shared library or an executable (I can define that too in meson.build) from these object files and store it in the builddir1 folder.
I don't think there is any in-built function in the meson which can perfrom like this so I have to write a custom function for this can someone let me know how can I achive this.
All source files are in source_dir
source_dir = subdir/
builddir1 = subdir/dir1
builddir2 = subdir/dir2
source_builddir1 = files('a.c', 'b.c', 'c.c', )
source_builddir2 = files('d.c', 'e.c',)
Thanks,
-Rajeev
Beta Was this translation helpful? Give feedback.
All reactions