diff --git a/bundle.json b/bundle.json index 9dbf7bac7b41802eaa62d97b5aed08a3696b0675..0cf3d352aad23b9b2c7f5b4709c5d87fbe1773aa 100755 --- a/bundle.json +++ b/bundle.json @@ -42,7 +42,6 @@ "//base/startup/init_lite/services/begetctl:begetctl_cmd", "//base/startup/init_lite/services/modules:modules", "//base/startup/init_lite/interfaces/innerkits:libbegetutil", - "//base/startup/init_lite/interfaces/kits/syscap:deviceinfo_ndk", "//base/startup/init_lite/interfaces/innerkits:libbeget_proxy", "//base/startup/init_lite/interfaces/innerkits/file:libfile", "//base/startup/init_lite/interfaces/innerkits/socket:libsocket", @@ -52,7 +51,7 @@ "//base/startup/init_lite/interfaces/innerkits/sandbox:libsandbox", "//base/startup/init_lite/test/exec_test:exectest", "//base/startup/init_lite/interfaces/innerkits/control_fd:libcontrolfd", - "//base/startup/init_lite/interfaces/kits/jskits:syspara_js_init" + "//base/startup/init_lite/interfaces/kits:kitsgroup" ], "inner_kits": [ { diff --git a/interfaces/kits/BUILD.gn b/interfaces/kits/BUILD.gn new file mode 100755 index 0000000000000000000000000000000000000000..ff4552709169e255299764aaee6984bba374470c --- /dev/null +++ b/interfaces/kits/BUILD.gn @@ -0,0 +1,28 @@ +# Copyright (c) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/ohos.gni") + +group("kitsgroup") { + deps = [ + "//base/startup/init_lite/interfaces/innerkits:libbeget_proxy", + "//base/startup/init_lite/interfaces/innerkits:libbegetutil", + ] + deps += [ "syscap:deviceinfo_ndk" ] + if (support_jsapi) { + deps += [ + "jskits:deviceinfo", + "jskits:systemparameter", + ] + } +} diff --git a/interfaces/kits/jskits/BUILD.gn b/interfaces/kits/jskits/BUILD.gn index 4efa80b05cd55fb731c1c1aa508ab53885360d09..ed161d14fc14c3cd7803054d7a86460b72e387ef 100755 --- a/interfaces/kits/jskits/BUILD.gn +++ b/interfaces/kits/jskits/BUILD.gn @@ -55,16 +55,3 @@ ohos_shared_library("systemparameter") { subsystem_name = "startup" part_name = "init" } - -group("syspara_js_init") { - deps = [ - "//base/startup/init_lite/interfaces/innerkits:libbeget_proxy", - "//base/startup/init_lite/interfaces/innerkits:libbegetutil", - ] - if (support_jsapi) { - deps += [ - ":deviceinfo", - ":systemparameter", - ] - } -}