forked from AuroraMiddleware/gtk
meson: Really fix Broadway builds
We must also feed rawinflate.min.js into gen-c-array.py, so that the windows really show up in the browser when running GTK programs using broadway.
This commit is contained in:
parent
7586e88204
commit
c1e40a5fbd
@ -9,13 +9,14 @@ 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'))
|
||||
type=argparse.FileType('r'), nargs='+')
|
||||
|
||||
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)))
|
||||
for input in args.input:
|
||||
for line in input:
|
||||
for ch in line:
|
||||
args.output.write(' 0x{:02x},\n'.format(ord(ch)))
|
||||
|
||||
args.output.write('};')
|
||||
|
@ -45,13 +45,13 @@ clienthtml_h = custom_target('clienthtml.h',
|
||||
)
|
||||
|
||||
broadwayjs_h = custom_target('broadwayjs.h',
|
||||
input : ['broadway.js'],
|
||||
input : ['broadway.js', 'rawinflate.min.js'],
|
||||
output : 'broadwayjs.h',
|
||||
command : [
|
||||
gen_c_array,
|
||||
'--array-name=broadway_js',
|
||||
'--output=@OUTPUT@',
|
||||
'@INPUT0@',
|
||||
'@INPUT0@','@INPUT1@',
|
||||
],
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user