First step toward alpha 4: we no longer need the Windows resource trick.

This commit is contained in:
Pietro Gagliardi 2018-08-11 16:12:54 -04:00
parent dc108a5d4d
commit 0f75ebb5fa
8 changed files with 3 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -2,7 +2,7 @@
package ui
// #cgo LDFLAGS: ${SRCDIR}/libui_windows_386.a ${SRCDIR}/libui_windows_386.res.o
// #cgo LDFLAGS: ${SRCDIR}/libui_windows_386.a
// /* note the order; also note the lack of uuid */
// #cgo LDFLAGS: -luser32 -lkernel32 -lusp10 -lgdi32 -lcomctl32 -luxtheme -lmsimg32 -lcomdlg32 -ld2d1 -ldwrite -lole32 -loleaut32 -loleacc -static -static-libgcc -static-libstdc++
import "C"

View File

@ -2,7 +2,7 @@
package ui
// #cgo LDFLAGS: ${SRCDIR}/libui_windows_amd64.a ${SRCDIR}/libui_windows_amd64.res.o
// #cgo LDFLAGS: ${SRCDIR}/libui_windows_amd64.a
// /* note the order; also note the lack of uuid */
// #cgo LDFLAGS: -luser32 -lkernel32 -lusp10 -lgdi32 -lcomctl32 -luxtheme -lmsimg32 -lcomdlg32 -ld2d1 -ldwrite -lole32 -loleaut32 -loleacc -static -static-libgcc -static-libstdc++
import "C"

View File

@ -27,6 +27,7 @@ import "C"
// make sure main() runs on the first thread created by the OS
// if main() calls Main(), things will just work on macOS, where the first thread created by the OS is the only thread allowed to be the main GUI thread
// we might as well lock the OS thread for the other platforms here too (though on those it doesn't matter *which* thread we lock to)
// TODO describe the source of this trick
func init() {
runtime.LockOSThread()
}

View File

@ -1,3 +0,0 @@
/* 5 june 2016 */
#pragma code_page(65001)
1 24 "static.manifest"

Binary file not shown.

Binary file not shown.