wingtk / gvsbuild

GTK stack for Windows
GNU General Public License v2.0
441 stars 165 forks source link

Add ability to configure extra opts per project #1423

Open DjLegolas opened 1 month ago

DjLegolas commented 1 month ago

Some users might want to be able to add additional options to the compilation command of each project. With this, we add the --extra-opts build option which appends the passed option to a project's build command line. The structure is: --extra-opts <project>:<option>[;<option>...]

Closes: #1356

pbor commented 1 month ago

I like the added functionality... however the proposed syntax is a bit weird :)

Is there some precedent we can copy from? how does meson allow to pass down per project specific options?

DjLegolas commented 1 month ago

however the proposed syntax is a bit weird :)

The syntax was fixed 😅 also I have rebased it.

Is there some precedent we can copy from?

I don't know if there is any place we can copy from. I tried to mimic the same functionality as with ninja_opts and cargo_opts.

how does meson allow to pass down per project specific options?

what do you mean?