1# Copyright (c) 2022 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 "${ability_runtime_path}/frameworks/native/appkit:app_context", 45 "${worksched_frameworks_path}:workschedclient", 46 "${worksched_utils_path}:workschedutils", 47 ] 48 49 external_deps = [ 50 "ability_base:want", 51 "ability_runtime:ability_context_native", 52 "ability_runtime:abilitykit_native", 53 "ability_runtime:runtime", 54 "hiviewdfx_hilog_native:libhilog", 55 "ipc:ipc_core", 56 ] 57 58 relative_install_dir = "extensionability" 59 part_name = "${worksched_native_part_name}" 60} 61