summaryrefslogtreecommitdiff
path: root/src/mapi/es1api
diff options
context:
space:
mode:
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,
],