[igt-dev] [PATCH i-g-t] meson.build: Add FreeBSD OS detection
Jake Freeland
jake at technologyfriends.net
Mon Oct 17 14:26:42 UTC 2022
Hi there Kamil,
After some coordination with the FreeBSD graphics team, I decided
to remove the freebsd-uapi sync_file.h include. The file that I submitted
in a previous patch is simply a copy of the linux-uapi sync_file.h with
minor modifications to compile successfully. It turns out that FreeBSD
does not have a comparable fencing uapi making the freebsd-uapi
sync_file.h technically improper.
This patch introduces the '/usr/local/include' include dir on FreeBSD
systems.
I will return back to the freebsd-uapi sync file when I have a proper
solution.
Thank you,
Jake Freeland
On Mon, Oct 17, 2022 at 3:00 AM Kamil Konieczny <
kamil.konieczny at linux.intel.com> wrote:
> Hi Jake,
>
> On 2022-10-16 at 12:27:25 -0500, Jake Freeland wrote:
> > Use meson's host_machine.system() to detect the target operating
> > system. If the target is FreeBSD, add /usr/local/include to the
> > include dirs.
>
> Put here also note about change from linux-uapi to freebsd-uapi.
>
> >
> > Signed-off-by: Jake Freeland <jfree at freebsd.org>
> > ---
> > meson.build | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> > diff --git a/meson.build b/meson.build
> > index 3e937f5a..896efbf8 100644
> > --- a/meson.build
> > +++ b/meson.build
> > @@ -86,7 +86,12 @@ with_libdrm = get_option('libdrm_drivers')
> >
> > build_info = ['Build type: ' + get_option('buildtype')]
> >
> > +system = host_machine.system()
> > +if system == 'linux'
> > inc = include_directories('include/drm-uapi', 'include/linux-uapi',
> 'lib', 'lib/stubs/syscalls', '.')
> > +elif system == 'freebsd'
> > +inc = include_directories('include/drm-uapi', 'include/linux-uapi',
> 'lib', 'lib/stubs/syscalls', '.', '/usr/local/include')
> --------------------------------------------------------- ^
> freebsd-uapi
>
> Regards,
> Kamil
>
> > +endif
> >
> > inc_for_gtkdoc = include_directories('lib')
> >
> > --
> > 2.37.3
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/igt-dev/attachments/20221017/ec09cf5a/attachment-0001.htm>
More information about the igt-dev
mailing list