BUILD.gn 779 B

123456789101112131415161718192021
  1. # Copyright 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("//extensions/buildflags/buildflags.gni")
  6. # TODO(crbug.com/731689): Assert that extensions are enabled.
  7. # This file is in a separate directory so all targets in the build can refer to
  8. # the buildflag header to get the necessary preprocessor defines without
  9. # bringing in all of extensions. Other targets can depend on this target
  10. # regardless of whether extensions are enabled.
  11. buildflag_header("buildflags") {
  12. header = "buildflags.h"
  13. flags = [
  14. "ENABLE_EXTENSIONS=$enable_extensions",
  15. "ENABLE_AUTOFILL_ASSISTANT_API=$enable_autofill_assistant_api",
  16. ]
  17. }