meson: Fix Broadway builds
Make sure the source files are in line with GTK+-3.x Broadway backend sources.
This commit is contained in:
committed by
Christoph Reiter
parent
4da82356bc
commit
b0a31fefd7
21
gdk/broadway/gen-c-array.py
Normal file
21
gdk/broadway/gen-c-array.py
Normal file
@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--array-name', help='The name of the array variable')
|
||||
parser.add_argument('--output', metavar='FILE', help='Output file',
|
||||
type=argparse.FileType('w'),
|
||||
default=sys.stdout)
|
||||
parser.add_argument('input', metavar='FILE', help='The input file',
|
||||
type=argparse.FileType('r'))
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
args.output.write('static const char {}[] = {{\n'.format(args.array_name))
|
||||
for line in args.input:
|
||||
for ch in line:
|
||||
args.output.write(' 0x{:02x},\n'.format(ord(ch)))
|
||||
|
||||
args.output.write('};')
|
||||
@ -19,9 +19,10 @@ gdk_broadway_sources = files(
|
||||
|
||||
gdk_broadway_public_headers = files(
|
||||
'gdkbroadwaydisplay.h',
|
||||
'gdkbroadwaysurface.h',
|
||||
'gdkbroadwaywindow.h',
|
||||
'gdkbroadwaycursor.h',
|
||||
'gdkbroadwaymonitor.h',
|
||||
'gdkbroadwayvisual.h',
|
||||
)
|
||||
|
||||
# Broadway backend headers aren't installed it seems
|
||||
@ -67,11 +68,11 @@ libgdk_broadway = static_library('gdk-broadway',
|
||||
|
||||
# gtk4-broadwayd
|
||||
|
||||
broadwayd_syslib = os_win32 ? find_library('ws2_32') : shmlib
|
||||
broadwayd_syslib = os_win32 ? cc.find_library('ws2_32') : shmlib
|
||||
|
||||
executable('broadwayd',
|
||||
clienthtml_h, broadwayjs_h,
|
||||
'broadwayd.c', 'broadway-server.c', 'broadway-output.c',
|
||||
'broadwayd.c', 'broadway-server.c', 'broadway-buffer.c', 'broadway-output.c',
|
||||
include_directories: [confinc, gdkinc, include_directories('.')],
|
||||
c_args: ['-DGDK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"', ],
|
||||
dependencies : [broadwayd_syslib, gdk_deps],
|
||||
|
||||
@ -836,10 +836,6 @@ if wayland_enabled
|
||||
gtk_sources += gtk_use_wayland_sources
|
||||
endif
|
||||
|
||||
if broadway_enabled
|
||||
gtk_sources += ['gtkimcontextbroadway.c']
|
||||
endif
|
||||
|
||||
if win32_enabled
|
||||
gtk_cargs += []
|
||||
gtk_sources += gtk_use_win32_sources
|
||||
|
||||
Reference in New Issue
Block a user