• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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("//arkcompiler/runtime_core/ark_config.gni")
15import("//arkcompiler/runtime_core/libabckit/abckit_config.gni")
16
17template("abckit_plugin") {
18  ohos_shared_library("${target_name}") {
19    forward_variables_from(invoker,
20                           "*",
21                           [
22                             "configs",
23                             "deps",
24                             "include_dirs",
25                           ])
26
27    deps = [ "$abckit_root/src:libabckit" ]
28
29    include_dirs = [ "$abckit_root/include" ]
30
31    if (defined(invoker.include_dirs)) {
32      deps += invoker.include_dirs
33    }
34
35    if (defined(invoker.deps)) {
36      deps += invoker.deps
37    }
38
39    if (defined(invoker.configs)) {
40      configs += invoker.configs
41    }
42
43    if (is_mingw || is_win) {
44      output_extension = "dll"
45    } else {
46      output_extension = "so"
47    }
48
49    part_name = "runtime_core"
50    subsystem_name = "arkcompiler"
51  }
52}
53
54abckit_plugin("abckit_stress_plugin") {
55  sources = [ "stress.cpp" ]
56
57  install_enable = false
58  part_name = "runtime_core"
59  subsystem_name = "arkcompiler"
60}
61