mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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++
19 lines
556 B
C++
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_
|