From e7c061b842cc3de3ad1760f4ff81918f7fcc9b69 Mon Sep 17 00:00:00 2001 From: jiyong Date: Thu, 24 Feb 2022 22:24:14 -0800 Subject: [PATCH] add settings Signed-off-by: jiyong --- settings/BUILD.gn | 4 +- settings/settings_ets/entry/src/main/BUILD.gn | 62 +++++++++---------- 2 files changed, 32 insertions(+), 34 deletions(-) diff --git a/settings/BUILD.gn b/settings/BUILD.gn index 9860c0382..48d834c3c 100755 --- a/settings/BUILD.gn +++ b/settings/BUILD.gn @@ -13,7 +13,5 @@ group("settings") { testonly = true - deps = [ - "settings_ets:SettingsEtsTest", - ] + deps = [ "settings_ets:SettingsEtsTest" ] } diff --git a/settings/settings_ets/entry/src/main/BUILD.gn b/settings/settings_ets/entry/src/main/BUILD.gn index 7888732bc..fbc52811e 100755 --- a/settings/settings_ets/entry/src/main/BUILD.gn +++ b/settings/settings_ets/entry/src/main/BUILD.gn @@ -1,32 +1,32 @@ -# 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 +# 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("//test/xts/tools/build/suite.gni") - -ohos_js_hap_suite("SettingsEtsTest") { - hap_profile = "./entry/src/main/config.json" - deps = [ - ":settings_ets_assets", - ":settings_ets_resources", - ] - ets2abc = true - certificate_profile = "./signature/openharmony_sx.p7b" - hap_name = "SettingsEtsTest" -} -ohos_js_assets("settings_ets_assets") { - source_dir = "./entry/src/main/ets/MainAbility" -} -ohos_resources("settings_ets_resources") { - sources = [ "./entry/src/main/resources" ] - hap_profile = "./entry/src/main/config.json" -} + +import("//test/xts/tools/build/suite.gni") + +ohos_js_hap_suite("SettingsEtsTest") { + hap_profile = "./entry/src/main/config.json" + deps = [ + ":settings_ets_assets", + ":settings_ets_resources", + ] + ets2abc = true + certificate_profile = "./signature/openharmony_sx.p7b" + hap_name = "SettingsEtsTest" +} +ohos_js_assets("settings_ets_assets") { + source_dir = "./entry/src/main/ets/MainAbility" +} +ohos_resources("settings_ets_resources") { + sources = [ "./entry/src/main/resources" ] + hap_profile = "./entry/src/main/config.json" +} -- GitLab