aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-11-23 01:05:34 +0000
committerJoão Valverde <j@v6e.pt>2017-11-23 01:18:11 +0000
commitc369db08eaecfd1ad6b87d43b1b99be0224752f4 (patch)
treefc2902099493768baeb8cb3d664f94279763bd71
parent2add5e701f3d7e397ef46f144e206fe4c127e9cb (diff)
Add comment with motive for dissectors.c.in
Change-Id: I825d4654aa76fee7288dc98eb7a92fe136d7542e Reviewed-on: https://code.wireshark.org/review/24542 Reviewed-by: João Valverde <j@v6e.pt>
-rw-r--r--epan/dissectors/CMakeLists.txt4
-rw-r--r--epan/dissectors/Makefile.am3
2 files changed, 7 insertions, 0 deletions
diff --git a/epan/dissectors/CMakeLists.txt b/epan/dissectors/CMakeLists.txt
index 443a8be..588484a 100644
--- a/epan/dissectors/CMakeLists.txt
+++ b/epan/dissectors/CMakeLists.txt
@@ -1863,6 +1863,10 @@ set(ALL_DISSECTOR_SRC
add_executable(make-dissectors make-dissectors.c)
target_link_libraries(make-dissectors ${GLIB2_LIBRARIES})
+#
+# We pass the arguments to make-dissectors in a file to avoid limitations
+# with the number of arguments handled by main().
+#
file(GENERATE
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/dissectors.c.in"
CONTENT "$<JOIN:${ALL_DISSECTOR_SRC}, >"
diff --git a/epan/dissectors/Makefile.am b/epan/dissectors/Makefile.am
index e5638bf..5a4b231 100644
--- a/epan/dissectors/Makefile.am
+++ b/epan/dissectors/Makefile.am
@@ -1937,6 +1937,9 @@ x11-dissector: $(top_srcdir)/tools/process-x11-fields.pl $(srcdir)/x11-fields $(
#
# ALL_DISSECTORS_SRC is assumed to have all the files that need to be scanned.
#
+# We pass the arguments to make-dissectors in a file to avoid limitations
+# with the number of arguments handled by main().
+#
dissectors.c: make-dissectors $(ALL_DISSECTORS_SRC)
@echo Making dissectors.c
@echo $(filter %.c,$^) > $@.in ; \