Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
luyikei
VLMC
Commits
44afa94b
Commit
44afa94b
authored
Mar 28, 2010
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nsis: clean the destination before building the new installer
parent
b3edd640
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
nsis/CMakeLists.txt
nsis/CMakeLists.txt
+6
-1
nsis/installer.nsi
nsis/installer.nsi
+1
-1
No files found.
nsis/CMakeLists.txt
View file @
44afa94b
# Output file name
SET
(
NSIS_OUTPUT_FILE
"
${
PROJECT_NAME
}
.exe"
)
# NSIS is only available for Win32 builds (native or cross compilation)
IF
(
WIN32
)
...
...
@@ -17,7 +20,9 @@ IF(WIN32)
# Copy and configure the nsis script file
CONFIGURE_FILE
(
installer.nsi
"
${
CMAKE_BINARY_DIR
}
/bin/installer.nsi"
@ONLY
)
ADD_CUSTOM_TARGET
(
installer makensis
"
${
CMAKE_BINARY_DIR
}
/bin/installer.nsi"
ADD_CUSTOM_TARGET
(
installer
${
CMAKE_COMMAND
}
-E remove
"
${
CMAKE_BINARY_DIR
}
/bin/
${
NSIS_OUTPUT_FILE
}
"
COMMAND makensis
"
${
CMAKE_BINARY_DIR
}
/bin/installer.nsi"
WORKING_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/bin/"
)
...
...
nsis/installer.nsi
View file @
44afa94b
Name "VideoLAN Movie Creator"
OutFile "@
PROJECT_NAME@.exe
"
OutFile "@
NSIS_OUTPUT_FILE@
"
InstallDir "$PROGRAMFILES\@PROJECT_NAME_SHORT@"
InstallDirRegKey HKLM "Software\@PROJECT_NAME_SHORT@" "Install_Dir"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment