BUILD.gn 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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
  3. # found in the LICENSE file.
  4. import("//build/buildflag_header.gni")
  5. import("//build/config/win/control_flow_guard.gni")
  6. declare_args() {
  7. # Indicates if the handle verifier should operate in a single module mode. By
  8. # default a single instance gets shared by all the modules.
  9. single_module_mode_handle_verifier = false
  10. }
  11. # Ensure that the handle verifier is always used in a single module mode for the
  12. # component builds.
  13. if (is_component_build) {
  14. single_module_mode_handle_verifier = true
  15. }
  16. buildflag_header("base_win_buildflags") {
  17. header = "base_win_buildflags.h"
  18. header_dir = "base/win"
  19. flags = [
  20. "SINGLE_MODULE_MODE_HANDLE_VERIFIER=$single_module_mode_handle_verifier",
  21. "WIN_ENABLE_CFG_GUARDS=$win_enable_cfg_guards",
  22. ]
  23. }
  24. static_library("pe_image") {
  25. sources = [
  26. "../no_destructor.h",
  27. "current_module.h",
  28. "pe_image.cc",
  29. "pe_image.h",
  30. ]
  31. }