diff options
author | Dylan Baker <[email protected]> | 2017-10-20 15:57:15 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2017-10-23 11:45:55 -0700 |
commit | d4567efa5ca5383fd5576b8871b3abc05e085360 (patch) | |
tree | 075c82bd1bb695392d2985a4426396796940eb31 /src | |
parent | 51558a1d6ca43b201362b3b64c751cfc93584346 (diff) |
meson: build imx driver
Signed-off-by: Dylan Baker <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/meson.build | 4 | ||||
-rw-r--r-- | src/gallium/targets/dri/meson.build | 5 | ||||
-rw-r--r-- | src/gallium/winsys/imx/drm/meson.build | 28 |
3 files changed, 36 insertions, 1 deletions
diff --git a/src/gallium/meson.build b/src/gallium/meson.build index cc823ca2e4f..4f39e6dad37 100644 --- a/src/gallium/meson.build +++ b/src/gallium/meson.build @@ -61,13 +61,15 @@ endif if with_gallium_etnaviv subdir('winsys/etnaviv/drm') endif +if with_gallium_imx + subdir('winsys/imx/drm') +endif subdir('state_trackers/dri') # TODO: freedreno # TODO: i915 # TODO: SVGA # TODO: r300 # TODO: r600 -# TODO: IMX # TODO: SWR # TODO: virgl # TODO: winsys/sw/xlib diff --git a/src/gallium/targets/dri/meson.build b/src/gallium/targets/dri/meson.build index 9640e8acbab..1517fcc5d3c 100644 --- a/src/gallium/targets/dri/meson.build +++ b/src/gallium/targets/dri/meson.build @@ -96,6 +96,11 @@ if with_gallium_etnaviv gallium_dri_link_with += [libetnaviv, libetnavivdrm] gallium_dri_drivers += 'etnaviv_dri.so' endif +if with_gallium_imx + gallium_dri_c_args += '-DGALLIUM_IMX' + gallium_dri_link_with += libimxdrm + gallium_dri_drivers += 'imx-drm_dri.so' +endif if with_gallium_vc4 or with_gallium_vc5 gallium_dri_link_with += libbroadcom_cle diff --git a/src/gallium/winsys/imx/drm/meson.build b/src/gallium/winsys/imx/drm/meson.build new file mode 100644 index 00000000000..468345476ec --- /dev/null +++ b/src/gallium/winsys/imx/drm/meson.build @@ -0,0 +1,28 @@ +# Copyright © 2017 Intel Corporation + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: + +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +libimxdrm = static_library( + 'imxdrm', + 'imx_drm_winsys.c', + include_directories : [ + inc_include, inc_src, inc_gallium, inc_gallium_aux, + include_directories('../..'), + ], +) |