X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmapi%2Fes1api%2Fmeson.build;h=711048421b80288664b96839e7fbc117582e5623;hb=2f652e0b3691e94d6a81e37985741d35561b2312;hp=150f62f46d148fb3effd2bfecefd0bc2392cac8a;hpb=6f305d0c617d9bcfd7446554bc2ae8691b5b4d7a;p=mesa.git diff --git a/src/mapi/es1api/meson.build b/src/mapi/es1api/meson.build index 150f62f46d1..711048421b8 100644 --- a/src/mapi/es1api/meson.build +++ b/src/mapi/es1api/meson.build @@ -27,11 +27,19 @@ es1_glapi_mapi_tmp_h = custom_target( capture : true, ) +_es1_c_args = [] +if with_platform_windows + _es1_c_args += ['-D_GDI32_', '-DBUILD_GL32'] +endif + libglesv1_cm = shared_library( 'GLESv1_CM' + get_option('gles-lib-suffix'), ['../entry.c', es1_glapi_mapi_tmp_h], c_args : [ - c_msvc_compat_args, c_vis_args, '-DMAPI_MODE_BRIDGE', + c_msvc_compat_args, + c_vis_args, + _es1_c_args, + '-DMAPI_MODE_BRIDGE', '-DMAPI_ABI_HEADER="@0@"'.format(es1_glapi_mapi_tmp_h.full_path()), gcc_lto_quirk, ], @@ -39,7 +47,9 @@ libglesv1_cm = shared_library( include_directories : [inc_src, inc_include, inc_mapi], link_with : libglapi, dependencies : [dep_thread, dep_libdrm, dep_m, dep_dl], + soversion : host_machine.system() == 'windows' ? '' : '1', version : '1.1.0', + name_prefix : 'lib', install : true, ) @@ -52,14 +62,14 @@ pkg.generate( libraries_private : gl_priv_libs, ) -if with_tests and prog_nm.found() +if with_symbols_check test( 'es1-ABI-check', symbols_check, args : [ '--lib', libglesv1_cm, '--symbols-file', files('gles1-symbols.txt'), - '--nm', prog_nm.path(), + symbols_check_args, ], suite : ['mapi'], )