1 # Copyright 2018 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.
5 import("//build/config/chrome_build.gni")
6 import("//build/config/ui.gni")
7 import("//chrome/process_version_rc_template.gni")
8 import("//testing/test.gni")
10 executable("notification_helper") {
12 "notification_helper.cc",
13 "notification_helper.rc",
14 "notification_helper_crash_reporter_client.cc",
15 "notification_helper_crash_reporter_client.h",
19 "//build/config/compiler:cet_shadow_stack",
20 "//build/config/win:console",
22 configs += [ "//build/config/win:windowed" ]
29 "//build/win:default_exe_manifest",
30 "//chrome/common:version_header",
31 "//chrome/install_static:install_static_util",
32 "//chrome/install_static:primary_module",
33 "//components/crash/core/app",
34 "//components/crash/core/app:crash_export_thunks",
35 "//components/version_info:channel",
38 libs = [ "runtimeobject.lib" ]
44 "com_server_module.cc",
45 "com_server_module.h",
46 "notification_activator.cc",
47 "notification_activator.h",
48 "notification_helper_util.cc",
49 "notification_helper_util.h",
56 "//chrome/common:non_code_constants",
57 "//chrome/install_static:install_static_util",
61 source_set("constants") {
63 "notification_helper_constants.cc",
64 "notification_helper_constants.h",
68 process_version_rc_template("version_resources") {
69 sources = [ "notification_helper_exe.ver" ]
70 output = "$target_gen_dir/notification_helper_exe.rc"
73 test("notification_helper_unittests") {
74 use_xvfb = use_xvfb_in_this_config
77 "com_server_module_unittest.cc",
78 "notification_helper_process_unittest.cc",
79 "run_all_unittests.cc",
85 "//base/test:test_support",
86 "//chrome/install_static:install_static_util",
87 "//chrome/install_static/test:test_support",
88 "//chrome/installer/setup:lib",
89 "//chrome/installer/util:with_no_strings",
93 data_deps = [ ":notification_helper" ]
95 libs = [ "runtimeobject.lib" ]