diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-04-23 14:25:45 +0200 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-04-23 14:25:45 +0200 |
commit | e8bb2fd4a117f1a019d618a207e1de4a30d72c20 (patch) | |
tree | e01e74f892085cad21f37113bfa08fe6840ea859 /packaging/WiX/create_msi.cmake.in | |
parent | e427d8b33a1c20e4823b34d6b3cd6406276f6c57 (diff) | |
download | mariadb-git-e8bb2fd4a117f1a019d618a207e1de4a30d72c20.tar.gz |
Create MySQL data folder in %ProgramData% directory.
Note that a read only copy will still exist in the ProgramFiles directory
(so it can be reused for other instances)
Diffstat (limited to 'packaging/WiX/create_msi.cmake.in')
-rw-r--r-- | packaging/WiX/create_msi.cmake.in | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/packaging/WiX/create_msi.cmake.in b/packaging/WiX/create_msi.cmake.in index 92bba7d34e9..dc60123b58a 100644 --- a/packaging/WiX/create_msi.cmake.in +++ b/packaging/WiX/create_msi.cmake.in @@ -274,21 +274,24 @@ FILE(APPEND directories.wxs "</DirectoryRef>\n") FILE(READ directories.wxs CPACK_WIX_DIRECTORIES)
FILE(REMOVE directories.wxs)
+
+FOREACH(src ${CPACK_WIX_INCLUDE})
+SET(CPACK_WIX_INCLUDES
+"${CPACK_WIX_INCLUDES}
+ <?include ${src}?>"
+)
+ENDFOREACH()
+
+
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_server.wxs.in
${CMAKE_CURRENT_BINARY_DIR}/mysql_server.wxs)
-
-
-SET(WXS_FILES ${CMAKE_CURRENT_BINARY_DIR}/mysql_server.wxs ${CPACK_WIX_EXTRA_SOURCE})
-SET(WIXOBJ_NATIVE_FILES)
-SET(WXS_NATIVE_FILES)
-FOREACH(f "${WXS_FILES}")
- FILE(TO_NATIVE_PATH "${f}" f)
- EXECUTE_PROCESS(COMMAND ${CANDLE_EXECUTABLE} ${f})
- STRING(REPLACE ".wxs" ".wixobj" f "${f}")
- LIST(APPEND WIXOBJ_NATIVE_FILES ${f})
-ENDFOREACH()
+FILE(REMOVE mysql_server.wixobj)
+EXECUTE_PROCESS(
+ COMMAND ${CANDLE_EXECUTABLE} -ext WixUtilExtension mysql_server.wxs
+)
EXECUTE_PROCESS(
- COMMAND ${LIGHT_EXECUTABLE} -ext WixUIExtension ${WIXOBJ_NATIVE_FILES} -out ${CPACK_PACKAGE_FILE_NAME}.msi
+ COMMAND ${LIGHT_EXECUTABLE} -ext WixUIExtension -ext WixUtilExtension
+ mysql_server.wixobj -out ${CPACK_PACKAGE_FILE_NAME}.msi
)
|