 4039153ca7
			
		
	
	4039153ca7
	
	
	
		
			
			The old code used repeated calls to `ToUnicodeEx` to populate the translation table, which is slow and buggy. The new code directly loads the layout driver DLLs from Windows. Associated issues: #2055 #1033 Merge request: !1051 GdkWin32Keymap cleanup Conform to C89, improve comments, whitespace
		
			
				
	
	
		
			62 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Meson
		
	
	
	
	
	
| gdk_win32_sources = files(
 | |
|   'gdkcursor-win32.c',
 | |
|   'gdkdevicemanager-win32.c',
 | |
|   'gdkdevice-virtual.c',
 | |
|   'gdkdevice-win32.c',
 | |
|   'gdkdevice-winpointer.c',
 | |
|   'gdkdevice-wintab.c',
 | |
|   'gdkdisplay-win32.c',
 | |
|   'gdkdisplaymanager-win32.c',
 | |
|   'gdkdnd-win32.c',
 | |
|   'gdkevents-win32.c',
 | |
|   'gdkgeometry-win32.c',
 | |
|   'gdkglcontext-win32.c',
 | |
|   'gdkglobals-win32.c',
 | |
|   'gdkkeys-win32.c',
 | |
|   'gdkkeys-win32-impl.c',
 | |
|   'gdkkeys-win32-impl-wow64.c',
 | |
|   'gdkmain-win32.c',
 | |
|   'gdkmonitor-win32.c',
 | |
|   'gdkproperty-win32.c',
 | |
|   'gdkscreen-win32.c',
 | |
|   'gdkselection-win32.c',
 | |
|   'gdktestutils-win32.c',
 | |
|   'gdkwin32id.c',
 | |
|   'gdkwin32langnotification.c',
 | |
|   'gdkwindow-win32.c',
 | |
| )
 | |
| 
 | |
| gdk_win32_public_headers = files(
 | |
|   'gdkwin32cursor.h',
 | |
|   'gdkwin32display.h',
 | |
|   'gdkwin32displaymanager.h',
 | |
|   'gdkwin32dnd.h',
 | |
|   'gdkwin32glcontext.h',
 | |
|   'gdkwin32keys.h',
 | |
|   'gdkwin32misc.h',
 | |
|   'gdkwin32monitor.h',
 | |
|   'gdkwin32screen.h',
 | |
|   'gdkwin32window.h',
 | |
| )
 | |
| 
 | |
| GDK_WIN32_CFLAGS = ['-DGDK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"', '-DINSIDE_GDK_WIN32']
 | |
| 
 | |
| if win32_has_egl
 | |
|   GDK_WIN32_CFLAGS += '-DGDK_WIN32_ENABLE_EGL'
 | |
| endif
 | |
| 
 | |
| 
 | |
| install_headers(gdk_win32_public_headers, subdir: 'gtk-3.0/gdk/win32')
 | |
| install_headers('gdkwin32.h', subdir: 'gtk-3.0/gdk')
 | |
| 
 | |
| gdk_win32_deps = [ # FIXME
 | |
|     pangowin32_dep,
 | |
|     meson.get_compiler('c').find_library('hid')
 | |
| ]
 | |
| 
 | |
| libgdk_win32 = static_library('gdk-win32',
 | |
|   gdk_win32_sources, gdkconfig, gdkenum_h,
 | |
|   include_directories: [confinc, gdkinc],
 | |
|   c_args: GDK_WIN32_CFLAGS,
 | |
|   dependencies: [gdk_deps, gdk_win32_deps])
 |