summaryrefslogtreecommitdiffstats
path: root/src/mapi/es2api
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2018-04-18 13:22:35 -0700
committerDylan Baker <[email protected]>2019-10-10 16:33:04 -0700
commit2e17348600d50501f837d0ad5ef6570212672555 (patch)
tree12b3836b10f3d5c6a9a97b75bb5303d12621bbe9 /src/mapi/es2api
parent3aee462781abc0bfcce207fb64f9199b43a57542 (diff)
meson: Add windows defines to glapi
These are needed to control the export or symbols due to differences between the way windows and *nix handle symbol exports. Reviewed-by: Eric Anholt <[email protected]> (v2) Acked-by: Kristian H. Kristensen <[email protected]> v5: - key NO_EXPORT off of shared-glapi instead of gles
Diffstat (limited to 'src/mapi/es2api')
-rw-r--r--src/mapi/es2api/meson.build10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mapi/es2api/meson.build b/src/mapi/es2api/meson.build
index 97e4ad25de6..4be142e846d 100644
--- a/src/mapi/es2api/meson.build
+++ b/src/mapi/es2api/meson.build
@@ -27,11 +27,19 @@ es2_glapi_mapi_tmp_h = custom_target(
capture : true,
)
+_es2_c_args = []
+if with_platform_windows
+ _es2_c_args += ['-D_GDI32_', '-DBUILD_GL32']
+endif
+
libgles2 = shared_library(
'GLESv2' + get_option('gles-lib-suffix'),
['../entry.c', es2_glapi_mapi_tmp_h],
c_args : [
- c_msvc_compat_args, c_vis_args, '-DMAPI_MODE_BRIDGE',
+ c_msvc_compat_args,
+ c_vis_args,
+ _es2_c_args,
+ '-DMAPI_MODE_BRIDGE',
'-DMAPI_ABI_HEADER="@0@"'.format(es2_glapi_mapi_tmp_h.full_path()),
gcc_lto_quirk,
],