1# Copyright 2016 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//build/buildflag_header.gni") 6import("//build/config/win/control_flow_guard.gni") 7 8declare_args() { 9 # Indicates if the handle verifier should operate in a single module mode. By 10 # default a single instance gets shared by all the modules. 11 single_module_mode_handle_verifier = false 12} 13 14# Ensure that the handle verifier is always used in a single module mode for the 15# component builds. 16if (is_component_build) { 17 single_module_mode_handle_verifier = true 18} 19 20buildflag_header("base_win_buildflags") { 21 header = "base_win_buildflags.h" 22 header_dir = "base/win" 23 flags = [ 24 "SINGLE_MODULE_MODE_HANDLE_VERIFIER=$single_module_mode_handle_verifier", 25 "WIN_ENABLE_CFG_GUARDS=$win_enable_cfg_guards", 26 ] 27} 28 29static_library("pe_image") { 30 sources = [ 31 "../no_destructor.h", 32 "current_module.h", 33 "pe_image.cc", 34 "pe_image.h", 35 ] 36} 37