Skip to content

Commit

Permalink
update package target for mingw-cross builds to handle updated file l…
Browse files Browse the repository at this point in the history
…ocations
  • Loading branch information
akohlmey committed Aug 4, 2022
1 parent 36da45f commit cbbecdb
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 26 deletions.
11 changes: 6 additions & 5 deletions USER-AEAM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
endif()
if(BUILD_MPI)
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION}-MPI aeamplugin.nsis
DEPENDS aeamplugin
BYPRODUCTS LAMMPS-USER-AEAM-plugin-${LAMMPS_VERSION}-MPI.exe)
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
DEPENDS aeamplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/aeamplugin.nsis
BYPRODUCTS ${CMAKE_BINARY_DIR}/LAMMPS-USER-AEAM-plugin-${LAMMPS_VERSION}-MPI.exe)
else()
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION} aeamplugin.nsis
COMMAND ${CMAKE_COMMAND} -E echo ${PWD}
DEPENDS aeamplugin lammps.ico lammps-text-logo-wide.bmp aeamplugin.nsis
BYPRODUCTS LAMMPS-USER-AEAM-plugin-${LAMMPS_VERSION}.exe)
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
DEPENDS aeamplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/aeamplugin.nsis
BYPRODUCTS ${CMAKE_BINARY_DIR}/LAMMPS-USER-AEAM-plugin-${LAMMPS_VERSION}.exe)
endif()
endif()
else()
Expand Down
12 changes: 6 additions & 6 deletions USER-AEAM/aeamplugin.nsis
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ ${If} $0 != "admin"
${EndIf}
!macroend

!define PACEPLUGIN "LAMMPS USER-AEAM Plugin ${VERSION}"
!define AEAMPLUGIN "LAMMPS USER-AEAM Plugin ${VERSION}"
OutFile "LAMMPS-USER-AEAM-plugin-${VERSION}.exe"

Name "${PACEPLUGIN}"
InstallDir "$LOCALAPPDATA\${PACEPLUGIN}"
Name "${AEAMPLUGIN}"
InstallDir "$LOCALAPPDATA\${AEAMPLUGIN}"

ShowInstDetails show
ShowUninstDetails show
Expand Down Expand Up @@ -80,7 +80,7 @@ function .onInit
setShellVarContext all
functionEnd

Section "${PACEPLUGIN}" SecPaceplugin
Section "${AEAMPLUGIN}" SecPaceplugin
SectionIn RO
# Write LAMMPS installation bitness marker. Always use 32-bit registry view
SetRegView 32
Expand All @@ -97,9 +97,9 @@ Section "${PACEPLUGIN}" SecPaceplugin

# Register Application and its uninstaller
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-AEAM" \
"DisplayName" "${PACEPLUGIN}"
"DisplayName" "${AEAMPLUGIN}"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-AEAM" \
"Publisher" "The LAMMPS and PACE Developers"
"Publisher" "The LAMMPS and USER-AEAM Developers"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-AEAM" \
"URLInfoAbout" "lammps.org"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-AEAM" \
Expand Down
9 changes: 5 additions & 4 deletions USER-REBOMOS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
endif()
if(BUILD_MPI)
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION}-MPI rebomosplugin.nsis
DEPENDS rebomosplugin
BYPRODUCTS LAMMPS-USER-REBOMOS-plugin-${LAMMPS_VERSION}-MPI.exe)
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
DEPENDS rebomosplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/aeamplugin.nsis
BYPRODUCTS ${CMAKE_BINARY_DIR}/LAMMPS-USER-REBOMOS-plugin-${LAMMPS_VERSION}-MPI.exe)
else()
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION} rebomosplugin.nsis
COMMAND ${CMAKE_COMMAND} -E echo ${PWD}
DEPENDS rebomosplugin lammps.ico lammps-text-logo-wide.bmp rebomosplugin.nsis
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
DEPENDS rebomosplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/rebomosplugin.nsis
BYPRODUCTS LAMMPS-USER-REBOMOS-plugin-${LAMMPS_VERSION}.exe)
endif()
endif()
Expand Down
12 changes: 6 additions & 6 deletions USER-REBOMOS/rebomosplugin.nsis
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ ${If} $0 != "admin"
${EndIf}
!macroend

!define PACEPLUGIN "LAMMPS USER-REBOMOS Plugin ${VERSION}"
!define REBOMOSPLUGIN "LAMMPS USER-REBOMOS Plugin ${VERSION}"
OutFile "LAMMPS-USER-REBOMOS-plugin-${VERSION}.exe"

Name "${PACEPLUGIN}"
InstallDir "$LOCALAPPDATA\${PACEPLUGIN}"
Name "${REBOMOSPLUGIN}"
InstallDir "$LOCALAPPDATA\${REBOMOSPLUGIN}"

ShowInstDetails show
ShowUninstDetails show
Expand Down Expand Up @@ -80,7 +80,7 @@ function .onInit
setShellVarContext all
functionEnd

Section "${PACEPLUGIN}" SecPaceplugin
Section "${REBOMOSPLUGIN}" SecPaceplugin
SectionIn RO
# Write LAMMPS installation bitness marker. Always use 32-bit registry view
SetRegView 32
Expand All @@ -97,9 +97,9 @@ Section "${PACEPLUGIN}" SecPaceplugin

# Register Application and its uninstaller
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-REBOMOS" \
"DisplayName" "${PACEPLUGIN}"
"DisplayName" "${REBOMOSPLUGIN}"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-REBOMOS" \
"Publisher" "The LAMMPS and PACE Developers"
"Publisher" "The LAMMPS and USER-REBOMOS Developers"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-REBOMOS" \
"URLInfoAbout" "lammps.org"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-REBOMOS" \
Expand Down
11 changes: 6 additions & 5 deletions USER-VCSGC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
endif()
if(BUILD_MPI)
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION}-MPI vcsgcplugin.nsis
DEPENDS vcsgcplugin
BYPRODUCTS LAMMPS-USER-VCSGC-plugin-${LAMMPS_VERSION}-MPI.exe)
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
DEPENDS vcsgcplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/aeamplugin.nsis
BYPRODUCTS ${CMAKE_BINARY_DIR}/LAMMPS-USER-VCSGC-plugin-${LAMMPS_VERSION}-MPI.exe)
else()
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION} vcsgcplugin.nsis
COMMAND ${CMAKE_COMMAND} -E echo ${PWD}
DEPENDS vcsgcplugin lammps.ico lammps-text-logo-wide.bmp vcsgcplugin.nsis
BYPRODUCTS LAMMPS-USER-VCSGC-plugin-${LAMMPS_VERSION}.exe)
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
DEPENDS vcsgcplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/vcsgcplugin.nsis
BYPRODUCTS ${CMAKE_BINARY_DIR}/LAMMPS-USER-VCSGC-plugin-${LAMMPS_VERSION}.exe)
endif()
endif()
else()
Expand Down

0 comments on commit cbbecdb

Please sign in to comment.