OLD | NEW |
1 # Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//build/win/message_compiler.gni") | |
7 | 6 |
8 declare_args() { | 7 declare_args() { |
9 # Indicates if the handle verifier should operate in a single module mode. By | 8 # Indicates if the handle verifier should operate in a single module mode. By |
10 # default a single instance gets shared by all the modules. | 9 # default a single instance gets shared by all the modules. |
11 single_module_mode_handle_verifier = false | 10 single_module_mode_handle_verifier = false |
12 } | 11 } |
13 | 12 |
14 # Ensure that the handle verifier is always used in a single module mode for the | 13 # Ensure that the handle verifier is always used in a single module mode for the |
15 # component builds. | 14 # component builds. |
16 if (is_component_build) { | 15 if (is_component_build) { |
17 single_module_mode_handle_verifier = true | 16 single_module_mode_handle_verifier = true |
18 } | 17 } |
19 | 18 |
20 buildflag_header("base_win_features") { | 19 buildflag_header("base_win_features") { |
21 header = "base_features.h" | 20 header = "base_features.h" |
22 header_dir = "base/win" | 21 header_dir = "base/win" |
23 flags = [ "SINGLE_MODULE_MODE_HANDLE_VERIFIER=$single_module_mode_handle_verif
ier" ] | 22 flags = [ "SINGLE_MODULE_MODE_HANDLE_VERIFIER=$single_module_mode_handle_verif
ier" ] |
24 } | 23 } |
25 | |
26 message_compiler("eventlog_messages") { | |
27 visibility = [ | |
28 "//base:base", | |
29 "//chrome:eventlog_provider", | |
30 ] | |
31 | |
32 sources = [ | |
33 "eventlog_messages.mc", | |
34 ] | |
35 | |
36 user_mode_logging = false | |
37 compile_generated_code = false | |
38 } | |
OLD | NEW |