Skip to content

Commit

Permalink
Some changes for mxe to work
Browse files Browse the repository at this point in the history
  • Loading branch information
xzfantom committed Jan 16, 2021
1 parent 13d459c commit cf5503d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 25 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,9 @@ IF( WIN32 )
SET( Qt_DLLs
${Qt_DLLs}
${IcuDlls}
${MINGW_BIN_DIR}/libgcc_s_dw2-1.dll
${MINGW_BIN_DIR}/libstdc++-6.dll
${MINGW_BIN_DIR}/libwinpthread-1.dll
# ${MINGW_BIN_DIR}/libgcc_s_dw2-1.dll
# ${MINGW_BIN_DIR}/libstdc++-6.dll
# ${MINGW_BIN_DIR}/libwinpthread-1.dll
)
ENDIF()
ENDIF()
Expand Down
43 changes: 22 additions & 21 deletions cmake/modules/NSIS.template.in
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ Var nouse1
Var nouse2
Var btRegPath

!include "Locate.nsh"
; !include "Locate.nsh"

; Set up the browser page. This happens post install, so I'm confused about
; what's already on disk and isn't.
Expand Down Expand Up @@ -922,26 +922,27 @@ Function btCopyAllFiles
Pop $btPathVersion
; If there is no data file where the user pointed us,
; look for in LOCALAPPDATA
${IfNot} ${FileExists} "$btPath\$fileName"
${locate::Open} "$LOCALAPPDATA" "/M=$fileName" $locateHandle
findloop:
${locate::Find} $locateHandle $R9 $R8 $R7 $R6 $nouse1 $nouse2
StrCmp $R9 '' stoplocate
Call whereisDb
StrCmp $0 'StopLocate' stoplocate findloop
stoplocate:
${locate::Close} $locateHandle
${locate::Unload}
${If} $R4 != ""
StrCpy $btPath $R4

; If we can't find anything, warn the user and send them back to the
; selection screen
${Else}
MessageBox mb_iconstop "Could not find an existing database ($fileName) in $btPath"
Abort
${EndIf}
${EndIf}
; Plugin locate is not good at work in mxe, temporary switching it off
;${IfNot} ${FileExists} "$btPath\$fileName"
; ${locate::Open} "$LOCALAPPDATA" "/M=$fileName" $locateHandle
; findloop:
; ${locate::Find} $locateHandle $R9 $R8 $R7 $R6 $nouse1 $nouse2
; StrCmp $R9 '' stoplocate
; Call whereisDb
; StrCmp $0 'StopLocate' stoplocate findloop
; stoplocate:
; ${locate::Close} $locateHandle
; ${locate::Unload}
; ${If} $R4 != ""
; StrCpy $btPath $R4

; ; If we can't find anything, warn the user and send them back to the
; ; selection screen
; ${Else}
; MessageBox mb_iconstop "Could not find an existing database ($fileName) in $btPath"
; Abort
; ${EndIf}
;${EndIf}
${EndIF}
${If} ${FileExists} "$btPath\$fileName"
; this copies the database.xml or database.sqlite file to the new location.
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ SET(brewtarget_ICON "")

IF( WIN32 AND MINGW )
ADD_CUSTOM_COMMAND(OUTPUT ${WINDIR}/icon.o
COMMAND windres.exe -I${CMAKE_CURRENT_SOURCE_DIR}
COMMAND {CMAKE_RC_COMPILER} -I${CMAKE_CURRENT_SOURCE_DIR}
-i${RCFILE}
-o${WINDIR}/icon.o
DEPENDS ${RCFILE}
Expand Down

0 comments on commit cf5503d

Please sign in to comment.