/// <summary> /// Enumerate subdirectories in a given directory /// </summary> /// <returns>Sequence of directory references</returns> public IEnumerable <DirectoryReference> EnumerateDirectoryReferences() { foreach (string DirectoryName in Directory.EnumerateDirectories(FullName)) { yield return(DirectoryReference.MakeFromNormalizedFullPath(DirectoryName)); } }
/// <summary> /// Enumerate subdirectories in a given directory /// </summary> /// <returns>Sequence of directory references</returns> public IEnumerable <DirectoryReference> EnumerateDirectoryReferences(string Pattern, SearchOption Option) { foreach (string DirectoryName in Directory.EnumerateDirectories(FullName, Pattern, Option)) { yield return(DirectoryReference.MakeFromNormalizedFullPath(DirectoryName)); } }
/// <summary> /// Enumerate subdirectories in a given directory /// </summary> /// <returns>Sequence of directory references</returns> public static IEnumerable <DirectoryReference> EnumerateDirectories(DirectoryReference Location, string Pattern) { foreach (string DirectoryName in Directory.EnumerateDirectories(Location.FullName, Pattern)) { yield return(DirectoryReference.MakeFromNormalizedFullPath(DirectoryName)); } }
public override void SetUpSpecificEnvironment(ReadOnlyTargetRules Target, CppCompileEnvironment CompileEnvironment, LinkEnvironment LinkEnvironment) { CompileEnvironment.Definitions.Add("PLATFORM_LUMIN=1"); CompileEnvironment.Definitions.Add("USE_ANDROID_JNI=0"); CompileEnvironment.Definitions.Add("USE_ANDROID_FILE=0"); CompileEnvironment.Definitions.Add("USE_ANDROID_INPUT=0"); CompileEnvironment.Definitions.Add("USE_ANDROID_LAUNCH=0"); CompileEnvironment.Definitions.Add("USE_ANDROID_EVENTS=0"); CompileEnvironment.Definitions.Add("USE_ANDROID_OPENGL=0"); CompileEnvironment.Definitions.Add("WITH_OGGVORBIS=1"); DirectoryReference MLSDKDir = DirectoryReference.MakeFromNormalizedFullPath("$(MLSDK)"); CompileEnvironment.IncludePaths.SystemIncludePaths.Add(DirectoryReference.Combine(MLSDKDir, "lumin/stl/gnu-libstdc++/include")); CompileEnvironment.IncludePaths.SystemIncludePaths.Add(DirectoryReference.Combine(MLSDKDir, "lumin/stl/gnu-libstdc++/include/aarch64-linux-android")); CompileEnvironment.IncludePaths.SystemIncludePaths.Add(DirectoryReference.Combine(MLSDKDir, "include")); LinkEnvironment.LibraryPaths.Add(DirectoryReference.Combine(MLSDKDir, "lib/lumin")); LinkEnvironment.LibraryPaths.Add(DirectoryReference.Combine(MLSDKDir, "lumin/stl/gnu-libstdc++/lib")); if (!UseTegraGraphicsDebugger(Target.ProjectFile) || !UseTegraDebuggerStub(Target.ProjectFile)) { LinkEnvironment.AdditionalLibraries.Add("GLESv2"); LinkEnvironment.AdditionalLibraries.Add("EGL"); } if (UseTegraDebuggerStub(Target.ProjectFile)) { DirectoryReference TegraDebuggerDirectoryReference = new DirectoryReference(TegraDebuggerDir); LinkEnvironment.LibraryPaths.Add(DirectoryReference.Combine(TegraDebuggerDirectoryReference, "/target/android-kk-egl-t124-a32")); LinkEnvironment.LibraryPaths.Add(DirectoryReference.Combine(TegraDebuggerDirectoryReference, "/target/android-L-egl-t132-a64")); LinkEnvironment.AdditionalLibraries.Add("Nvidia_gfx_debugger_stub"); } LinkEnvironment.AdditionalLibraries.Add("ml_lifecycle"); LinkEnvironment.AdditionalLibraries.Add("ml_ext_logging"); LinkEnvironment.AdditionalLibraries.Add("ml_dispatch"); }
/// <summary> /// Manually deserialize a directory reference from a binary stream. /// </summary> /// <param name="Reader">Binary reader to read from</param> /// <returns>New DirectoryReference object</returns> public static DirectoryReference ReadDirectoryReference(this BinaryReader Reader) { string FullName = Reader.ReadString(); return((FullName.Length == 0) ? null : DirectoryReference.MakeFromNormalizedFullPath(FullName)); }