From 68d86cbc5906b6821fd2d44080634891fb9f3fab Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Sun, 27 Jan 2019 21:57:28 -0800 Subject: Ported BUILD file fixes for google3 to arrayapi branch. --- tools/amalgamate.py | 4 ++-- tools/make_cmakelists.py | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'tools') 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): -- cgit v1.2.3