diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-06-19 10:23:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-19 10:23:16 -0700 |
| commit | bb9ca29160f5d95f3860504262693ea650d96be5 (patch) | |
| tree | 04f502283ed818f661e368b3d8d1ba5ce875d1d2 /source/slang/compiler.h | |
| parent | cafed774d99f95bce6f182599913f3417dc68a3a (diff) | |
| parent | 634522da69b14b38c15b14d6b717b1289812e9bb (diff) | |
Merge pull request #29 from tfoleyNV/auto-import
Allow for automatic importing of Slang code
Diffstat (limited to 'source/slang/compiler.h')
| -rw-r--r-- | source/slang/compiler.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/source/slang/compiler.h b/source/slang/compiler.h index f34be794b..38640fd0f 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -91,6 +91,26 @@ namespace Slang Dictionary<String, String> preprocessorDefinitions; }; + + struct SearchDirectory + { + enum Kind + { + Default, + AutoImport, + }; + + SearchDirectory() = default; + SearchDirectory(SearchDirectory const& other) = default; + SearchDirectory(String const& path, Kind kind) + : path(path) + , kind(kind) + {} + + String path; + Kind kind; + }; + class CompileOptions { public: @@ -98,7 +118,7 @@ namespace Slang CodeGenTarget Target = CodeGenTarget::Unknown; // Directories to search for `#include` files or `import`ed modules - List<String> SearchDirectories; + List<SearchDirectory> searchDirectories; // Definitions to provide during preprocessing Dictionary<String, String> preprocessorDefinitions; |
