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 14project(aot_manager) 15 16add_library(arkaotmanager SHARED aot_file.cpp aot_manager.cpp) 17 18target_link_libraries(arkaotmanager arkbase arkfile arkcompiler) 19 20add_dependencies(arkaotmanager intrinsics_gen_compiler isa_gen_compiler entrypoints_gen arkbase) 21target_include_directories(arkaotmanager 22 PUBLIC ${GENERATED_DIR} 23 PUBLIC ${PANDA_ROOT}/runtime 24 ) 25 26if(PANDA_WITH_TESTS AND TARGET arkruntime_test_interpreter_impl) 27 target_include_directories(arkaotmanager 28 PUBLIC "$<TARGET_PROPERTY:arkruntime,INTERFACE_INCLUDE_DIRECTORIES>" 29 PUBLIC "$<TARGET_PROPERTY:arkruntime_test_interpreter_impl,INTERFACE_INCLUDE_DIRECTORIES>" 30 ) 31else() 32 target_include_directories(arkaotmanager 33 PUBLIC "$<TARGET_PROPERTY:arkruntime,INTERFACE_INCLUDE_DIRECTORIES>" 34 ) 35endif() 36 37panda_add_sanitizers(TARGET arkaotmanager SANITIZERS ${PANDA_SANITIZERS_LIST}) 38panda_add_to_clang_tidy(TARGET arkaotmanager) 39 40add_check_style(".") 41 42