From a01b4d78a4edc65e413b6a97a1b04cfd18b414d5 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Tue, 24 Jul 2018 18:21:36 -0700 Subject: [PATCH] build: [gn] link dwmapi in component build (#13773) --- BUILD.gn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 68bc570bdc1ff..0a613878164d7 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -217,6 +217,7 @@ static_library("electron_lib") { ] defines = [] + libs = [] extra_source_filters = [] if (!is_linux) { @@ -280,7 +281,7 @@ static_library("electron_lib") { ] defines += [ "MAS_BUILD" ] } else { - libs = [ + libs += [ "Squirrel.framework", "ReactiveCocoa.framework", "Mantle.framework", @@ -315,6 +316,7 @@ static_library("electron_lib") { } if (is_win) { sources += filenames_gypi.lib_sources_win + libs += [ "dwmapi.lib" ] } if (is_linux || is_win) { deps += [ "//third_party/breakpad:client" ]