1# Copyright 2024 Huawei Technologies Co., Ltd 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# ============================================================================ 15 16action("flatbuffers_install_action") { 17 script = "//third_party/flatbuffers/install.py" 18 outputs = [ 19 "${target_gen_dir}/flatbuffers-2.0.0/include/flatbuffers/base.h", 20 "${target_gen_dir}/flatbuffers-2.0.0/include/code_generators.h", 21 "${target_gen_dir}/flatbuffers-2.0.0/include/flatbuffers.h", 22 "${target_gen_dir}/flatbuffers-2.0.0/include/flatc.h", 23 "${target_gen_dir}/flatbuffers-2.0.0/include/flexbuffers.h", 24 "${target_gen_dir}/flatbuffers-2.0.0/include/grpc.h", 25 "${target_gen_dir}/flatbuffers-2.0.0/include/hash.h", 26 "${target_gen_dir}/flatbuffers-2.0.0/include/idl.h", 27 "${target_gen_dir}/flatbuffers-2.0.0/include/minireflect.h", 28 "${target_gen_dir}/flatbuffers-2.0.0/include/pch", 29 "${target_gen_dir}/flatbuffers-2.0.0/include/reflection_generated.h", 30 "${target_gen_dir}/flatbuffers-2.0.0/include/reflection.h", 31 "${target_gen_dir}/flatbuffers-2.0.0/include/registry.h", 32 "${target_gen_dir}/flatbuffers-2.0.0/include/stl_emulation.h", 33 "${target_gen_dir}/flatbuffers-2.0.0/include/util.h", 34 ] 35 inputs = [ "//third_party/flatbuffers/v2.0.0.tar.gz" ] 36 args = [] 37 args = [ 38 "--gen-dir", 39 rebase_path("${target_gen_dir}", root_build_dir), 40 "--source-dir", 41 rebase_path("//third_party/flatbuffers"), 42 ] 43} 44