Index: chrome/common/win/BUILD.gn |
diff --git a/chrome/common/win/BUILD.gn b/chrome/common/win/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f67201394cfbb500f12a50db71f65e47b920284d |
--- /dev/null |
+++ b/chrome/common/win/BUILD.gn |
@@ -0,0 +1,44 @@ |
+# Copyright 2017 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+import("//build/config/sanitizers/sanitizers.gni") |
+import("//build/win/message_compiler.gni") |
+import("//chrome/process_version_rc_template.gni") |
+ |
+message_compiler("eventlog_messages") { |
+ visibility = [ |
+ "//chrome/common:common", |
+ ":eventlog_provider", |
+ ] |
+ |
+ sources = [ |
+ "eventlog_messages.mc", |
+ ] |
+ |
+ user_mode_logging = false |
+ compile_generated_code = false |
+} |
+ |
+process_version_rc_template("eventlog_provider_dll_version") { |
+ sources = [ |
+ "eventlog_provider.ver", |
+ ] |
+ output = "$target_gen_dir/eventlog_provider_dll_version.rc" |
+} |
+ |
+shared_library("eventlog_provider") { |
+ sources = [ |
+ "$root_gen_dir/chrome/common/win/eventlog_messages.rc", |
+ "eventlog_provider.cc", |
+ ] |
+ |
+ if (!is_asan) { |
+ ldflags = [ "/NOENTRY" ] |
+ } |
+ |
+ deps = [ |
+ ":eventlog_messages", |
+ ":eventlog_provider_dll_version", |
+ ] |
+} |