From 9cb75371f5ea45640ae0e3998eb27bcda0a22cd9 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 23 Apr 2019 17:19:20 -0400 Subject: Feature/premake build (#951) * * Remove Makefile * Document how to create build using premake5 * Added support for finding the executable path * If binDir not set on command line use the executable path * Fix getting exe path on linux. * Removed CalcExecutablePath from Path:: interface, made implementation internal. * Documentation improvements. * Fixes based on review * Fix some typos * Removed unused/needed global --- source/core/slang-io.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/core/slang-io.h') diff --git a/source/core/slang-io.h b/source/core/slang-io.h index 177671442..654a88d1a 100644 --- a/source/core/slang-io.h +++ b/source/core/slang-io.h @@ -50,6 +50,11 @@ namespace Slang static SlangResult GetPathType(const String & path, SlangPathType* pathTypeOut); static SlangResult GetCanonical(const String & path, String& canonicalPathOut); + + /// Returns the executable path + /// @return The path in platform native format. Returns empty string if failed. + static String GetExecutablePath(); + }; } -- cgit v1.2.3