Generate plugin/gtmcrypt/source.tar

This commit is contained in:
Brad King 2012-06-15 16:48:15 -04:00
parent fb12b8cea8
commit 68f30307f9
1 changed files with 28 additions and 16 deletions

View File

@ -298,22 +298,34 @@ set_target_properties(maskpass PROPERTIES
install(TARGETS maskpass DESTINATION ${GTM_INSTALL_DIR}/plugin/gtmcrypt)
# these files need to end up in ${GTM_INSTALL_DIR}/plugin/gtmcrypt/source.tar
#foreach(encryptsource
# gtmcrypt_ref.c
# gtmcrypt_ref.h
# gtmcrypt_interface.h
# gtmxc_types.h
# maskpass.c
# gtmcrypt_dbk_ref.c
# gtmcrypt_dbk_ref.h
# gtmcrypt_pk_ref.c
# gtmcrypt_pk_ref.h
# gtmcrypt_sym_ref.h
# install.sh
# build.sh
# pinentry.m
# )
#endforeach()
set(gtmcrypt_source_tar
gtmcrypt_ref.c
gtmcrypt_ref.h
gtmcrypt_interface.h
gtmxc_types.h
maskpass.c
gtmcrypt_dbk_ref.c
gtmcrypt_dbk_ref.h
gtmcrypt_pk_ref.c
gtmcrypt_pk_ref.h
gtmcrypt_sym_ref.h
install.sh
build.sh
pinentry.m
)
foreach(f ${gtmcrypt_source_tar})
list(APPEND gtmcrypt_source_tar_depends ${GTM_SOURCE_DIR}/sr_unix/${f})
endforeach()
add_custom_command(
OUTPUT plugin/gtmcrypt/source.tar
DEPENDS ${gtmcrypt_source_tar_depends}
COMMAND tar cf ${GTM_BINARY_DIR}/plugin/gtmcrypt/source.tar ${gtmcrypt_source_tar}
WORKING_DIRECTORY ${GTM_SOURCE_DIR}/sr_unix
VERBATIM
)
list(APPEND files_to_place plugin/gtmcrypt/source.tar)
install(FILES ${GTM_BINARY_DIR}/plugin/gtmcrypt/source.tar
DESTINATION ${GTM_INSTALL_DIR}/plugin/gtmcrypt)
foreach(f
add_db_key.sh