xref: /aosp_15_r20/external/cronet/build/config/win/console_app.gni (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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/config/sanitizers/sanitizers.gni")
6
7declare_args() {
8  # If true, builds as a console app (rather than a windowed app), which allows
9  # logging to be printed to the user. This will cause a terminal window to pop
10  # up when the executable is not run from the command line, so should only be
11  # used for development. Only has an effect on Windows builds.
12  win_console_app = false
13}
14
15if (is_win && is_asan) {
16  # AddressSanitizer build should be a console app since it writes to stderr.
17  win_console_app = true
18}
19