Commit graph

16 commits

Author SHA1 Message Date
Jeffy Chen
08e74485c6 meson: Force MESA_EGL_NO_X11_HEADER for non-x11 winsys
Not all users would use the cflags from pkgconfig.

Change-Id: If66570b4fba51c70f2e01bd4911714d78b7a8b7e
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-07-22 11:20:02 +08:00
Jeffy Chen
cd3d4f7cf5 meson: Add required packages in pkgconfig
The mali library might has some required packages.

Change-Id: I67cfa599f386f0fb4ed814c61b8882c64ee11026
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-07-22 11:18:56 +08:00
Jeffy Chen
ec25af4296 meson: Disable wrapper packages for utgard by default
The utgard DDK might not work with wrappers.

Change-Id: I724f9abe218e5ba96e149bf75a5b80c1ea17f3b7
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-07-15 11:28:08 +08:00
Jeffy Chen
86ad51dbe0 meson: Support installing without wrapper packages
Currently we are using wrapper packages to provide new GBM API and
vendor package.

But that requires the API clients honor our package config(.pc) files.

Adding an option to disable wrappers for the ones that don't follow the
rules.

Change-Id: Ie55aa712311c1df21ba0c11b924454febecca9f6
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-03-26 21:35:57 +08:00
Jeffy Chen
5e96f0f52d meson: Support vendor packaging
This is useful for debian-based distributions.

Change-Id: Ib2a1e9bbc878e25c619b5b388a1ad139141cc1a7
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-03-10 06:50:58 +08:00
Jeffy Chen
c3b4a820e1 Support installing khrplatform.h again
Currently the KHR header is depended by mesa's EGL/GLES/GL headers, and
would be provided in mesa-common-dev.

So for the usage of mixing mesa's GL with mali's EGL/GLES, we have to
leave it to mesa's version and let mali uses it's own.

But for people who doesn't want mesa, let's add an option to allow
installing it in mali.

Change-Id: Id6e88e2d7f3c4f6092a3cf1f1078a6a7f284f823
Suggested-by: Gleb Mazovetskiy <glex.spb@gmail.com>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-01-30 04:44:34 +08:00
Jeffy Chen
2d3dce5e7e Honor the includedir option
Stop using the hard-coded 'include' dirname.

Change-Id: I0ff7dceb81bcbf84e7863dffdf933c41647f6d25
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-01-30 04:40:01 +08:00
Jeffy Chen
6141ad6e6f gbm_wrapper: Load mali library before searching the symbols
The RTLD_NEXT would not work if the gbm library was loaded with
RTLD_LOCAL.

Change-Id: I4256b52271a92e03dbcb490b1e7fabeb32be6401
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-01-27 17:07:33 +08:00
Jeffy Chen
64c6c30728 meson: Use install_subdir to install headers
No functional changes.

Change-Id: Iff46805d7613b91f84e354c2b1872aa4cf3b1c91
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-12-24 11:23:34 +08:00
Jeffy Chen
2f6f3a0e24 meson: Print building options
No functional changes.

Change-Id: I31d31ddd5442589f6c4a1c2e1143c0e3c6f56ff8
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-12-10 15:04:09 +08:00
Jeffy Chen
e012a2bbb8 debian/control: Add missing build deps
These are required by shlibs stage.

Change-Id: I31a2b4fdffbe27504e8ab312bea5b616abf76439
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-10-20 08:28:37 +08:00
Jeffy Chen
07daee4e8a meson: Fix support for OpenCL ICD implementation
The OpenCL ICD implementation should work with OpenCL ICD loader.

So we shouldn't try to install non-ICD OpenCL implementation in this
case.

Change-Id: Idfb4e6058952215075e2cc253c0d5bb43cac6761
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-09-27 17:58:48 +08:00
Jeffy Chen
7359b29cb9 gbm: Compat to mesa3d 20.1.5 APIs
Use gbm wrapper library to provide missing functions.

Change-Id: I62c9838f91adfd2f54df5eb75b256c361c7ce9a0
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-08-13 17:43:00 +08:00
Jeffy Chen
23dbb929bd meson: Require meson >= 0.49.0
Fix this warning:
WARNING: Project targeting '>=0.47.0' but tried to use feature introduced in '0.49.0': / with string arguments

Change-Id: Ic1af5d59d1cbfb11b69c078f7b7754a8ad7cf64b
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-08-13 16:18:24 +08:00
Jeffy Chen
d7695f4218 meson: Only define MESA_EGL_NO_X11_HEADERS in egl.pc
Change-Id: Ice8738a592b85a504355611c4c6096d694b0afcd
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-08-13 09:45:06 +08:00
Jeffy Chen
f127d14e87 Support meson build system
meson build -Darch=aarch64 -Dgpu=bifrost-g31 -Dversion=rxp0 -Dplatform=only-cl

Change-Id: I60bb14e16a9cbc9589b85279680c845f53ed0572
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-07-31 17:00:25 +08:00