1 //
2 // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
7 // system_utils.h: declaration of OS-specific utility functions
8 
9 #ifndef COMMON_SYSTEM_UTILS_H_
10 #define COMMON_SYSTEM_UTILS_H_
11 
12 #include "common/angleutils.h"
13 #include "common/Optional.h"
14 
15 namespace angle
16 {
17 
18 const char *GetExecutablePath();
19 const char *GetExecutableDirectory();
20 const char *GetSharedLibraryExtension();
21 Optional<std::string> GetCWD();
22 bool SetCWD(const char *dirName);
23 bool SetEnvironmentVar(const char *variableName, const char *value);
24 
25 }  // namespace angle
26 
27 #endif  // COMMON_SYSTEM_UTILS_H_
28