1# Copyright © 2018 Intel Corporation 2# SPDX-License-Identifier: MIT 3 4inc_wgl = include_directories('.') 5_c_args_wgl = [] 6if not with_shared_glapi 7 # prevent _glapi_* from being declared __declspec(dllimport) 8 _c_args_wgl += '-D_GLAPI_NO_EXPORTS' 9endif 10 11_wgl_deps = [idep_xmlconfig, driver_zink, idep_mesautilformat] 12if with_gallium_zink 13 _wgl_deps += idep_vulkan_wsi_defines 14endif 15 16files_libwgl = files( 17 'stw_context.c', 18 'stw_device.c', 19 'stw_ext_context.c', 20 'stw_ext_extensionsstring.c', 21 'stw_ext_interop.c', 22 'stw_ext_pbuffer.c', 23 'stw_ext_pixelformat.c', 24 'stw_ext_rendertexture.c', 25 'stw_ext_swapinterval.c', 26 'stw_framebuffer.c', 27 'stw_getprocaddress.c', 28 'stw_image.c', 29 'stw_nopfuncs.c', 30 'stw_nopfuncs.h', 31 'stw_pixelformat.c', 32 'stw_st.c', 33 'stw_tls.c', 34) 35 36if target_machine.system().startswith('Gaming.Xbox') 37 files_libwgl += files('stw_gdishim.c') 38endif 39 40libwgl = static_library( 41 'wgl', 42 files_libwgl, 43 c_args : [ 44 '-D_GDI32_', # prevent wgl* being declared __declspec(dllimport) 45 _c_args_wgl 46 ], 47 include_directories : [ 48 inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_mapi, inc_mesa, 49 ], 50 dependencies : _wgl_deps, 51) 52