Path: blob/21.2-virgl/src/mapi/es2api/meson.build
4560 views
# Copyright © 2017 Intel Corporation12# Permission is hereby granted, free of charge, to any person obtaining a copy3# of this software and associated documentation files (the "Software"), to deal4# in the Software without restriction, including without limitation the rights5# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell6# copies of the Software, and to permit persons to whom the Software is7# furnished to do so, subject to the following conditions:89# The above copyright notice and this permission notice shall be included in10# all copies or substantial portions of the Software.1112# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR13# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,14# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE15# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER16# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,17# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE18# SOFTWARE.1920es2_glapi_mapi_tmp_h = custom_target(21'es2_glapi_mapi_tmp.h',22input : [glapi_gen_mapi_py, glapi_gen_gl_xml],23output : 'glapi_mapi_tmp.h',24command : [prog_python, '@INPUT0@', 'glesv2', '@INPUT1@'],25depend_files : glapi_gen_mapi_deps,26capture : true,27)2829_es2_c_args = []30if with_platform_windows31_es2_c_args += ['-D_GDI32_', '-DBUILD_GL32']32endif3334libgles2 = shared_library(35'GLESv2' + get_option('gles-lib-suffix'),36['../entry.c', es2_glapi_mapi_tmp_h],37c_args : [38c_msvc_compat_args,39_es2_c_args,40'-DMAPI_MODE_BRIDGE',41'-DMAPI_ABI_HEADER="@0@"'.format(es2_glapi_mapi_tmp_h.full_path()),42gcc_lto_quirk,43],44gnu_symbol_visibility : 'hidden',45link_args : [ld_args_gc_sections],46include_directories : [inc_src, inc_include, inc_mapi],47link_with : libglapi,48dependencies : [dep_thread, dep_libdrm, dep_m, dep_dl],49soversion : host_machine.system() == 'windows' ? '' : '2',50version : '2.0.0',51darwin_versions : '3.0.0',52name_prefix : 'lib',53install : true,54)5556pkg.generate(57name : 'glesv2',58filebase : 'glesv2',59description : 'Mesa OpenGL ES 2.0 library',60version : meson.project_version(),61libraries : libgles2,62libraries_private : gl_priv_libs,63)6465if with_symbols_check66test(67'es2-ABI-check',68symbols_check,69args : [70'--lib', libgles2,71'--symbols-file', files('gles2-symbols.txt'),72symbols_check_args,73],74suite : ['mapi'],75)76endif777879