MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Setup

Method Setup

Source/Engine/Particles/Particles.Build.cs:24–55  ·  view source on GitHub ↗

(BuildOptions options)

Source from the content-addressed store, hash-verified

22
23 /// <inheritdoc />
24 public override void Setup(BuildOptions options)
25 {
26 base.Setup(options);
27
28 options.PrivateDependencies.Add("Utilities");
29 options.PrivateDependencies.Add("Graphics");
30
31 options.SourcePaths.Clear();
32 options.SourceFiles.AddRange(Directory.GetFiles(FolderPath, "*.*", SearchOption.TopDirectoryOnly));
33 options.SourcePaths.Add(Path.Combine(FolderPath, "Graph", "CPU"));
34
35 if (options.Target.IsEditor)
36 {
37 options.PrivateDependencies.Add("ShadersCompilation");
38
39 options.PublicDefinitions.Add("COMPILE_WITH_PARTICLE_GPU_GRAPH");
40 options.SourcePaths.Add(Path.Combine(FolderPath, "Graph", "GPU"));
41
42 if (UseGPU(options))
43 {
44 options.PublicDefinitions.Add("COMPILE_WITH_GPU_PARTICLES");
45 }
46 }
47 else
48 {
49 if (UseGPU(options))
50 {
51 options.PublicDefinitions.Add("COMPILE_WITH_GPU_PARTICLES");
52 options.SourceFiles.Add(Path.Combine(FolderPath, "Graph", "GPU", "GPUParticles.cpp"));
53 }
54 }
55 }
56}

Callers

nothing calls this directly

Calls 4

AddMethod · 0.45
ClearMethod · 0.45
AddRangeMethod · 0.45
GetFilesMethod · 0.45

Tested by

no test coverage detected