diff options
Diffstat (limited to 'graphics/asymptote/cmake-scripts/win32-pre-nsis-installer.cmake')
-rw-r--r-- | graphics/asymptote/cmake-scripts/win32-pre-nsis-installer.cmake | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/graphics/asymptote/cmake-scripts/win32-pre-nsis-installer.cmake b/graphics/asymptote/cmake-scripts/win32-pre-nsis-installer.cmake index df0875a93b..3e5b8ccd33 100644 --- a/graphics/asymptote/cmake-scripts/win32-pre-nsis-installer.cmake +++ b/graphics/asymptote/cmake-scripts/win32-pre-nsis-installer.cmake @@ -62,6 +62,20 @@ install( ${ASY_NSIS_INSTALL_ARGUMENT} ) +# <build-root>/base/asy-{init,mode}.el -> <install-root>/ +install( + FILES + ${ASY_SOURCE_BASE_DIR}/asy-init.el + ${ASY_SOURCE_BASE_DIR}/asy-mode.el + ${ASY_NSIS_INSTALL_ARGUMENT} +) + +# misc files -> <install-root>/ +install( + FILES ${ASY_OUTPUT_MISC_FILES} + ${ASY_NSIS_INSTALL_ARGUMENT} +) + # extra doc files install( FILES @@ -114,6 +128,11 @@ if (ASY_TEX_BUILD_ROOT) add_dependencies(asy-pre-nsis-targets docgen) endif() +if (ENABLE_MISCFILES_GEN) + add_dependencies(asy-pre-nsis-targets asy-dist-misc-files) +endif() + + macro(install_from_external_documentation_dir docfile_name) set(DOCFILE_LOCATION ${EXTERNAL_DOCUMENTATION_DIR}/${docfile_name}) message(STATUS "Using external documentation file at ${DOCFILE_LOCATION}") @@ -163,6 +182,19 @@ else() action_if_component_not_buildable("asymptote.pdf cannot be found and is not buildable") endif() +# asy-keywords.el (and potentially other misc files) +if (ENABLE_MISCFILES_GEN) + install( + FILES ${ASY_OUTPUT_DIST_MISC_FILES} + ${ASY_NSIS_INSTALL_ARGUMENT} + ) +elseif(EXTERNAL_DOCUMENTATION_DIR) + install_from_external_documentation_dir(asy-keywords.el) +else() + action_if_component_not_buildable("Non-essential, non-documentation asymptote files cannot be found") +endif() + + # README files install( FILES |