• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024-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
14set(DEP_ANALYZER_SRC
15  dep_analyzer.cpp
16)
17
18panda_add_executable(dependency_analyzer main.cpp)
19
20panda_add_library(dependency_analyzer_lib ${PANDA_DEFAULT_LIB_TYPE}  ${DEP_ANALYZER_SRC})
21
22panda_target_link_libraries(dependency_analyzer_lib es2panda-public es2panda-lib arkassembler)
23panda_target_include_directories(dependency_analyzer_lib PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
24panda_target_include_directories(dependency_analyzer_lib PRIVATE ${OUTPUT_DIR})
25panda_target_include_directories(dependency_analyzer_lib PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../..)
26
27panda_target_link_libraries(dependency_analyzer dependency_analyzer_lib es2panda-public es2panda-lib arkassembler)
28panda_target_include_directories(dependency_analyzer PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
29panda_target_include_directories(dependency_analyzer PRIVATE ${OUTPUT_DIR})
30panda_target_include_directories(dependency_analyzer PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../..)
31
32if (PANDA_FUZZILLI)
33    panda_target_compile_options(dependency_analyzer
34        PRIVATE -fPIC
35    )
36endif()
37
38panda_target_compile_options(dependency_analyzer
39  PRIVATE -Werror=shadow
40)
41
42panda_add_sanitizers(TARGET dependency_analyzer SANITIZERS ${PANDA_SANITIZERS_LIST})