xref: /aosp_15_r20/external/cronet/url/ipc/BUILD.gn (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("//testing/test.gni")
6
7component("url_ipc") {
8  sources = [
9    "url_ipc_export.h",
10    "url_param_traits.cc",
11    "url_param_traits.h",
12  ]
13
14  defines = [ "URL_IPC_IMPLEMENTATION" ]
15
16  public_deps = [
17    "//ipc",
18    "//url",
19  ]
20  deps = [ "//base" ]
21  configs += [ "//build/config/compiler:wexit_time_destructors" ]
22}
23
24# IPC unit tests aren't build on iOS.
25if (!is_ios) {
26  source_set("url_ipc_unittests") {
27    testonly = true
28
29    sources = [ "url_param_traits_unittest.cc" ]
30
31    deps = [
32      ":url_ipc",
33      "//base",
34      "//ipc:test_support",
35      "//testing/gtest",
36      "//url:url",
37    ]
38  }
39}
40