mirror of
https://gitee.com/energye/energy.git
synced 2024-12-04 20:58:21 +08:00
1473ccf40c
修改 liblcl版本升级检查工具 升级 内置库liblclbinres 1.0.3
39 lines
924 B
Go
39 lines
924 B
Go
//----------------------------------------
|
|
//
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
//
|
|
// Licensed under Apache License Version 2.0, January 2004
|
|
//
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
//----------------------------------------
|
|
|
|
// energy 扩展定义, 编译版本, CEF版本
|
|
|
|
package cef
|
|
|
|
import (
|
|
"github.com/energye/energy/v2/cef/internal/def"
|
|
"github.com/energye/energy/v2/cef/internal/version"
|
|
"github.com/energye/energy/v2/common/imports"
|
|
"github.com/energye/golcl/lcl/api"
|
|
)
|
|
|
|
// defInit
|
|
// GlobalInit
|
|
func defInit() {
|
|
{
|
|
// Set pascal lib-lcl build version
|
|
r1, _, _ := imports.Proc(def.LibBuildVersion).Call()
|
|
version.SetLibBuildVersion(api.GoStr(r1))
|
|
}
|
|
}
|
|
|
|
// setMacOSXCommandLine
|
|
// 针对 MacOSX 设置命令行参数
|
|
//
|
|
// 没找到什么好的方式,只能这样设置
|
|
func setMacOSXCommandLine(commandLine uintptr) {
|
|
imports.Proc(def.SetMacOSXCommandLine).Call(commandLine)
|
|
}
|