summaryrefslogtreecommitdiff
path: root/src/mapi/es1api
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-04-18 13:22:35 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-10-10 16:33:04 -0700
commit2e17348600d50501f837d0ad5ef6570212672555 (patch)
tree12b3836b10f3d5c6a9a97b75bb5303d12621bbe9 /src/mapi/es1api
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 <eric@anholt.net> (v2) Acked-by: Kristian H. Kristensen <hoegsberg@google.com> v5: - key NO_EXPORT off of shared-glapi instead of gles
Diffstat (limited to 'src/mapi/es1api')
-rw-r--r--src/mapi/es1api/meson.build10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mapi/es1api/meson.build b/src/mapi/es1api/meson.build
index 150f62f46d1..79f37970790 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,
],