genodelabs / goa

Tool for streamlining the development of Genode applications
GNU Affero General Public License v3.0
19 stars 18 forks source link

Enable Meson support #94

Open ssumpf opened 3 weeks ago

ssumpf commented 3 weeks ago

Some projects we ported or want to port have migrated to the Meson build system (e.g., Mesa, Qemu, media driver, scrcpy). Therefore, it makes sense to enable Meson support in Goa.

ssumpf commented 3 weeks ago

85d5686 is a first step to support Meson:

jschlatow commented 2 weeks ago

@ssumpf That's a valuable addition to Goa. Please have a look at my (few) inline comments.

ssumpf commented 1 week ago

@jschlatow: c89db8a adds a pkg-config.tcl helper script and outputs the _usedapi status during the setup phase.

ssumpf commented 1 week ago

@jschlatow: I forgot to adjust a comment. Have a look at c859273 instead please.

jschlatow commented 1 week ago

@ssumpf Thanks! I was also thinking about the issue with matching the required library names with the api names. Since there are api archives that produce multiple libraries (e.g. mesa, openssl), I was thinking about looking for lib.so files in var/abi/ instead of parsing the used_apis file. What's your opinion?

No matter what we do, we will only have a heuristic pkg-config emulation. I therefore like your idea about logging the pkg-config requests and printing the status.

ssumpf commented 1 week ago

@ssumpf Thanks! I was also thinking about the issue with matching the required library names with the api names. Since there are api archives that produce multiple libraries (e.g. mesa, openssl), I was thinking about looking for lib.so files in var/abi/ instead of parsing the used_apis file. What's your opinion?

@jschlatow: Sounds more correct, so I will change that.

No matter what we do, we will only have a heuristic pkg-config emulation. I therefore like your idea about logging the pkg-config requests and printing the status.

@jschlatow: True

ssumpf commented 1 week ago

@jschlatow: 17db994 searches for modules in var/abi.

ssumpf commented 1 week ago

@jschlatow: adc537d features the lsearch approach while I opted for an exact pattern.

jschlatow commented 4 days ago

Thanks. I merged your changes as 4b583dc and 2fd5e9b to staging.