• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15import("//build/ohos/ndk/ndk.gni")
16import("//foundation/distributeddatamgr/udmf/udmf.gni")
17
18ohos_ndk_headers("udmf_ndk_header") {
19  dest_dir = "$ndk_headers_out_dir/database/udmf/"
20  sources = [
21    "./include/udmf.h",
22    "./include/udmf_err_code.h",
23    "./include/udmf_meta.h",
24    "./include/uds.h",
25    "./include/utd.h",
26  ]
27}
28
29ohos_ndk_library("libudmf") {
30  output_name = "udmf"
31  output_extension = "so"
32  system_capability = "SystemCapability.DistributedDataManager.UDMF.Core"
33  ndk_description_file = "./libudmf.ndk.json"
34  min_compact_version = "12"
35  system_capability_headers = [
36    "$ndk_headers_out_dir/database/udmf/udmf_err_code.h",
37    "$ndk_headers_out_dir/database/udmf/udmf_meta.h",
38    "$ndk_headers_out_dir/database/udmf/udmf.h",
39    "$ndk_headers_out_dir/database/udmf/uds.h",
40    "$ndk_headers_out_dir/database/udmf/utd.h",
41  ]
42}
43