Wireshark mailing list archives

Re: asn2wrs.py no longer seems to generate the same code ...


From: Richard Sharpe <realrichardsharpe () gmail com>
Date: Fri, 15 May 2020 15:46:27 -0700

On Fri, May 15, 2020 at 3:33 PM Peter Wu <peter () lekensteyn nl> wrote:

The "asn1" target rebuilds all asn1 dissectors.
Alternatively to rebuild a specific one, use a target such as "generate_dissector-pkcs1".

Sure, but there seems to be multiple issues.

1. The 'documented' command placed in the generated source does not
generate the same source:
2. make asn1 modifies the source directory, but it seems to me that it
should not do that because that breaks one of the out-of-tree
guarantees that cmake gives you.

Example:

    mkdir build
    cd build
    cmake ..
    cmake --build . --target generate_dissector-pkcs1

Or if you use ninja:

    mkdir build
    cd build
    cmake -GNinja ..
    ninja generate_dissector-pkcs1

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: