Skip to content

Commit

Permalink
Switch from +build to go:build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Jan 2, 2024
1 parent 78f2326 commit 32bc3d7
Show file tree
Hide file tree
Showing 174 changed files with 3 additions and 212 deletions.
1 change: 0 additions & 1 deletion app/app_darwin.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci && !wasm && !test_web_driver
// +build !ci,!wasm,!test_web_driver

package app

Expand Down
1 change: 0 additions & 1 deletion app/app_darwin.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci
// +build !ci

#import <Foundation/Foundation.h>
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101400
Expand Down
1 change: 0 additions & 1 deletion app/app_darwin_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci && !ios
// +build !ci,!ios

package app

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

package app

Expand Down
1 change: 0 additions & 1 deletion app/app_desktop_darwin.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci && !ios
// +build !ci,!ios

extern void themeChanged();

Expand Down
1 change: 0 additions & 1 deletion app/app_gl.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci && !android && !ios && !mobile
// +build !ci,!android,!ios,!mobile

package app

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

package app

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

package app

Expand Down
1 change: 0 additions & 1 deletion app/app_mobile_and.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci && android
// +build !ci,android

#include <android/log.h>
#include <jni.h>
Expand Down
1 change: 0 additions & 1 deletion app/app_mobile_and.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci && android
// +build !ci,android

package app

Expand Down
1 change: 0 additions & 1 deletion app/app_mobile_and_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci && android
// +build !ci,android

package app

Expand Down
1 change: 0 additions & 1 deletion app/app_mobile_ios.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci && ios
// +build !ci,ios

package app

Expand Down
1 change: 0 additions & 1 deletion app/app_mobile_ios.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci && ios
// +build !ci,ios

#import <UIKit/UIKit.h>

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

package app

Expand Down
1 change: 0 additions & 1 deletion app/app_openurl_wasm.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci && wasm
// +build !ci,wasm

package app

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

package app

Expand Down
1 change: 0 additions & 1 deletion app/app_other.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//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
1 change: 0 additions & 1 deletion app/app_software.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build ci
// +build ci

package app

Expand Down
1 change: 0 additions & 1 deletion app/app_theme_wasm.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci && wasm
// +build !ci,wasm

package app

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

package app

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

package app

Expand Down
1 change: 0 additions & 1 deletion app/app_windows_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci && !android && !ios
// +build !ci,!android,!ios

package app

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

package app

Expand Down
1 change: 0 additions & 1 deletion app/preferences_android.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build android
// +build android

package app

Expand Down
1 change: 0 additions & 1 deletion app/preferences_ios.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build ios
// +build ios

package app

Expand Down
1 change: 0 additions & 1 deletion app/preferences_mobile.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build mobile
// +build mobile

package app

Expand Down
1 change: 0 additions & 1 deletion app/preferences_other.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ios && !android && !mobile
// +build !ios,!android,!mobile

package app

Expand Down
1 change: 0 additions & 1 deletion app/settings_desktop.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !android && !ios && !mobile && !wasm && !test_web_driver
// +build !android,!ios,!mobile,!wasm,!test_web_driver

package app

Expand Down
1 change: 0 additions & 1 deletion app/settings_desktop_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !android && !ios && !mobile
// +build !android,!ios,!mobile

package app

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

package app

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

package app

Expand Down
1 change: 0 additions & 1 deletion app/settings_mobile.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build android || ios || mobile
// +build android ios mobile

package app

Expand Down
1 change: 0 additions & 1 deletion app/settings_noanimation.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build no_animations
// +build no_animations

package app

Expand Down
1 change: 0 additions & 1 deletion cmd/fyne/internal/commands/install_other.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package commands

Expand Down
1 change: 0 additions & 1 deletion cmd/fyne/internal/mobile/binres/genarsc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion cmd/fyne/internal/mobile/gendex/gendex.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gendex
// +build gendex

// Gendex generates a dex file used by Go apps created with gomobile.
//
Expand Down
1 change: 0 additions & 1 deletion container/apptabs_desktop_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !mobile
// +build !mobile

package container_test

Expand Down
1 change: 0 additions & 1 deletion container/apptabs_mobile_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build mobile
// +build mobile

package container_test

Expand Down
1 change: 0 additions & 1 deletion container/doctabs_desktop_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !mobile
// +build !mobile

package container_test

Expand Down
1 change: 0 additions & 1 deletion container/doctabs_mobile_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build mobile
// +build mobile

package container_test

Expand Down
1 change: 0 additions & 1 deletion data/binding/gen.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build ignore
// +build ignore

package main

Expand Down
1 change: 0 additions & 1 deletion dialog/file_darwin.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ios && !android && !wasm && !js
// +build !ios,!android,!wasm,!js

package dialog

Expand Down
1 change: 0 additions & 1 deletion dialog/file_goxjs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build wasm || js
// +build wasm js

package dialog

Expand Down
1 change: 0 additions & 1 deletion dialog/file_mobile.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build ios || android
// +build ios android

package dialog

Expand Down
1 change: 0 additions & 1 deletion dialog/file_other_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package dialog

Expand Down
1 change: 0 additions & 1 deletion dialog/file_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows && !android && !ios && !wasm && !js
// +build !windows,!android,!ios,!wasm,!js

package dialog

Expand Down
4 changes: 0 additions & 4 deletions dialog/file_xdg.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
//go:build (linux || openbsd || freebsd || netbsd) && !android && !wasm && !js
// +build linux openbsd freebsd netbsd
// +build !android
// +build !wasm
// +build !js

package dialog

Expand Down
1 change: 0 additions & 1 deletion dialog/file_xdg_flatpak.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build flatpak && !windows && !android && !ios && !wasm && !js
// +build flatpak,!windows,!android,!ios,!wasm,!js

package dialog

Expand Down
1 change: 0 additions & 1 deletion dialog/file_xdg_notflatpak.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !flatpak && !windows && !android && !ios && !wasm && !js
// +build !flatpak,!windows,!android,!ios,!wasm,!js

package dialog

Expand Down
2 changes: 0 additions & 2 deletions dialog/file_xdg_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//go:build (linux || openbsd || freebsd || netbsd) && !android
// +build linux openbsd freebsd netbsd
// +build !android

package dialog

Expand Down
1 change: 0 additions & 1 deletion driver/native_android.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build android
// +build android

package driver

Expand Down
1 change: 0 additions & 1 deletion driver/native_other.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !android
// +build !android

package driver

Expand Down
1 change: 0 additions & 1 deletion internal/animation/animation_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !ci || !darwin
// +build !ci !darwin

package animation

Expand Down
1 change: 0 additions & 1 deletion internal/async/gen.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build ignore
// +build ignore

package main

Expand Down
1 change: 0 additions & 1 deletion internal/build/driver_flatpak.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build flatpak
// +build flatpak

package build

Expand Down
1 change: 0 additions & 1 deletion internal/build/driver_notflatpak.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !flatpak
// +build !flatpak

package build

Expand Down
1 change: 0 additions & 1 deletion internal/build/driver_notwayland.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !wayland
// +build !wayland

package build

Expand Down
1 change: 0 additions & 1 deletion internal/build/driver_wayland.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build wayland
// +build wayland

package build

Expand Down
1 change: 0 additions & 1 deletion internal/build/hints_disabled.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !hints
// +build !hints

package build

Expand Down
1 change: 0 additions & 1 deletion internal/build/hints_enabled.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build hints
// +build hints

package build

Expand Down
1 change: 0 additions & 1 deletion internal/build/mode_debug.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build debug
// +build debug

package build

Expand Down
1 change: 0 additions & 1 deletion internal/build/mode_release.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build release
// +build release

package build

Expand Down
1 change: 0 additions & 1 deletion internal/build/mode_standard.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !debug && !release
// +build !debug,!release

package build

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

package cache

Expand Down
Loading

0 comments on commit 32bc3d7

Please sign in to comment.