Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1741)

Unified Diff: build/config/win/BUILD.gn

Issue 1749053002: Move //remoting/remoting_host_win.gypi:* to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update for component build of Windows Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/config/win/BUILD.gn
diff --git a/build/config/win/BUILD.gn b/build/config/win/BUILD.gn
index bf1e613c92a74d5b744f0d90f8156d6fdcedd096..c514c31cc4f0f3d387b58a374182f46d1b83170b 100644
--- a/build/config/win/BUILD.gn
+++ b/build/config/win/BUILD.gn
@@ -141,6 +141,7 @@ config("vs_code_analysis") {
# :runtime_library vs. :compiler.
config("runtime_library") {
cflags = []
+ libs = []
# Defines that set up the CRT.
defines = [
@@ -168,6 +169,19 @@ config("runtime_library") {
defines += [ "_USING_V110_SDK71_" ]
}
+ vcruntime_libs = []
+ if (is_debug) {
+ vcruntime_libs += [ "vcruntimed.lib" ]
+ if (visual_studio_version == "2015") {
+ vcruntime_libs += [ "ucrtd.lib" ]
+ }
+ } else {
+ vcruntime_libs += [ "vcruntime.lib" ]
+ if (visual_studio_version == "2015") {
+ vcruntime_libs += [ "ucrt.lib" ]
+ }
+ }
+
if (is_component_build) {
# Component mode: dynamic CRT. Since the library is shared, it requires
# exceptions or will give errors about things not matching, so keep
@@ -192,8 +206,10 @@ config("runtime_library") {
} else {
cflags += [ "/MT" ]
}
+ vcruntime_libs = []
}
}
+ libs += vcruntime_libs
}
# Sets the default Windows build version. This is separated because some
« no previous file with comments | « base/memory/ref_counted.cc ('k') | components/policy/BUILD.gn » ('j') | remoting/host/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698