summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/make_cmakelists.py44
1 files changed, 23 insertions, 21 deletions
diff --git a/tools/make_cmakelists.py b/tools/make_cmakelists.py
index 2b426b5..0d5640d 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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback