mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
app/internal/log: extract log setup to separate package
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: Unlicense OR MIT
|
||||||
|
|
||||||
|
// Package points standard output, standard error and the standard
|
||||||
|
// library package log to the platform logger.
|
||||||
|
package log
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: Unlicense OR MIT
|
// SPDX-License-Identifier: Unlicense OR MIT
|
||||||
|
|
||||||
package app
|
package log
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo LDFLAGS: -llog
|
#cgo LDFLAGS: -llog
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// +build darwin,ios
|
// +build darwin,ios
|
||||||
|
|
||||||
package app
|
package log
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#include "log_ios.h"
|
#include "log_ios.h"
|
||||||
@@ -16,6 +16,8 @@ import (
|
|||||||
"gioui.org/io/system"
|
"gioui.org/io/system"
|
||||||
"gioui.org/op"
|
"gioui.org/op"
|
||||||
"gioui.org/unit"
|
"gioui.org/unit"
|
||||||
|
|
||||||
|
_ "gioui.org/app/internal/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// WindowOption configures a Window.
|
// WindowOption configures a Window.
|
||||||
|
|||||||
Reference in New Issue
Block a user