1# Copyright 2021 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. 4import("//build/compiled_action.gni") 5 6# Generate C++ include file for the Chrome root store. 7compiled_action("gen_root_store_inc") { 8 tool = "//net/tools/root_store_tool:root_store_tool" 9 10 inputs = [ 11 "root_store.certs", 12 "root_store.textproto", 13 ] 14 outputs = [ 15 "${target_gen_dir}/chrome-root-store-inc.cc", 16 "${target_gen_dir}/chrome-ev-roots-inc.cc", 17 ] 18 args = [ 19 "--root-store=" + rebase_path("root_store.textproto", root_build_dir), 20 "--certs=" + rebase_path("root_store.certs", root_build_dir), 21 "--write-cpp-root-store=" + 22 rebase_path("${target_gen_dir}/chrome-root-store-inc.cc", 23 root_build_dir), 24 "--write-cpp-ev-roots=" + 25 rebase_path("${target_gen_dir}/chrome-ev-roots-inc.cc", root_build_dir), 26 ] 27} 28 29compiled_action("gen_root_store_test_inc") { 30 tool = "//net/tools/root_store_tool:root_store_tool" 31 32 inputs = [ 33 "test_store.certs", 34 "test_store.textproto", 35 ] 36 outputs = [ "${target_gen_dir}/chrome-root-store-test-data-inc.cc" ] 37 args = [ 38 "--root-store=" + rebase_path("test_store.textproto", root_build_dir), 39 "--certs=" + rebase_path("test_store.certs", root_build_dir), 40 "--write-cpp-root-store=" + 41 rebase_path("${target_gen_dir}/chrome-root-store-test-data-inc.cc", 42 root_build_dir), 43 ] 44} 45