I'm using meson to build a project.
The project now needs a dependency to another library, which is easily built using Make, just by issuing the make command.
I would like to add this as a subproject dependency in Meson. Is it possible to call Make from Meson's meson.build file? How is it done?
Related
In one of our projects we have used Gstreamer good plugins. I see that each element has a Makefile for building.
Now I wanted to upgrade rtpmanager code (https://github.com/GStreamer/gst-plugins-good/tree/master/gst/rtpmanager) inside Gstreamer. But, I see that there are no Makfiles anymore but 'meson.build' file.
Currently our project build does not support meson. So, is there a way to convert the latest rtpmanager code involving meson.build to traditional Makefile kind of build so that I can integrate its latest changes into my project.
Meson does not and never will generate makefiles.
Qemu meson PoC is using a tool to convert ninja files to Makefile:
https://github.com/bonzini/qemu/blob/meson-poc/scripts/ninjatool.py
I am building a package that uses sub-module (protobuf) that I wand to link with statically, and avoid providing it's binaries in the package I build.
I did the following:
Add protobuf as sub-module of my project.
Use autoconf to build only static library using: --with-pic=yes --enable-
shared=no flags.
Avoid invoking "make install" (only make) on the sub-module.
Currently the package building process fails when running distcheck.
According to error message, it fails on distcheck of the sub-module, since the binaries of the sub-module are not included.
Is there a guide for how to properly build and link statically with sub modules ?
(and avoid including them in the packages)
I have an XCode project which I would like to add source files to via scripting.
Is it possible to add compile sources via a run script build phase?
If so, how would I go about this?
I haven't found any documentation or examples of this, so I'm not sure it's possible.
You can create target that runs script. In this script any sources could be passed to xcodebuild arguments.
If this is not what is needed, XCode project by itself is an xml, so any files could be added to any targets, but project should be reloaded after, so I don't know how to add files to target withing runnign this target build.
Is there any build tool running in Windows environment that manages versions of modules in a set of recipes? Recipes should define from which source to build, how to build, and dependencies between the modules. I'd like the above meta-data about the module to be separated from the code its building, not like Ant/Ivy or Gradle (as a version/dependency file in the source repo).
I like the way package dependency handling in Linux work.
Actually, I want bitbake for Windows. Is there something similar?
You can use pretty the same bitbake using Yocto by Intel on Windows and with Eclipse plugin.
I have a Cmake project where I use static libraries from another project (which uses its own unique build system).
I have a bash script set up which compiles the libraries.
The problem arises when a new user checkouts both project. The new user cannot do cmake until the libaries are properly compiled in the other project, and the cmake command find_libarary cant find them.
I made the bash script part of cmake by using the command add_custom_target. But the issue is that it only execute if you do a "make".
Is there a way I can make CMake execute a command while its generating a build system. Or a better way would be to have it ignore the find command until the actual make?
Thanks
Why not LINK_DIRECTORIES(xxx) to the library folder and don't use find_library at all.
Sure, execute_process() function.