-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD.gn
40 lines (34 loc) · 897 Bytes
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//common-mk/mojom_bindings_generator.gni")
import("//common-mk/pkg_config.gni")
group("all") {
deps = [ ":cups_proxy" ]
}
generate_mojom_bindings("cups_proxy_mojo_bindings") {
mojo_root = "${platform2_root}"
sources = [ "mojom/proxy.mojom" ]
}
pkg_config("cups_proxy_common_pkg_deps") {
pkg_deps = [
"libbrillo",
"libchrome",
"libmicrohttpd",
"libmojo",
]
}
static_library("cups_proxy_common") {
deps = [ ":cups_proxy_mojo_bindings" ]
all_dependent_configs = [ ":cups_proxy_common_pkg_deps" ]
sources = [
"daemon.cc",
"mhd_http_request.cc",
"mhd_util.cc",
"mojo_handler.cc",
]
}
executable("cups_proxy") {
deps = [ ":cups_proxy_common" ]
sources = [ "main.cc" ]
}