• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 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/config/ohos/config.gni")
15import("//build/ohos.gni")
16import("//foundation/arkui/napi/napi.gni")
17
18config("config") {
19  visibility = [ ":*" ]
20
21  cflags = [
22    "-Wall",
23    "-Werror",
24    "-g3",
25    "-Wunused-variable",
26  ]
27}
28
29config("public_config") {
30}
31
32ohos_shared_library("aeabindk32") {
33  testonly = true
34  subsystem_name = "thirdparty"
35  part_name = "musl"
36  sources = [ "./aeabindk32.cpp" ]
37  libs = [ rebase_path(libcxx_ndk_shared_file) ]
38
39  include_dirs = [ "../cpp" ]
40  configs = [ ":config" ]
41
42  external_deps = [ "napi:ace_napi" ]
43
44  output_extension = "so"
45}
46ohos_shared_library("fnmatchndk32") {
47  testonly = true
48  subsystem_name = "thirdparty"
49  part_name = "musl"
50  sources = [ "./fnmatchndk32.cpp" ]
51  libs = [ rebase_path(libcxx_ndk_shared_file) ]
52
53  include_dirs = [ "../cpp" ]
54  configs = [ ":config" ]
55
56  external_deps = [ "napi:ace_napi" ]
57
58  output_extension = "so"
59}
60ohos_shared_library("fnmatchndk132") {
61  testonly = true
62  subsystem_name = "thirdparty"
63  part_name = "musl"
64  sources = [ "./fnmatchndk132.cpp" ]
65  libs = [ rebase_path(libcxx_ndk_shared_file) ]
66
67  include_dirs = [ "../cpp" ]
68  configs = [ ":config" ]
69
70  external_deps = [ "napi:ace_napi" ]
71
72  output_extension = "so"
73}
74ohos_shared_library("fnmatch1ndk32") {
75  testonly = true
76  subsystem_name = "thirdparty"
77  part_name = "musl"
78  sources = [ "./fnmatch1ndk32.cpp" ]
79  libs = [ rebase_path(libcxx_ndk_shared_file) ]
80
81  include_dirs = [ "../cpp" ]
82  configs = [ ":config" ]
83
84  external_deps = [ "napi:ace_napi" ]
85
86  output_extension = "so"
87}
88ohos_shared_library("otherstestndk32") {
89  testonly = true
90  subsystem_name = "thirdparty"
91  part_name = "musl"
92  sources = [ "./otherstestndk32.cpp" ]
93  libs = [ rebase_path(libcxx_ndk_shared_file) ]
94
95  include_dirs = [ "../cpp" ]
96  configs = [ ":config" ]
97
98  external_deps = [ "napi:ace_napi" ]
99
100  output_extension = "so"
101}
102ohos_shared_library("signalndk32") {
103  testonly = true
104  subsystem_name = "thirdparty"
105  part_name = "musl"
106  sources = [ "./signalndk32.cpp" ]
107  libs = [ rebase_path(libcxx_ndk_shared_file) ]
108
109  include_dirs = [ "../cpp" ]
110  configs = [ ":config" ]
111
112  external_deps = [ "napi:ace_napi" ]
113
114  output_extension = "so"
115}
116ohos_shared_library("timendk32") {
117  testonly = true
118  subsystem_name = "thirdparty"
119  part_name = "musl"
120  sources = [ "./timendk32.cpp" ]
121  libs = [ rebase_path(libcxx_ndk_shared_file) ]
122
123  include_dirs = [ "../cpp" ]
124  configs = [ ":config" ]
125
126  external_deps = [ "napi:ace_napi" ]
127
128  output_extension = "so"
129}
130ohos_shared_library("timexndk32") {
131  testonly = true
132  subsystem_name = "thirdparty"
133  part_name = "musl"
134  sources = [ "./timexndk32.cpp" ]
135  libs = [ rebase_path(libcxx_ndk_shared_file) ]
136
137  include_dirs = [ "../cpp" ]
138  configs = [ ":config" ]
139
140  external_deps = [ "napi:ace_napi" ]
141
142  output_extension = "so"
143}
144ohos_shared_library("localendk32") {
145  testonly = true
146  subsystem_name = "thirdparty"
147  part_name = "musl"
148  sources = [ "./localendk32.cpp" ]
149  libs = [ rebase_path(libcxx_ndk_shared_file) ]
150
151  include_dirs = [ "../cpp" ]
152  configs = [ ":config" ]
153
154  external_deps = [ "napi:ace_napi" ]
155
156  output_extension = "so"
157}
158