diff options
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/CMakeLists.txt | 4 | ||||
-rw-r--r-- | epan/dissectors/Makefile.am | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/epan/dissectors/CMakeLists.txt b/epan/dissectors/CMakeLists.txt index 443a8be4d3..588484a6be 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 e5638bfca2..5a4b231c10 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 ; \ |