Skip to content

Commit

Permalink
Only use wasm build tag and not js
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Jan 1, 2024
1 parent b4f8d64 commit dfef916
Show file tree
Hide file tree
Showing 41 changed files with 77 additions and 82 deletions.
4 changes: 2 additions & 2 deletions app/app_darwin.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !ci && !js && !wasm && !test_web_driver
// +build !ci,!js,!wasm,!test_web_driver
//go:build !ci && !wasm && !test_web_driver
// +build !ci,!wasm,!test_web_driver

package app

Expand Down
4 changes: 2 additions & 2 deletions app/app_desktop_darwin.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !ci && !ios && !js && !wasm && !test_web_driver
// +build !ci,!ios,!js,!wasm,!test_web_driver
//go:build !ci && !ios && !wasm && !test_web_driver
// +build !ci,!ios,!wasm,!test_web_driver

package app

Expand Down
4 changes: 2 additions & 2 deletions app/app_goxjs.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build !ci && (!android || !ios || !mobile) && (js || wasm || test_web_driver)
//go:build !ci && (!android || !ios || !mobile) && (wasm || test_web_driver)
// +build !ci
// +build !android !ios !mobile
// +build js wasm test_web_driver
// +build wasm test_web_driver

package app

Expand Down
4 changes: 2 additions & 2 deletions app/app_notlegacy_darwin.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !ci && !legacy && !js && !wasm && !test_web_driver
// +build !ci,!legacy,!js,!wasm,!test_web_driver
//go:build !ci && !legacy && !wasm && !test_web_driver
// +build !ci,!legacy,!wasm,!test_web_driver

package app

Expand Down
4 changes: 2 additions & 2 deletions app/app_openurl_web.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !ci && !js && !wasm && test_web_driver
// +build !ci,!js,!wasm,test_web_driver
//go:build !ci && !wasm && test_web_driver
// +build !ci,!wasm,test_web_driver

package app

Expand Down
4 changes: 2 additions & 2 deletions app/app_other.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build ci || (!linux && !darwin && !windows && !freebsd && !openbsd && !netbsd && !js && !wasm && !test_web_driver)
// +build ci !linux,!darwin,!windows,!freebsd,!openbsd,!netbsd,!js,!wasm,!test_web_driver
//go:build ci || (!linux && !darwin && !windows && !freebsd && !openbsd && !netbsd && !wasm && !test_web_driver)
// +build ci !linux,!darwin,!windows,!freebsd,!openbsd,!netbsd,!wasm,!test_web_driver

package app

Expand Down
4 changes: 2 additions & 2 deletions app/app_theme_web.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !ci && !js && !wasm && test_web_driver
// +build !ci,!js,!wasm,test_web_driver
//go:build !ci && !wasm && test_web_driver
// +build !ci,!wasm,test_web_driver

package app

Expand Down
4 changes: 2 additions & 2 deletions app/app_windows.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !ci && !js && !android && !ios && !wasm && !test_web_driver
// +build !ci,!js,!android,!ios,!wasm,!test_web_driver
//go:build !ci && !android && !ios && !wasm && !test_web_driver
// +build !ci,!android,!ios,!wasm,!test_web_driver

package app

Expand Down
3 changes: 1 addition & 2 deletions app/app_xdg.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//go:build !ci && !js && !wasm && !test_web_driver && (linux || openbsd || freebsd || netbsd) && !android
//go:build !ci && !wasm && !test_web_driver && (linux || openbsd || freebsd || netbsd) && !android
// +build !ci
// +build !js
// +build !wasm
// +build !test_web_driver
// +build linux openbsd freebsd netbsd
Expand Down
4 changes: 2 additions & 2 deletions app/settings_desktop.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !android && !ios && !mobile && !js && !wasm && !test_web_driver
// +build !android,!ios,!mobile,!js,!wasm,!test_web_driver
//go:build !android && !ios && !mobile && !wasm && !test_web_driver
// +build !android,!ios,!mobile,!wasm,!test_web_driver

package app

Expand Down
4 changes: 2 additions & 2 deletions app/settings_file.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !js && !wasm && !test_web_driver
// +build !js,!wasm,!test_web_driver
//go:build !wasm && !test_web_driver
// +build !wasm,!test_web_driver

package app

Expand Down
4 changes: 2 additions & 2 deletions app/settings_goxjs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build js || wasm || test_web_driver
// +build js wasm test_web_driver
//go:build wasm || test_web_driver
// +build wasm test_web_driver

package app

Expand Down
4 changes: 2 additions & 2 deletions internal/cache/texture_desktop.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !android && !ios && !mobile && !js && !wasm && !test_web_driver
// +build !android,!ios,!mobile,!js,!wasm,!test_web_driver
//go:build !android && !ios && !mobile && !wasm && !test_web_driver
// +build !android,!ios,!mobile,!wasm,!test_web_driver

package cache

Expand Down
4 changes: 2 additions & 2 deletions internal/cache/texture_goxjs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build js || wasm || test_web_driver
// +build js wasm test_web_driver
//go:build wasm || test_web_driver
// +build wasm test_web_driver

package cache

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/clipboard.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !js && !wasm && !test_web_driver
// +build !js,!wasm,!test_web_driver
//go:build !wasm && !test_web_driver
// +build !wasm,!test_web_driver

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/clipboard_goxjs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build js || wasm || test_web_driver
// +build js wasm test_web_driver
//go:build wasm || test_web_driver
// +build wasm test_web_driver

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/device_desktop.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !js && !wasm
// +build !js,!wasm
//go:build !wasm
// +build !wasm

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/device_goxjs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build js || wasm
// +build js wasm
//go:build wasm
// +build wasm

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/device_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !js && !wasm
// +build !js,!wasm
//go:build !wasm
// +build !wasm

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/driver_desktop.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !js && !wasm && !test_web_driver
// +build !js,!wasm,!test_web_driver
//go:build !wasm && !test_web_driver
// +build !wasm,!test_web_driver

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/driver_goxjs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build js
// +build js
//go:build wasm
// +build wasm

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/driver_web.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build js || wasm || test_web_driver
// +build js wasm test_web_driver
//go:build wasm || test_web_driver
// +build wasm test_web_driver

package glfw

Expand Down
3 changes: 1 addition & 2 deletions internal/driver/glfw/glfw_core.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//go:build ((!gles && !arm && !arm64) || darwin) && !js && !wasm && !test_web_driver
//go:build ((!gles && !arm && !arm64) || darwin) && !wasm && !test_web_driver
// +build !gles,!arm,!arm64 darwin
// +build !js
// +build !wasm
// +build !test_web_driver

Expand Down
3 changes: 1 addition & 2 deletions internal/driver/glfw/glfw_es.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//go:build (gles || arm || arm64) && !darwin && !js && !wasm && !test_web_driver
//go:build (gles || arm || arm64) && !darwin && !wasm && !test_web_driver
// +build gles arm arm64
// +build !darwin
// +build !js
// +build !wasm
// +build !test_web_driver

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/glfw_goxjs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build js || wasm || test_web_driver
// +build js wasm test_web_driver
//go:build wasm || test_web_driver
// +build wasm test_web_driver

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/loop_desktop.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !js && !wasm && !test_web_driver
// +build !js,!wasm,!test_web_driver
//go:build !wasm && !test_web_driver
// +build !wasm,!test_web_driver

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/loop_goxjs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build js || wasm || test_web_driver
// +build js wasm test_web_driver
//go:build wasm || test_web_driver
// +build wasm test_web_driver

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/menu_darwin.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !no_native_menus && !js && !wasm && !test_web_driver
// +build !no_native_menus,!js,!wasm,!test_web_driver
//go:build !no_native_menus && !wasm && !test_web_driver
// +build !no_native_menus,!wasm,!test_web_driver

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/menu_notweb.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !js && !wasm && !test_web_driver
// +build !js,!wasm,!test_web_driver
//go:build !wasm && !test_web_driver
// +build !wasm,!test_web_driver

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/menu_other.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !darwin || js || wasm || test_web_driver || no_native_menus
// +build !darwin js wasm test_web_driver no_native_menus
//go:build !darwin || wasm || test_web_driver || no_native_menus
// +build !darwin wasm test_web_driver no_native_menus

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/menu_web.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build js || wasm || test_web_driver
// +build js wasm test_web_driver
//go:build wasm || test_web_driver
// +build wasm test_web_driver

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/shortcuts_other.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !js && !wasm
// +build !js,!wasm
//go:build !wasm
// +build !wasm

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/shortcuts_wasm.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build js && wasm
// +build js,wasm
//go:build wasm
// +build wasm

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/window_desktop.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !js && !wasm && !test_web_driver
// +build !js,!wasm,!test_web_driver
//go:build !wasm && !test_web_driver
// +build !wasm,!test_web_driver

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/window_desktop_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !js && !wasm && !test_web_driver
// +build !js,!wasm,!test_web_driver
//go:build !wasm && !test_web_driver
// +build !wasm,!test_web_driver

package glfw

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/glfw/window_goxjs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build js || wasm || test_web_driver
// +build js wasm test_web_driver
//go:build wasm || test_web_driver
// +build wasm test_web_driver

package glfw

Expand Down
3 changes: 1 addition & 2 deletions internal/driver/glfw/window_x11.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//go:build !wayland && (linux || freebsd || openbsd || netbsd) && !js && !wasm && !test_web_driver
//go:build !wayland && (linux || freebsd || openbsd || netbsd) && !wasm && !test_web_driver
// +build !wayland
// +build linux freebsd openbsd netbsd
// +build !js
// +build !wasm
// +build !test_web_driver

Expand Down
4 changes: 2 additions & 2 deletions internal/painter/gl/gl_core.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build (!gles && !arm && !arm64 && !android && !ios && !mobile && !js && !test_web_driver && !wasm) || (darwin && !mobile && !ios && !js && !wasm && !test_web_driver)
// +build !gles,!arm,!arm64,!android,!ios,!mobile,!js,!test_web_driver,!wasm darwin,!mobile,!ios,!js,!wasm,!test_web_driver
//go:build (!gles && !arm && !arm64 && !android && !ios && !mobile && !test_web_driver && !wasm) || (darwin && !mobile && !ios && !wasm && !test_web_driver)
// +build !gles,!arm,!arm64,!android,!ios,!mobile,!test_web_driver,!wasm darwin,!mobile,!ios,!wasm,!test_web_driver

package gl

Expand Down
3 changes: 1 addition & 2 deletions internal/painter/gl/gl_es.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
//go:build (gles || arm || arm64) && !android && !ios && !mobile && !darwin && !js && !wasm && !test_web_driver
//go:build (gles || arm || arm64) && !android && !ios && !mobile && !darwin && !wasm && !test_web_driver
// +build gles arm arm64
// +build !android
// +build !ios
// +build !mobile
// +build !darwin
// +build !js
// +build !wasm
// +build !test_web_driver

Expand Down
4 changes: 2 additions & 2 deletions internal/painter/gl/gl_gomobile.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build (android || ios || mobile) && (!js || !wasm || !test_web_driver)
//go:build (android || ios || mobile) && (!wasm || !test_web_driver)
// +build android ios mobile
// +build !js !wasm !test_web_driver
// +build !wasm !test_web_driver

package gl

Expand Down
4 changes: 2 additions & 2 deletions internal/painter/gl/gl_goxjs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build js || wasm || test_web_driver
// +build js wasm test_web_driver
//go:build wasm || test_web_driver
// +build wasm test_web_driver

package gl

Expand Down

0 comments on commit dfef916

Please sign in to comment.