Update code documentation for enum in EWK headers
[platform/framework/web/chromium-efl.git] / chrome / notification_helper / BUILD.gn
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.
4
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")
9
10 executable("notification_helper") {
11   sources = [
12     "notification_helper.cc",
13     "notification_helper.rc",
14     "notification_helper_crash_reporter_client.cc",
15     "notification_helper_crash_reporter_client.h",
16   ]
17
18   configs -= [
19     "//build/config/compiler:cet_shadow_stack",
20     "//build/config/win:console",
21   ]
22   configs += [ "//build/config/win:windowed" ]
23
24   deps = [
25     ":constants",
26     ":lib",
27     ":version_resources",
28     "//base",
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",
36   ]
37
38   libs = [ "runtimeobject.lib" ]
39 }
40
41 source_set("lib") {
42   visibility = [ ":*" ]
43   sources = [
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",
50     "trace_util.cc",
51     "trace_util.h",
52   ]
53
54   deps = [
55     "//base",
56     "//chrome/common:non_code_constants",
57     "//chrome/install_static:install_static_util",
58   ]
59 }
60
61 source_set("constants") {
62   sources = [
63     "notification_helper_constants.cc",
64     "notification_helper_constants.h",
65   ]
66 }
67
68 process_version_rc_template("version_resources") {
69   sources = [ "notification_helper_exe.ver" ]
70   output = "$target_gen_dir/notification_helper_exe.rc"
71 }
72
73 test("notification_helper_unittests") {
74   use_xvfb = use_xvfb_in_this_config
75
76   sources = [
77     "com_server_module_unittest.cc",
78     "notification_helper_process_unittest.cc",
79     "run_all_unittests.cc",
80   ]
81
82   deps = [
83     ":lib",
84     "//base",
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",
90     "//testing/gtest",
91   ]
92
93   data_deps = [ ":notification_helper" ]
94
95   libs = [ "runtimeobject.lib" ]
96 }