| 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/config/sanitizers/sanitizers.gni") | |
| 7 import("//build/win/message_compiler.gni") | |
| 8 import("//chrome/process_version_rc_template.gni") | |
| 9 | 6 |
| 10 declare_args() { | 7 declare_args() { |
| 11 # 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 |
| 12 # default a single instance gets shared by all the modules. | 9 # default a single instance gets shared by all the modules. |
| 13 single_module_mode_handle_verifier = false | 10 single_module_mode_handle_verifier = false |
| 14 } | 11 } |
| 15 | 12 |
| 16 # 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 |
| 17 # component builds. | 14 # component builds. |
| 18 if (is_component_build) { | 15 if (is_component_build) { |
| 19 single_module_mode_handle_verifier = true | 16 single_module_mode_handle_verifier = true |
| 20 } | 17 } |
| 21 | 18 |
| 22 buildflag_header("base_win_features") { | 19 buildflag_header("base_win_features") { |
| 23 header = "base_features.h" | 20 header = "base_features.h" |
| 24 header_dir = "base/win" | 21 header_dir = "base/win" |
| 25 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" ] |
| 26 } | 23 } |
| 27 | 24 |
| 28 message_compiler("eventlog_messages") { | |
| 29 visibility = [ | |
| 30 "//base:base", | |
| 31 ":eventlog_provider", | |
| 32 ] | |
| 33 | |
| 34 sources = [ | |
| 35 "eventlog_messages.mc", | |
| 36 ] | |
| 37 | |
| 38 user_mode_logging = false | |
| 39 compile_generated_code = false | |
| 40 } | |
| 41 | |
| 42 process_version_rc_template("eventlog_provider_dll_version") { | |
| 43 sources = [ | |
| 44 "eventlog_provider.ver", | |
| 45 ] | |
| 46 output = "$target_gen_dir/eventlog_provider_dll_version.rc" | |
| 47 } | |
| 48 | |
| 49 shared_library("eventlog_provider") { | |
| 50 sources = [ | |
| 51 "$root_gen_dir/base/win/eventlog_messages.rc", | |
| 52 "eventlog_provider.cc", | |
| 53 ] | |
| 54 | |
| 55 if (!is_asan) { | |
| 56 ldflags = [ "/NOENTRY" ] | |
| 57 } | |
| 58 | |
| 59 deps = [ | |
| 60 "//base/win:eventlog_messages", | |
| 61 "//base/win:eventlog_provider_dll_version", | |
| 62 ] | |
| 63 } | |
| 64 | |
| 65 static_library("pe_image") { | 25 static_library("pe_image") { |
| 66 sources = [ | 26 sources = [ |
| 67 "pe_image.cc", | 27 "pe_image.cc", |
| 68 "pe_image.h", | 28 "pe_image.h", |
| 69 ] | 29 ] |
| 70 } | 30 } |
| OLD | NEW |