xserver-multidpi/hw/xquartz/pbproxy/meson.build
Jon Turney 655b1eb32e meson: Convert xquartz from autotools
Differences from autotools:

* Autotools defined NO_ALLOCA for OSX builds.  I don't think we need
this anymore as Xalloc.h is no longer used anywhere in the xserver.

* X11.bin is linked with -u,miDCInitialize, and then libserver_mi
provided to satisfy (just) that.  It's been that way since the commit
which added it.  We can't write the equivalent in meson due to linker
argument ordering issues, but do we really need to?

* An explicit -Dsecure-rpc=false is required for OSX, since in meson we
don't do the checks that XTRANS_SECURE_RPC_FLAGS did for the existence
of the specific RPC functions required.
2019-05-02 15:42:58 +00:00

30 lines
749 B
Meson

build_standalone_pbproxy = get_option('xpbproxy')
pbproxy_defs = [bundle_id_def]
if build_standalone_pbproxy
pbproxy_defs += ['-DSTANDALONE_XPBPROXY']
endif
libapplewm_dep = dependency('applewm', version: '>=1.4')
libxpbproxy = static_library('xpbproxy',
['main.m',
'x-input.m',
'x-selection.m'],
dependencies: [applewmproto_dep, libapplewm_dep, dependency('xfixes'), dependency('x11')],
objc_args: pbproxy_defs,
)
cocoa = dependency('Cocoa', method: 'extraframework')
# standalone xpbproxy
if build_standalone_pbproxy
executable('xpbproxy',
'app-main.m',
link_with: libxpbproxy,
dependencies: [cocoa, dependency('x11')],
objc_args: pbproxy_defs,
install: true,
)
endif