mirror of
https://gitee.com/energye/energy.git
synced 2024-12-13 17:05:48 +08:00
44 lines
1.0 KiB
Go
44 lines
1.0 KiB
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 version
|
|
r1, _, _ := imports.Proc(def.LibVersion).Call()
|
|
version.SetLibVersion(api.GoStr(r1))
|
|
}
|
|
{
|
|
// 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)
|
|
}
|