Flutter Engine
The Flutter Engine
Functions | Variables
gen Namespace Reference

Functions

def get_files (path, exclude=[])
 

Variables

 gn_in = open("BUILD.input.gn", "rb")
 
 gn_file = gn_in.read()
 
 gn_out = open("BUILD.gn", "wb")
 

Function Documentation

◆ get_files()

def gen.get_files (   path,
  exclude = [] 
)

Definition at line 9 of file gen.py.

9def get_files(path, exclude=[]):
10 cmd = ["git", "ls-files", "--"]
11 for ex in exclude:
12 cmd.append(":!%s" % ex)
13 cmd.append(path)
14 git_ls = subprocess.Popen(
15 cmd,
16 stdout=subprocess.PIPE,
17 cwd=os.path.join(os.environ["FUCHSIA_DIR"], "third_party", "protobuf"))
18 sed1 = subprocess.Popen(
19 ["sed", "s/^/\"/"], stdin=git_ls.stdout, stdout=subprocess.PIPE)
20 return subprocess.check_output(["sed", "s/$/\",/"], stdin=sed1.stdout)
21
22
def get_files(path, exclude=[])
Definition: gen.py:9

Variable Documentation

◆ gn_file

gen.gn_file = gn_in.read()

Definition at line 5 of file gen.py.

◆ gn_in

gen.gn_in = open("BUILD.input.gn", "rb")

Definition at line 4 of file gen.py.

◆ gn_out

gen.gn_out = open("BUILD.gn", "wb")

Definition at line 40 of file gen.py.