diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2023-10-30 10:12:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-30 10:12:36 +0100 |
| commit | 8caae1611390a8bdfcb4dae25b2a1ccfa2649113 (patch) | |
| tree | bd2504ebc14e13f940b9951dd354e904a11f90a9 /examples | |
| parent | dc789c43b6b56778b98affac7027d5ca122d6e21 (diff) | |
| parent | 1577d60d023b9f989a658bf92fbacf7f4bfc4a90 (diff) | |
Merge pull request #2902 from flysand7/vendor-darwin
Only build vendor:darwin on darwin
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/all/all_vendor.odin | 10 | ||||
| -rw-r--r-- | examples/all/all_vendor_darwin.odin | 12 |
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 |