stuartmorgan 710f738dd6
Allow relative resource paths in GLFW embedding (#16944)
Currently every Linux runner has this code to allow relative resource paths; this moves it into the framework so that any embedder can get this behavior without that code needing to be in the template.

Rolls buildroot to pick up std::filesystem support in our libc++
2020-03-17 19:04:18 -07:00

19 lines
556 B
C++

// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_SHELL_PLATFORM_GLFW_PATH_UTILS_H_
#define FLUTTER_SHELL_PLATFORM_GLFW_PATH_UTILS_H_
#include <filesystem>
namespace flutter {
// Returns the path of the directory containing this executable, or an empty
// path if the directory cannot be found.
std::filesystem::path GetExecutableDirectory();
} // namespace flutter
#endif // FLUTTER_SHELL_PLATFORM_GLFW_PATH_UTILS_H_