summaryrefslogtreecommitdiff
path: root/base/trace_event/etw_manifest/BUILD.gn
blob: 19c4ecfdc40a2c7bc8c7f09e6f9b41dafec8d95c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 2015 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/win/message_compiler.gni")

assert(is_win, "This only runs on Windows.")

message_compiler("chrome_events_win") {
  visibility = [
    "//base/*",
    "//chrome:main_dll",
  ]

  sources = [
    "chrome_events_win.man",
  ]

  user_mode_logging = true

  # The only code generated from chrome_events_win.man is a header file that
  # is included by trace_event_etw_export_win.cc, so there is no need to
  # compile any generated code. The other thing which compile_generated_code
  # controls in this context is linking in the .res file generated from the
  # manifest. However this is only needed for ETW provider registration which
  # is done by UIforETW (https://github.com/google/UIforETW) and therefore the
  # manifest resource can be skipped in Chrome.
  compile_generated_code = false
}