17777dab0Sopenharmony_ci# Copyright 2022 Huawei Technologies Co., Ltd 27777dab0Sopenharmony_ci# 37777dab0Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 47777dab0Sopenharmony_ci# you may not use this file except in compliance with the License. 57777dab0Sopenharmony_ci# You may obtain a copy of the License at 67777dab0Sopenharmony_ci# 77777dab0Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 87777dab0Sopenharmony_ci# 97777dab0Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 107777dab0Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 117777dab0Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 127777dab0Sopenharmony_ci# See the License for the specific language governing permissions and 137777dab0Sopenharmony_ci# limitations under the License. 147777dab0Sopenharmony_ci# ============================================================================ 157777dab0Sopenharmony_ci 167777dab0Sopenharmony_ciimport("//build/ohos.gni") 177777dab0Sopenharmony_ci 187777dab0Sopenharmony_ciohos_ndk_headers("mindspore_header") { 197777dab0Sopenharmony_ci dest_dir = "$ndk_headers_out_dir/mindspore" 207777dab0Sopenharmony_ci sources = [ 217777dab0Sopenharmony_ci "context.h", 227777dab0Sopenharmony_ci "data_type.h", 237777dab0Sopenharmony_ci "format.h", 247777dab0Sopenharmony_ci "model.h", 257777dab0Sopenharmony_ci "status.h", 267777dab0Sopenharmony_ci "tensor.h", 277777dab0Sopenharmony_ci "types.h", 287777dab0Sopenharmony_ci ] 297777dab0Sopenharmony_ci} 307777dab0Sopenharmony_ci 317777dab0Sopenharmony_ciohos_ndk_library("mindspore_lib") { 327777dab0Sopenharmony_ci output_name = "mindspore_lite_ndk" 337777dab0Sopenharmony_ci output_extension = "so" 347777dab0Sopenharmony_ci ndk_description_file = "./mindspore_lib.ndk.json" 357777dab0Sopenharmony_ci system_capability = "SystemCapability.Ai.MindSpore" 367777dab0Sopenharmony_ci min_compact_version = "9" 377777dab0Sopenharmony_ci} 38