Skip to content

Commit

Permalink
shiny: add go.mod file
Browse files Browse the repository at this point in the history
The shiny package is not related to other exp packages.
Put it in a separate module.

This package uses a modified copy of github.com/BurntSushi/xgb.
Move that out of the vendor directory, so that current go commands work.

For golang/go#37175

Change-Id: Ib3bad0823d2651ff90a9651e405ed7bcd9de94b6
Reviewed-on: https://go-review.googlesource.com/c/exp/+/383197
Trust: Ian Lance Taylor <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
Trust: Nigel Tao <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
  • Loading branch information
ianlancetaylor committed Feb 5, 2022
1 parent d4f80a9 commit f5f519d
Show file tree
Hide file tree
Showing 24 changed files with 70 additions and 24 deletions.
9 changes: 5 additions & 4 deletions shiny/driver/x11driver/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ import (
"sync"
"unsafe"

"github.com/BurntSushi/xgb"
"github.com/BurntSushi/xgb/render"
"github.com/BurntSushi/xgb/shm"
"github.com/BurntSushi/xgb/xproto"
"golang.org/x/exp/shiny/internal/xgb"
"golang.org/x/exp/shiny/internal/xgb/render"
"golang.org/x/exp/shiny/internal/xgb/shm"
"golang.org/x/exp/shiny/internal/xgb/xproto"

"golang.org/x/exp/shiny/driver/internal/swizzle"
)

Expand Down
5 changes: 3 additions & 2 deletions shiny/driver/x11driver/buffer_fallback.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import (
"image"
"sync"

"github.com/BurntSushi/xgb"
"github.com/BurntSushi/xgb/xproto"
"golang.org/x/exp/shiny/internal/xgb"
"golang.org/x/exp/shiny/internal/xgb/xproto"

"golang.org/x/exp/shiny/driver/internal/swizzle"
)

Expand Down
8 changes: 4 additions & 4 deletions shiny/driver/x11driver/screen.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"log"
"sync"

"github.com/BurntSushi/xgb"
"github.com/BurntSushi/xgb/render"
"github.com/BurntSushi/xgb/shm"
"github.com/BurntSushi/xgb/xproto"
"golang.org/x/exp/shiny/internal/xgb"
"golang.org/x/exp/shiny/internal/xgb/render"
"golang.org/x/exp/shiny/internal/xgb/shm"
"golang.org/x/exp/shiny/internal/xgb/xproto"

"golang.org/x/exp/shiny/driver/internal/x11key"
"golang.org/x/exp/shiny/screen"
Expand Down
4 changes: 2 additions & 2 deletions shiny/driver/x11driver/texture.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"math"
"sync"

"github.com/BurntSushi/xgb/render"
"github.com/BurntSushi/xgb/xproto"
"golang.org/x/exp/shiny/internal/xgb/render"
"golang.org/x/exp/shiny/internal/xgb/xproto"

"golang.org/x/exp/shiny/screen"
"golang.org/x/image/math/f64"
Expand Down
6 changes: 3 additions & 3 deletions shiny/driver/x11driver/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"image/draw"
"sync"

"github.com/BurntSushi/xgb"
"github.com/BurntSushi/xgb/render"
"github.com/BurntSushi/xgb/xproto"
"golang.org/x/exp/shiny/internal/xgb"
"golang.org/x/exp/shiny/internal/xgb/render"
"golang.org/x/exp/shiny/internal/xgb/xproto"

"golang.org/x/exp/shiny/driver/internal/drawer"
"golang.org/x/exp/shiny/driver/internal/event"
Expand Down
6 changes: 3 additions & 3 deletions shiny/driver/x11driver/x11driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ package x11driver // import "golang.org/x/exp/shiny/driver/x11driver"
import (
"fmt"

"github.com/BurntSushi/xgb"
"github.com/BurntSushi/xgb/render"
"github.com/BurntSushi/xgb/shm"
"golang.org/x/exp/shiny/internal/xgb"
"golang.org/x/exp/shiny/internal/xgb/render"
"golang.org/x/exp/shiny/internal/xgb/shm"

"golang.org/x/exp/shiny/driver/internal/errscreen"
"golang.org/x/exp/shiny/screen"
Expand Down
11 changes: 11 additions & 0 deletions shiny/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module golang.org/x/exp/shiny

go 1.18

require (
dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4
golang.org/x/image v0.0.0-20190802002840-cff245a6509b
golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654
)
33 changes: 33 additions & 0 deletions shiny/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037 h1:+PdD6GLKejR9DizMAKT5DpSAkKswvZrurk1/eEt9+pw=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4 h1:WtGNWLvXpe6ZudgnXrq0barxBImvnnJoMEhXAzcbM0I=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56 h1:estk1glOnSVeJ9tdEZZc5mAMDZk5lNJNyJ6DvrBkTEU=
golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4=
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
golang.org/x/image v0.0.0-20190802002840-cff245a6509b h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4=
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f h1:kgfVkAEEQXXQ0qc6dH7n6y37NAYmTFmz0YRwrRjgxKw=
golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f/go.mod h1:skQtrUTUwhdJvXM/2KKJzY8pDgNr9I/FOMqDVRPBUS4=
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
golang.org/x/mod v0.1.1-0.20191209134235-331c550502dd/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0=
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20200117012304-6edc0a871e69/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package render
// This file is automatically generated from render.xml. Edit at your peril!

import (
"github.com/BurntSushi/xgb"
"golang.org/x/exp/shiny/internal/xgb"

"github.com/BurntSushi/xgb/xproto"
"golang.org/x/exp/shiny/internal/xgb/xproto"
)

// Init must be called before using the RENDER extension.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package shm
// This file is automatically generated from shm.xml. Edit at your peril!

import (
"github.com/BurntSushi/xgb"
"golang.org/x/exp/shiny/internal/xgb"

"github.com/BurntSushi/xgb/xproto"
"golang.org/x/exp/shiny/internal/xgb/xproto"
)

// Init must be called before using the MIT-SHM extension.
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package xproto
// This file is automatically generated from xproto.xml. Edit at your peril!

import (
"github.com/BurntSushi/xgb"
"golang.org/x/exp/shiny/internal/xgb"
)

// Setup parses the setup bytes retrieved when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"testing"
"time"

"github.com/BurntSushi/xgb"
"golang.org/x/exp/shiny/internal/xgb"
)

// The X connection used throughout testing.
Expand Down

0 comments on commit f5f519d

Please sign in to comment.