Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions shell/platform/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ group("platform") {
]
} else if (is_linux) {
deps = []
} else if (is_win || is_fuchsia) {
# There is no platform target on Windows. Fuchsia has its own runner
# implementation.
} else if (is_win) {
deps = [
"windows",
]
} else if ( is_fuchsia) {
# Fuchsia has its own runner implementation.
deps = []
} else {
assert(false, "Unknown/Unsupported platform.")
Expand Down
12 changes: 11 additions & 1 deletion shell/platform/common/cpp/client_wrapper/publish.gni
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ template("publish_client_wrapper") {
}

copy("${template_target_name}_publish_includes") {
visibility = [ ":$template_target_name" ]
visibility = [
":$template_target_name",
":${template_target_name}_publish_sources",
]

sources = invoker.public
outputs = [
Expand All @@ -38,5 +41,12 @@ template("publish_client_wrapper") {
outputs = [
"$publish_dir_root/{{source_file_part}}",
]

# GN on Windows appears to do #include checks even for copy
# targets, so add the dependency to the headers to satisfy
# the check.
deps = [
":${template_target_name}_publish_includes",
]
}
}
6 changes: 6 additions & 0 deletions shell/platform/glfw/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ source_set("flutter_glfw") {
"$flutter_root/shell/platform/linux/config:x11",
]
}

if (is_win) {
deps += [
"//build/secondary/third_party/glfw",
]
}
}

copy("publish_headers_glfw") {
Expand Down
22 changes: 22 additions & 0 deletions shell/platform/windows/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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.

assert(is_win)

group("windows") {
deps = [
":flutter_windows",
"$flutter_root/shell/platform/glfw:publish_headers_glfw",
"$flutter_root/shell/platform/common/cpp/client_wrapper:publish_wrapper",
"$flutter_root/shell/platform/glfw/client_wrapper:publish_wrapper_glfw",
]
}

shared_library("flutter_windows") {
deps = [
"$flutter_root/shell/platform/glfw:flutter_glfw",
]

public_configs = [ "$flutter_root:config" ]
}