Index: build/config/win/BUILD.gn |
diff --git a/build/config/win/BUILD.gn b/build/config/win/BUILD.gn |
index 7d8688ba373bc7d601a9f19fbdd21923e3dac475..b5586952f3162ea040efebda65632bc6205557c7 100644 |
--- a/build/config/win/BUILD.gn |
+++ b/build/config/win/BUILD.gn |
@@ -180,3 +180,18 @@ config("lean_and_mean") { |
config("nominmax") { |
defines = [ "NOMINMAX" ] |
} |
+ |
+# Target WinRT ---------------------------------------------------------------- |
+ |
+# When targeting Windows Runtime, certain compiler/linker flags are necessary. |
+ |
+config("target_winrt") { |
+ defines = [ |
+ "WINRT", |
+ "WINAPI_FAMILY=WINAPI_FAMILY_PC_APP", |
+ ] |
+ cflags_cc = [ |
+ "/ZW", |
+ "/EHsc", |
+ ] |
+} |