summaryrefslogtreecommitdiff
path: root/chromium/base/util/type_safety/BUILD.gn
blob: c4bc96474a2537ebc86c11025bb2aebfa8796c03 (plain)
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
# Copyright (c) 2019 The Chromium 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("//build/config/jumbo.gni")
import("//build/nocompile.gni")

# Change this target's type to jumbo_component if it starts to contain more than
# just headers. Header-only targets cannot be compiled to libraries, so it must
# remain a source_set for now.
source_set("type_safety") {
  sources = [
    "id_type.h",
    "token_type.h",
  ]

  deps = [ "//base" ]
}

source_set("tests") {
  testonly = true
  sources = [
    "id_type_unittest.cc",
    "token_type_unittest.cc",
  ]

  deps = [
    ":type_safety",
    "//base",
    "//testing/gtest",
  ]
}