Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.

This commit is contained in:
Karl Zylinski
2024-09-14 18:27:49 +02:00
parent b12d312408
commit 19f0127e55
317 changed files with 433 additions and 433 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
//+build linux, darwin, freebsd, openbsd, netbsd
#+build linux, darwin, freebsd, openbsd, netbsd
package ENet
// When we implement the appropriate bindings for Unix, the section separated
+1 -1
View File
@@ -1,4 +1,4 @@
//+build windows
#+build windows
package ENet
// When we implement the appropriate bindings for Windows, the section separated
+1 -1
View File
@@ -1,4 +1,4 @@
//+build ignore
#+build ignore
/*
Bindings against CMark (https://github.com/commonmark/cmark)
+1 -1
View File
@@ -1,4 +1,4 @@
//+build linux, darwin, freebsd, openbsd, netbsd
#+build linux, darwin, freebsd, openbsd, netbsd
package directx_dxc
import "core:c"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build windows
#+build windows
package directx_dxc
import win32 "core:sys/windows"
import dxgi "vendor:directx/dxgi"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build linux
#+build linux
package egl
NativeDisplayType :: distinct rawptr
+1 -1
View File
@@ -1,4 +1,4 @@
//+vet !using-param
#+vet !using-param
package fontstash
import "base:runtime"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build !js
#+build !js
package fontstash
import "core:log"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build js
#+build js
package fontstash
AddFontPath :: proc(
+1 -1
View File
@@ -1,4 +1,4 @@
//+build darwin
#+build darwin
package glfw
import NS "core:sys/darwin/Foundation"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build linux
#+build linux
package glfw
import "vendor:x11/xlib"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build windows
#+build windows
package glfw
import win32 "core:sys/windows"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build !windows
#+build !windows
package miniaudio
import "core:sys/unix"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build windows, linux, darwin
#+build windows, linux, darwin
package nanovg_gl
import "core:log"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build windows, linux, darwin
#+build windows, linux, darwin
package nanovg
// TODO rename structs to old nanovg style!
+1 -1
View File
@@ -1,4 +1,4 @@
//+build wasm32, wasm64p32
#+build wasm32, wasm64p32
package stb_truetype
import "base:builtin"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build js wasm32, js wasm64p32
#+build js wasm32, js wasm64p32
package wasm_js_interface
foreign import dom_lib "odin_dom"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build !js
#+build !js
package wasm_js_interface
import "base:runtime"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build js wasm32, js wasm64p32
#+build js wasm32, js wasm64p32
package wasm_js_interface
foreign import dom_lib "odin_dom"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build !js
#+build !js
package wasm_js_interface
+1 -1
View File
@@ -1,4 +1,4 @@
//+build js wasm32, js wasm64p32
#+build js wasm32, js wasm64p32
package wasm_js_interface
foreign import "odin_env"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build !js
#+build !js
package wasm_js_interface
import "core:mem"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build js wasm32, js wasm64p32
#+build js wasm32, js wasm64p32
package wasm_js_interface
import "core:mem"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build !js
#+build !js
package vendor_wgpu_example_triangle
import "core:time"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build !js
#+build !js
package vendor_wgpu_example_triangle
import "core:c"
+3 -3
View File
@@ -1,6 +1,6 @@
//+build !linux
//+build !windows
//+build !darwin
#+build !linux
#+build !windows
#+build !darwin
package wgpu_glfw_glue
#panic("package wgpu/glfwglue is not supported on the current target")
+3 -3
View File
@@ -1,6 +1,6 @@
//+build !linux
//+build !windows
//+build !darwin
#+build !linux
#+build !windows
#+build !darwin
package wgpu_sdl2_glue
#panic("package wgpu/sdl2glue is not supported on the current target")
+1 -1
View File
@@ -1,4 +1,4 @@
//+build linux, freebsd, openbsd
#+build linux, freebsd, openbsd
package xlib
/* ---- X11/extensions/XKB.h ---------------------------------------------------------*/
+1 -1
View File
@@ -1,4 +1,4 @@
//+build linux, freebsd, openbsd
#+build linux, freebsd, openbsd
package xlib
KeySym :: enum u32 {
+1 -1
View File
@@ -1,4 +1,4 @@
//+build linux, openbsd, freebsd
#+build linux, openbsd, freebsd
package xlib
foreign import xlib "system:X11"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build linux, freebsd, openbsd
#+build linux, freebsd, openbsd
package xlib
// Since this is a unix-only library we make a few simplifying assumptions