chromium/printing/buildflags/BUILD.gn

# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/buildflag_header.gni")
import("//printing/buildflags/buildflags.gni")

# This file is in a separate directory so all targets in the build can refer to
# the buildflag header to get the necessary preprocessor defines without
# bringing in any printing targets.

buildflag_header("buildflags") {
  header = "buildflags.h"

  flags = [
    "ENABLE_PRINTING=$enable_printing || $enable_printing_tests",
    "ENABLE_PRINT_PREVIEW=$enable_print_preview",
    "ENABLE_BASIC_PRINT_DIALOG=$enable_basic_print_dialog",
    "ENABLE_CONCURRENT_BASIC_PRINT_DIALOGS=$enable_concurrent_basic_print_dialogs",
    "ENABLE_OOP_BASIC_PRINT_DIALOG=$enable_oop_basic_print_dialog",
    "ENABLE_OOP_PRINTING_NO_OOP_BASIC_PRINT_DIALOG=$enable_oop_printing_no_oop_basic_print_dialog",
    "ENABLE_OOP_PRINTING=$enable_oop_printing",
    "USE_CUPS=$use_cups",
    "USE_CUPS_IPP=$use_cups_ipp",
  ]
}