• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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("//arkcompiler/runtime_core/ark_config.gni")
15
16arkverifier_sources = [
17  "main.cpp",
18  "verifier.cpp",
19  "verify.cpp",
20]
21
22config("arkverifier_public_config") {
23  include_dirs = [ "$ark_root/verifier" ]
24}
25
26arkverifier_configs = [
27  "$ark_root:ark_config",
28  "$ark_root/libpandafile:arkfile_public_config",
29  ":arkverifier_public_config",
30]
31
32ohos_executable("ark_verifier") {
33  sources = arkverifier_sources
34
35  deps = [ "$ark_root/libpandafile:libarkfile_static" ]
36
37  configs = arkverifier_configs
38
39  public_configs = [ ":arkverifier_public_config" ]
40
41  install_enable = true
42  part_name = "runtime_core"
43  subsystem_name = "arkcompiler"
44}
45
46libarkverifier_sources = [
47  "verifier.cpp",
48  "verify.cpp",
49]
50
51ohos_shared_library("libarkverifier") {
52  sources = libarkverifier_sources
53
54  deps = [ "$ark_root/libpandafile:libarkfile_static" ]
55
56  configs = arkverifier_configs
57
58  public_configs = [ ":arkverifier_public_config" ]
59
60  if (!is_standard_system) {
61    relative_install_dir = "ark"
62  }
63
64  output_extension = "so"
65
66  install_enable = true
67  part_name = "runtime_core"
68  subsystem_name = "arkcompiler"
69}
70