mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Modified .pac file dependencies.
This commit is contained in:
parent
afb5bd8ce7
commit
049bda7078
1 changed files with 35 additions and 46 deletions
|
@ -118,9 +118,14 @@ foreach (bift ${BIF_SRCS})
|
||||||
bif_target(${bift})
|
bif_target(${bift})
|
||||||
endforeach ()
|
endforeach ()
|
||||||
|
|
||||||
|
|
||||||
########## targets that need binpac ##########
|
########## targets that need binpac ##########
|
||||||
|
|
||||||
|
set(BINPAC_AUXSRC
|
||||||
|
binpac.pac
|
||||||
|
bro.pac
|
||||||
|
binpac_bro.h
|
||||||
|
)
|
||||||
|
|
||||||
macro(BINPAC_TARGET pacFile)
|
macro(BINPAC_TARGET pacFile)
|
||||||
get_filename_component(basename ${pacFile} NAME_WE)
|
get_filename_component(basename ${pacFile} NAME_WE)
|
||||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${basename}_pac.h
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${basename}_pac.h
|
||||||
|
@ -128,8 +133,9 @@ macro(BINPAC_TARGET pacFile)
|
||||||
COMMAND ${BinPAC_EXE}
|
COMMAND ${BinPAC_EXE}
|
||||||
ARGS -d ${CMAKE_CURRENT_BINARY_DIR}
|
ARGS -d ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
-I ${CMAKE_CURRENT_SOURCE_DIR}
|
-I ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
${pacFile}
|
${CMAKE_CURRENT_SOURCE_DIR}/${pacFile}
|
||||||
DEPENDS ${BinPAC_EXE} ${pacFile}
|
DEPENDS ${BinPAC_EXE} ${pacFile}
|
||||||
|
${BINPAC_AUXSRC} ${ARGN}
|
||||||
COMMENT "[BINPAC] Processing ${pacFile}"
|
COMMENT "[BINPAC] Processing ${pacFile}"
|
||||||
)
|
)
|
||||||
list(APPEND ALL_BINPAC_OUTPUTS
|
list(APPEND ALL_BINPAC_OUTPUTS
|
||||||
|
@ -137,48 +143,33 @@ macro(BINPAC_TARGET pacFile)
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/${basename}_pac.cc)
|
${CMAKE_CURRENT_BINARY_DIR}/${basename}_pac.cc)
|
||||||
endmacro(BINPAC_TARGET)
|
endmacro(BINPAC_TARGET)
|
||||||
|
|
||||||
set(BINPAC_SRCS
|
binpac_target(binpac-lib.pac)
|
||||||
binpac-lib.pac
|
binpac_target(binpac_bro-lib.pac)
|
||||||
binpac_bro-lib.pac
|
binpac_target(bittorrent.pac
|
||||||
bittorrent.pac
|
bittorrent-protocol.pac bittorrent-analyzer.pac)
|
||||||
dce_rpc.pac
|
binpac_target(dce_rpc.pac
|
||||||
dce_rpc_simple.pac
|
dce_rpc-protocol.pac dce_rpc-analyzer.pac)
|
||||||
dhcp.pac
|
binpac_target(dce_rpc_simple.pac
|
||||||
dns.pac
|
dce_rpc-protocol.pac)
|
||||||
dns_tcp.pac
|
binpac_target(dhcp.pac
|
||||||
http.pac
|
dhcp-protocol.pac dhcp-analyzer.pac)
|
||||||
ncp.pac
|
binpac_target(dns.pac
|
||||||
netflow.pac
|
dns-protocol.pac dns-analyzer.pac)
|
||||||
rpc.pac
|
binpac_target(dns_tcp.pac
|
||||||
smb.pac
|
dns.pac)
|
||||||
ssl.pac
|
binpac_target(http.pac
|
||||||
ssl-record-layer.pac
|
http-protocol.pac http-analyzer.pac)
|
||||||
)
|
binpac_target(ncp.pac)
|
||||||
|
binpac_target(netflow.pac
|
||||||
set(BINPAC_AUXSRC
|
netflow-protocol.pac netflow-analyzer.pac)
|
||||||
binpac.pac
|
binpac_target(rpc.pac
|
||||||
bro.pac
|
rpc-analyzer.pac portmap-analyzer.pac)
|
||||||
binpac_bro.h
|
binpac_target(smb.pac
|
||||||
)
|
smb-protocol.pac smb-pipe.pac smb-mailslot.pac)
|
||||||
|
binpac_target(ssl.pac
|
||||||
set(BINPAC_RPC_AUXSRC
|
ssl-defs.pac ssl-protocol.pac ssl-analyzer.pac)
|
||||||
bittorrent-protocol.pac bittorrent-analyzer.pac
|
binpac_target(ssl-record-layer.pac
|
||||||
dce_rpc-analyzer.pac dce_rpc-protocol.pac
|
ssl-defs.pac ssl.pac)
|
||||||
dhcp-analyzer.pac dhcp-protocol.pac
|
|
||||||
dns-analyzer.pac dns-protocol.pac
|
|
||||||
epmapper.pac
|
|
||||||
http-analyzer.pac http-protocol.pac http.pac
|
|
||||||
netflow-protocol.pac netflow-analyzer.pac
|
|
||||||
portmap-protocol.pac portmap-analyzer.pac
|
|
||||||
rpc-protocol.pac rpc-analyzer.pac
|
|
||||||
smb-protocol.pac smb-mailslot.pac smb-pipe.pac
|
|
||||||
ssl.pac ssl-analyzer.pac ssl-defs.pac
|
|
||||||
ssl-protocol.pac ssl-record-layer.pac
|
|
||||||
)
|
|
||||||
|
|
||||||
foreach (binpact ${BINPAC_SRCS})
|
|
||||||
binpac_target(${CMAKE_CURRENT_SOURCE_DIR}/${binpact})
|
|
||||||
endforeach ()
|
|
||||||
|
|
||||||
########### bro target ###############
|
########### bro target ###############
|
||||||
|
|
||||||
|
@ -203,8 +194,6 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/DebugCmdConstants.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set(bro_SRCS
|
set(bro_SRCS
|
||||||
${BINPAC_AUXSRC}
|
|
||||||
${BINPAC_RPC_AUXSRC}
|
|
||||||
${ALL_BIF_OUTPUTS}
|
${ALL_BIF_OUTPUTS}
|
||||||
${ALL_BINPAC_OUTPUTS}
|
${ALL_BINPAC_OUTPUTS}
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/version.c
|
${CMAKE_CURRENT_BINARY_DIR}/version.c
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue