aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorflysand7 <yyakut.ac@gmail.com>2023-10-30 20:05:58 +1100
committerflysand7 <yyakut.ac@gmail.com>2023-10-30 20:05:58 +1100
commit1577d60d023b9f989a658bf92fbacf7f4bfc4a90 (patch)
tree5cf8b92ac3a0002b7a54f54a50a344917725fbac /examples
parent263b3141b5df046b0061c2a9ec52f3f7f4eab234 (diff)
move darwin-specific packages in all_vendor_darwin.odin
Diffstat (limited to 'examples')
-rw-r--r--examples/all/all_vendor.odin10
-rw-r--r--examples/all/all_vendor_darwin.odin12
2 files changed, 12 insertions, 10 deletions
diff --git a/examples/all/all_vendor.odin b/examples/all/all_vendor.odin
index fa1e8d995..6864a7be2 100644
--- a/examples/all/all_vendor.odin
+++ b/examples/all/all_vendor.odin
@@ -39,11 +39,6 @@ import TTF "vendor:sdl2/ttf"
import vk "vendor:vulkan"
-import NS "vendor:darwin/Foundation"
-import MTL "vendor:darwin/Metal"
-import MTK "vendor:darwin/MetalKit"
-import CA "vendor:darwin/QuartzCore"
-
// NOTE(bill): only one can be checked at a time
import lua_5_4 "vendor:lua/5.4"
@@ -91,11 +86,6 @@ _ :: TTF
_ :: vk
-_ :: NS
-_ :: MTL
-_ :: MTK
-_ :: CA
-
_ :: lua_5_4
_ :: nvg
diff --git a/examples/all/all_vendor_darwin.odin b/examples/all/all_vendor_darwin.odin
new file mode 100644
index 000000000..9aa41396c
--- /dev/null
+++ b/examples/all/all_vendor_darwin.odin
@@ -0,0 +1,12 @@
+//+build darwin
+package all
+
+import NS "vendor:darwin/Foundation"
+import MTL "vendor:darwin/Metal"
+import MTK "vendor:darwin/MetalKit"
+import CA "vendor:darwin/QuartzCore"
+
+_ :: NS
+_ :: MTL
+_ :: MTK
+_ :: CA