• 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/ohos.gni")
15import("//foundation/filemanagement/user_file_service/filemanagement_aafwk.gni")
16
17group("user_file_managers") {
18  deps = [ ":external_file_manager_hap" ]
19}
20
21ohos_hap("external_file_manager_hap") {
22  hap_profile = "file_extension_hap/entry/src/main/module.json"
23  deps = [
24    ":external_file_manager_js_assets",
25    ":external_file_manager_resources",
26  ]
27  certificate_profile = "signature/fileextension.p7b"
28  hap_name = "external_file_manager"
29  subsystem_name = "filemanagement"
30  part_name = "user_file_service"
31  module_install_dir = "app/com.ohos.UserFile.ExternalFileManager"
32}
33
34ohos_js_assets("external_file_manager_js_assets") {
35  hap_profile = "file_extension_hap/entry/src/main/module.json"
36  ets2abc = true
37  source_dir = "file_extension_hap/entry/src/main/ets"
38}
39
40ohos_app_scope("external_file_manager_app_profile") {
41  app_profile = "file_extension_hap/AppScope/app.json"
42  sources = [ "file_extension_hap/AppScope/resources" ]
43}
44
45ohos_resources("external_file_manager_resources") {
46  sources = [ "file_extension_hap/entry/src/main/resources" ]
47  deps = [ ":external_file_manager_app_profile" ]
48  hap_profile = "file_extension_hap/entry/src/main/module.json"
49}
50