diff options
author | Josh Haberman <jhaberman@gmail.com> | 2019-01-27 21:57:28 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2019-01-27 21:57:28 -0800 |
commit | 68d86cbc5906b6821fd2d44080634891fb9f3fab (patch) | |
tree | 1033bf8b79ec94ca8bad111749f1aad1b62bb9f0 /tools | |
parent | 9ea6bb467810b958c8c2fb0bcf96d0af2b243801 (diff) |
Ported BUILD file fixes for google3 to arrayapi branch.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/amalgamate.py | 4 | ||||
-rwxr-xr-x | tools/make_cmakelists.py | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/tools/amalgamate.py b/tools/amalgamate.py index 4739a94..038c83f 100755 --- a/tools/amalgamate.py +++ b/tools/amalgamate.py @@ -16,11 +16,11 @@ class Amalgamator: self.output_h = open(output_path + "upb.h", "w") self.output_c = open(output_path + "upb.c", "w") - self.output_c.write("// Amalgamated source file\n") + self.output_c.write("/* Amalgamated source file */\n") self.output_c.write('#include "upb.h"\n') self.output_c.write(open("upb/port_def.inc").read()) - self.output_h.write("// Amalgamated source file\n") + self.output_h.write("/* Amalgamated source file */\n") self.output_h.write(open("upb/port_def.inc").read()) def finish(self): diff --git a/tools/make_cmakelists.py b/tools/make_cmakelists.py index b8f46b9..d863e7e 100755 --- a/tools/make_cmakelists.py +++ b/tools/make_cmakelists.py @@ -123,9 +123,15 @@ class BuildFileFunctions(object): def genrule(self, **kwargs): pass - def glob(*args): + def glob(self, *args): return [] + def map_dep(self, dep): + return dep + + def licenses(self, *args): + pass + class WorkspaceFileFunctions(object): def __init__(self, converter): |