17ec681f3Smrg# Copyright © 2017, 2019 Intel Corporation 27ec681f3Smrg 37ec681f3Smrg# Permission is hereby granted, free of charge, to any person obtaining a copy 47ec681f3Smrg# of this software and associated documentation files (the "Software"), to deal 57ec681f3Smrg# in the Software without restriction, including without limitation the rights 67ec681f3Smrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 77ec681f3Smrg# copies of the Software, and to permit persons to whom the Software is 87ec681f3Smrg# furnished to do so, subject to the following conditions: 97ec681f3Smrg 107ec681f3Smrg# The above copyright notice and this permission notice shall be included in 117ec681f3Smrg# all copies or substantial portions of the Software. 127ec681f3Smrg 137ec681f3Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 147ec681f3Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 157ec681f3Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 167ec681f3Smrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 177ec681f3Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 187ec681f3Smrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 197ec681f3Smrg# SOFTWARE. 207ec681f3Smrg 217ec681f3Smrginc_st_omx = [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux] 227ec681f3Smrgdep_st_omx = [ 237ec681f3Smrg dep_omx, dep_x11_xcb, dep_xcb, dep_xcb_dri2, dep_xcb_dri3, dep_libdrm, 247ec681f3Smrg] 257ec681f3Smrg 267ec681f3Smrgfiles_omx = files( 277ec681f3Smrg 'vid_dec_common.c', 287ec681f3Smrg 'vid_dec_h264_common.c', 297ec681f3Smrg 'vid_enc_common.c', 307ec681f3Smrg 'vid_omx_common.c' 317ec681f3Smrg) 327ec681f3Smrg 337ec681f3Smrgif with_gallium_omx == 'bellagio' 347ec681f3Smrg files_omx += files( 357ec681f3Smrg 'bellagio/entrypoint.c', 367ec681f3Smrg 'bellagio/vid_dec.c', 377ec681f3Smrg 'bellagio/vid_dec_mpeg12.c', 387ec681f3Smrg 'bellagio/vid_dec_h264.c', 397ec681f3Smrg 'bellagio/vid_dec_h265.c', 407ec681f3Smrg 'bellagio/vid_dec_av1.c', 417ec681f3Smrg 'bellagio/vid_enc.c' 427ec681f3Smrg ) 437ec681f3Smrgelif with_gallium_omx == 'tizonia' 447ec681f3Smrg files_omx += files( 457ec681f3Smrg 'tizonia/entrypoint.c', 467ec681f3Smrg 'tizonia/h264d.c', 477ec681f3Smrg 'tizonia/h264dprc.c', 487ec681f3Smrg 'tizonia/h264dinport.c', 497ec681f3Smrg 'tizonia/h264e.c', 507ec681f3Smrg 'tizonia/h264eprc.c', 517ec681f3Smrg 'tizonia/h264einport.c', 527ec681f3Smrg 'tizonia/h264eoutport.c' 537ec681f3Smrg ) 547ec681f3Smrg inc_st_omx = [ 557ec681f3Smrg inc_st_omx, 567ec681f3Smrg inc_dri_common, 577ec681f3Smrg inc_loader, 587ec681f3Smrg inc_gbm, 597ec681f3Smrg inc_st_dri, 607ec681f3Smrg inc_egl, 617ec681f3Smrg inc_egl_dri2, 627ec681f3Smrg ] 637ec681f3Smrg dep_st_omx = [dep_st_omx, dep_omx_other] 647ec681f3Smrgendif 657ec681f3Smrg 667ec681f3Smrglibomx_st = static_library( 677ec681f3Smrg 'omx_st', 687ec681f3Smrg files_omx, 697ec681f3Smrg c_args : ['-fcommon'], 707ec681f3Smrg gnu_symbol_visibility : 'hidden', 717ec681f3Smrg include_directories : inc_st_omx, 727ec681f3Smrg dependencies : [dep_st_omx, idep_mesautil], 737ec681f3Smrg) 74