diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-11-24 23:18:44 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-11-26 12:37:21 +0000 |
commit | a198f47c06723fabef174cb3983b26ead24f5bc9 (patch) | |
tree | 8fec7948b5f82c067a8f23bb54c138e493410cee /asn1/camel | |
parent | edb33883032ed8af3ca33df4250d7a12f2f48b53 (diff) |
cmake: add asn1 target, avoid unnecessary rebuilds
Add an "asn1" build target that rebuilds all ASN.1 dissectors.
Do not always generate the ASN.1 dissector when invoking the
"generate_dissector-PROTO" target. Use a special "packet-PROTO-stamp"
file to detect whether the dissector is out of date.
This indirection is needed because cmake removes output files from
add_custom_command in the clean target, but we would like to keep the
generated packet-PROTO.c files.
Make all EXTRA_CNF and EXPORT_DEPENDS point to absolute paths for
generated exported configs (PROTO-exp.cnf). This is done by automake too
and is needed for proper dependency tracking. Example: when h225.cnf is
updated, h225-exp.cnf needs to be generated. That is the purpose of the
"generate-h225-exp.cnf" target. Now h235 (and other) dissectors need to
be regenerated as well because the h225-exp.cnf is updated. This is why
there is a separate add_custom_command and add_custom_target.
Change-Id: I8cfc1f8f43cea595267b21eae30b4548f3407c0b
Reviewed-on: https://code.wireshark.org/review/12080
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'asn1/camel')
-rw-r--r-- | asn1/camel/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1/camel/CMakeLists.txt b/asn1/camel/CMakeLists.txt index fe12367bf9..8aa9bb8329 100644 --- a/asn1/camel/CMakeLists.txt +++ b/asn1/camel/CMakeLists.txt @@ -63,8 +63,8 @@ set( SRC_FILES set( A2W_FLAGS -b -L ) set( EXTRA_CNF - inap-exp.cnf - gsm_map-exp.cnf + "${CMAKE_CURRENT_BINARY_DIR}/../inap/inap-exp.cnf" + "${CMAKE_CURRENT_BINARY_DIR}/../gsm_map/gsm_map-exp.cnf" ) ASN2WRS() |