summaryrefslogtreecommitdiff
path: root/chromium/net/data/ssl/chrome_root_store/BUILD.gn
blob: 38c4898e0a5f55ec9d1e773c51426120f725650f (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
33
34
35
36
37
38
39
40
# Copyright 2021 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/compiled_action.gni")

# Generate C++ include file for the Chrome root store.
compiled_action("gen_root_store_inc") {
  tool = "//net/tools/root_store_tool:root_store_tool"

  inputs = [
    "root_store.certs",
    "root_store.textproto",
  ]
  outputs = [ "${target_gen_dir}/chrome-root-store-inc.cc" ]
  args = [
    "--root-store=" + rebase_path("root_store.textproto", root_build_dir),
    "--certs=" + rebase_path("root_store.certs", root_build_dir),
    "--write-cpp=" + rebase_path("${target_gen_dir}/chrome-root-store-inc.cc",
                                 root_build_dir),
    "--cpp-output-format=root",
  ]
}

compiled_action("gen_root_store_test_inc") {
  tool = "//net/tools/root_store_tool:root_store_tool"

  inputs = [
    "test_store.certs",
    "test_store.textproto",
  ]
  outputs = [ "${target_gen_dir}/chrome-root-store-test-data-inc.cc" ]
  args = [
    "--root-store=" + rebase_path("test_store.textproto", root_build_dir),
    "--certs=" + rebase_path("test_store.certs", root_build_dir),
    "--write-cpp=" +
        rebase_path("${target_gen_dir}/chrome-root-store-test-data-inc.cc",
                    root_build_dir),
    "--cpp-output-format=root",
  ]
}