Replies: 6 comments 13 replies
-
Thank you Eli, I tried this way here is my wrap file
and in my main meson file I have but meson still complains |
Beta Was this translation helpful? Give feedback.
-
I'm not sure I totally understand what's going on here. I browsed the various WrapDB existing configurations and from what I can see, there are two cases: Unfortunately my case falls in a third area: non-built sources. So ultimately I want my project to have a dependency on a firmware support package that declares both sources and headers, but doesn't build them. So what I did so far is this
so in my main meson.build I now have in the stm-cube-support.wrap file I have
and in the packagefile meson.build I have
which I don't like because it's attempting to build it. As I understand it, my packagefile meson.build is not being picked up. How is that one linked with the wrap file? |
Beta Was this translation helpful? Give feedback.
-
Thanks Eli-schwartz So the point is that this dependency is not meant to be built at all. There is no main function, some objects don't have their configuration because that lives somewhere else, the actual platform is not defined. The reason for going for a subproject is two fold:
So at a higher level we have
in this configuration, what I've been doing so far in this thread, is trying to get the stm_support_package to work inside the BSP as additional sources |
Beta Was this translation helpful? Give feedback.
-
So here is my update: I was able to compile using the dependency declaration with sources. This is a great achievement, thank you both @eli-schwartz and @mscofield0 I want to contribute this wrap, it seems there is no pull request process thought, right? |
Beta Was this translation helpful? Give feedback.
-
Hi @eli-schwartz , I noticed one thing.
Is there a way to avoid this? |
Beta Was this translation helpful? Give feedback.
-
Hello
I'm using meson for my build system, and everything works with my sources.
The issue I have is because I target an ST chip, so I want to have a submodule pointing at their device support repo
https://github.com/STMicroelectronics/STM32CubeG0
so I have
source
Ideally I'd keep the STM32 submodule as a pure clone of the STM code.
So I started adding hardcoded paths in the main project meson file, and it complains
What's the suggested solution for doing this kind of thing?
Beta Was this translation helpful? Give feedback.
All reactions