• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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/config/components/ets_frontend/ets2abc_config.gni")
15import("//build/ohos.gni")
16import("//foundation/arkui/ace_engine/ace_config.gni")
17
18ohos_shared_library("focusController_ani") {
19  deps = [ "$ace_root/build:libace_compatible" ]
20  include_dirs = [ "./include" ]
21  sources = [
22    "./src/focusController.cpp"
23  ]
24  external_deps = [
25    "napi:ace_napi",
26    "runtime_core:ani",
27  ]
28  configs = [ "$ace_root:ace_config" ]
29  part_name = "ace_engine"
30  subsystem_name = "arkui"
31  output_extension = "so"
32}
33
34generate_static_abc("focusController") {
35  base_url = "./ets"
36  files = [
37    "./ets/@ohos.arkui.focusController.ets",
38    "./ets/arkui.component.focus.ets",
39  ]
40  is_boot_abc = "True"
41  device_dst_file = "/system/framework/focusController.abc"
42}
43
44ohos_prebuilt_etc("focusController_etc") {
45  source = "$target_out_dir/focusController.abc"
46  module_install_dir = "framework"
47  part_name = "ace_engine"
48  subsystem_name = "arkui"
49  deps = [ ":focusController" ]
50}
51