• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 Huawei Device Co., Ltd.
2#
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to
5# deal in the Software without restriction, including without limitation the
6# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7# sell copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9#
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12#
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19# IN THE SOFTWARE.
20
21import("//build/ohos.gni")
22
23ohos_ndk_library("libuv_ndk") {
24  ndk_description_file = "./libuv.ndk.json"
25  min_compact_version = "1"
26  output_name = "uv"
27  output_extension = "so"
28}
29
30ohos_ndk_headers("libuv_header") {
31  dest_dir = "$ndk_headers_out_dir"
32  sources = [ "include/uv_ndk/uv.h" ]
33}
34
35ohos_ndk_headers("libuv_uv_header") {
36  dest_dir = "$ndk_headers_out_dir/uv"
37  sources = [
38    "include/uv/aix.h",
39    "include/uv/bsd.h",
40    "include/uv/darwin.h",
41    "include/uv/errno.h",
42    "include/uv/linux.h",
43    "include/uv/os390.h",
44    "include/uv/posix.h",
45    "include/uv/stdint-msvc2008.h",
46    "include/uv/sunos.h",
47    "include/uv/threadpool.h",
48    "include/uv/tree.h",
49    "include/uv/unix.h",
50    "include/uv/version.h",
51    "include/uv/win.h",
52  ]
53}
54