summaryrefslogtreecommitdiff
path: root/tools/make_cmakelists.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/make_cmakelists.py')
-rwxr-xr-xtools/make_cmakelists.py59
1 files changed, 35 insertions, 24 deletions
diff --git a/tools/make_cmakelists.py b/tools/make_cmakelists.py
index d863e7e..86544cb 100755
--- a/tools/make_cmakelists.py
+++ b/tools/make_cmakelists.py
@@ -59,27 +59,29 @@ class BuildFileFunctions(object):
pass
def cc_test(self, **kwargs):
- self.converter.toplevel += "add_executable(%s\n %s)\n" % (
- kwargs["name"],
- "\n ".join(kwargs["srcs"])
- )
- self.converter.toplevel += "add_test(NAME %s COMMAND %s)\n" % (
- kwargs["name"],
- kwargs["name"],
- )
-
- if "data" in kwargs:
- for data_dep in kwargs["data"]:
- self.converter.toplevel += textwrap.dedent("""\
- add_custom_command(
- TARGET %s POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy
- ${CMAKE_SOURCE_DIR}/%s
- ${CMAKE_CURRENT_BINARY_DIR}/%s)\n""" % (
- kwargs["name"], data_dep, data_dep
- ))
-
- self._add_deps(kwargs)
+ # Disable this until we properly support upb_proto_library().
+ # self.converter.toplevel += "add_executable(%s\n %s)\n" % (
+ # kwargs["name"],
+ # "\n ".join(kwargs["srcs"])
+ # )
+ # self.converter.toplevel += "add_test(NAME %s COMMAND %s)\n" % (
+ # kwargs["name"],
+ # kwargs["name"],
+ # )
+
+ # if "data" in kwargs:
+ # for data_dep in kwargs["data"]:
+ # self.converter.toplevel += textwrap.dedent("""\
+ # add_custom_command(
+ # TARGET %s POST_BUILD
+ # COMMAND ${CMAKE_COMMAND} -E copy
+ # ${CMAKE_SOURCE_DIR}/%s
+ # ${CMAKE_CURRENT_BINARY_DIR}/%s)\n""" % (
+ # kwargs["name"], data_dep, data_dep
+ # ))
+
+ # self._add_deps(kwargs)
+ pass
def py_library(self, **kwargs):
pass
@@ -120,18 +122,27 @@ class BuildFileFunctions(object):
def upb_proto_library(self, **kwargs):
pass
+ def upb_proto_reflection_library(self, **kwargs):
+ pass
+
def genrule(self, **kwargs):
pass
- def glob(self, *args):
+ def config_setting(self, **kwargs):
+ pass
+
+ def select(self, arg_dict):
return []
- def map_dep(self, dep):
- return dep
+ def glob(self, *args):
+ return []
def licenses(self, *args):
pass
+ def map_dep(self, arg):
+ return arg
+
class WorkspaceFileFunctions(object):
def __init__(self, converter):
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback