Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
generate_headers.py
Go to the documentation of this file.
1#!/usr/bin/env python
2
3# Copyright 2023 Google LLC.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7'''
8Generate c header out of txt file
9
10Output is a header
11'''
12
13import subprocess
14import sys
15
16header = open(sys.argv[2], "w")
17code = subprocess.Popen(sys.argv[1], shell=True, universal_newlines=True, stdout=header, cwd=sys.argv[3])
18exit(code.wait())