1# Copyright (c) 2022-2023 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("//foundation/resourceschedule/work_scheduler/workscheduler.gni") 15 16config("worksched_private_config") { 17 include_dirs = [ 18 "${worksched_service_path}/zidl/include", 19 "${ability_runtime_path}/frameworks/native/ability/native/", 20 "//foundation/arkui/napi/native_engine", 21 ] 22} 23 24config("worksched_public_config") { 25 include_dirs = [ "include" ] 26} 27 28ohos_shared_library("workschedextension") { 29 sources = [ 30 "${worksched_service_path}/zidl/src/work_scheduler_stub.cpp", 31 "${worksched_service_path}/zidl/src/work_scheduler_stub_imp.cpp", 32 "src/js_work_scheduler_extension.cpp", 33 "src/js_work_scheduler_extension_context.cpp", 34 "src/work_scheduler_extension.cpp", 35 "src/work_scheduler_extension_context.cpp", 36 "src/work_scheduler_extension_module_loader.cpp", 37 ] 38 39 configs = [ ":worksched_private_config" ] 40 41 public_configs = [ ":worksched_public_config" ] 42 43 deps = [ 44 "${worksched_frameworks_path}:workschedclient", 45 "${worksched_utils_path}:workschedutils", 46 ] 47 48 external_deps = [ 49 "ability_base:want", 50 "ability_runtime:ability_context_native", 51 "ability_runtime:app_context", 52 "ability_runtime:extensionkit_native", 53 "ability_runtime:runtime", 54 "common_event_service:cesfwk_innerkits", 55 "eventhandler:libeventhandler", 56 "hilog:libhilog", 57 "ipc:ipc_single", 58 "napi:ace_napi", 59 ] 60 61 relative_install_dir = "extensionability" 62 subsystem_name = "resourceschedule" 63 part_name = "${worksched_native_part_name}" 64} 65