gpu-dawn: use source scanning for dawn_native_metal target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e15c91a8b7
commit
fc1f37ef2f
2 changed files with 16 additions and 23 deletions
|
|
@ -602,10 +602,22 @@ fn buildLibDawnNative(b: *Builder, step: *std.build.LibExeObjStep, options: Opti
|
||||||
lib.linkFramework("IOSurface");
|
lib.linkFramework("IOSurface");
|
||||||
lib.linkFramework("QuartzCore");
|
lib.linkFramework("QuartzCore");
|
||||||
|
|
||||||
sources.appendSlice(&.{
|
scanSources(
|
||||||
thisDir() ++ "/src/dawn/sources/dawn_native_metal.mm",
|
b,
|
||||||
thisDir() ++ "/libs/dawn/src/dawn_native/metal/BackendMTL.mm",
|
&sources,
|
||||||
}) catch unreachable;
|
"libs/dawn/src/dawn_native/metal/",
|
||||||
|
&.{ ".cpp", ".c", ".cc", ".m", ".mm" },
|
||||||
|
&.{},
|
||||||
|
&.{ "test", "benchmark", "mock" },
|
||||||
|
) catch unreachable;
|
||||||
|
scanSources(
|
||||||
|
b,
|
||||||
|
&sources,
|
||||||
|
"libs/dawn/src/dawn_native/",
|
||||||
|
&.{ ".m", ".mm" },
|
||||||
|
&.{},
|
||||||
|
&.{ "test", "benchmark", "mock" },
|
||||||
|
) catch unreachable;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.linux_window_manager != null and options.linux_window_manager.? == .X11) {
|
if (options.linux_window_manager != null and options.linux_window_manager.? == .X11) {
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
#include "src/dawn_native/metal/MetalBackend.mm"
|
|
||||||
#include "src/dawn_native/Surface_metal.mm"
|
|
||||||
#include "src/dawn_native/metal/BindGroupLayoutMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/BindGroupMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/BufferMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/CommandBufferMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/CommandRecordingContext.mm"
|
|
||||||
#include "src/dawn_native/metal/ComputePipelineMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/DeviceMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/PipelineLayoutMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/QuerySetMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/QueueMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/RenderPipelineMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/SamplerMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/ShaderModuleMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/StagingBufferMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/SwapChainMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/TextureMTL.mm"
|
|
||||||
#include "src/dawn_native/metal/UtilsMetal.mm"
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue