• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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("//arkcompiler/runtime_core/ark_config.gni")
15import("//build/ohos.gni")
16
17config("aotbuilder_public_config") {
18  include_dirs = [
19    "$ark_root/compiler",
20    "$ark_root/compiler/aot",
21    "$ark_root/libpandabase",
22    "$ark_root/libpandafile",
23    "$ark_root/runtime",
24    "$ark_root",
25    "$target_gen_dir/../../../libpandafile",
26    "$target_gen_dir/../../../libpandabase/include",
27    "$target_gen_dir/../../../runtime",
28  ]
29}
30
31ohos_static_library("aotbuilder") {
32  sources = [ "aot_builder.cpp" ]
33
34  configs = [
35    "$ark_root:ark_config",
36    "$ark_root/compiler:arkcompiler_public_config",
37    ":aotbuilder_public_config",
38    sdk_libc_secshared_config,
39    "$ark_root/runtime:arkruntime_public_config",
40    "$ark_root/libpandafile:arkfile_public_config",
41  ]
42
43  deps = [
44    "$ark_root/compiler:libarkcompiler",
45    "$ark_root/libpandafile:isa_gen_libarkfile_bytecode_instruction_enum_gen_h",
46  ]
47}
48