OSX/iOS frameworks?

123 views
Skip to first unread message

Emil Dotchevski

unread,
May 18, 2017, 1:33:48 AM5/18/17
to The Meson Build System
What is the correct way for locating/linking OSX/iOS frameworks? I browsed the code and I can see that things like OpenGL will just work -- dependency('gl') -- but what about frameworks which don't have a corresponding library on non-Apple platforms? Obviously adding them on the linker command line would work but I wasn't sure if there is a better way!

Jussi Pakkanen

unread,
May 19, 2017, 4:31:51 PM5/19/17
to Emil Dotchevski, The Meson Build System

Emil Dotchevski

unread,
May 24, 2017, 5:17:41 PM5/24/17
to The Meson Build System, emildot...@gmail.com
Thanks!

What if the framework is not built-in? How do I tell meson to link a specific custom framework (let's say it is a subproject)?

Jussi Pakkanen

unread,
May 29, 2017, 5:27:56 PM5/29/17
to Emil Dotchevski, The Meson Build System
On Thu, May 25, 2017 at 12:17 AM, Emil Dotchevski
<emildot...@gmail.com> wrote:

> What if the framework is not built-in? How do I tell meson to link a
> specific custom framework (let's say it is a subproject)?

For subprojects you would not use a framework but declare_dependency.

Emil Dotchevski

unread,
May 29, 2017, 10:48:25 PM5/29/17
to The Meson Build System, emildot...@gmail.com

What I mean is that the subproject comes in the form of frameworks, e.g. like Qt. Can I tell declare_dependency that it's a pre-built framework, so it knows to use -F/-framework? But maybe this isn't a huge deal, I could manually do -F/-framework on Mac/iOS.

Thanks!
Reply all
Reply to author
Forward
0 new messages