Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit aee1094

Browse files
authored
Added the ability to specify the glfw vulkan library. (#731)
Requirement for #42225 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [ ] I listed at least one issue that this PR fixes in the description above. - [ ] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat
1 parent 5cab8e0 commit aee1094

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

build/secondary/third_party/glfw/BUILD.gn

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5+
import("glfw_args.gni")
6+
57
_checkout_dir = "//third_party/glfw"
68

79
config("relative_glfw_headers") {
@@ -117,6 +119,10 @@ source_set("glfw") {
117119
]
118120
}
119121

122+
if (glfw_vulkan_library != "") {
123+
defines += [ "_GLFW_VULKAN_LIBRARY=" + glfw_vulkan_library ]
124+
}
125+
120126
configs -= [ "//build/config/compiler:chromium_code" ]
121127
configs += [ "//build/config/compiler:no_chromium_code" ]
122128
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Copyright 2013 The Flutter Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
declare_args() {
6+
glfw_vulkan_library=""
7+
}

0 commit comments

Comments
 (0)