blob: 73ed4c02b1f5a0dd31455247229941f2cae4ec4c [file] [log] [blame]
developera20cc2a2023-11-03 09:27:38 +08001#
2# Copyright (C) 2023 Weijie Gao <weijie.gao@mediatek.com>
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=codechecker
10
11PKG_SOURCE_URL=https://github.com/Ericsson/codechecker.git
12PKG_SOURCE_PROTO:=git
13PKG_SOURCE_VERSION:=v6.22.2
14PKG_MIRROR_HASH:=6dddd1c7455e1c6d2115ccffcad831a51826f0f1dce18928d651d2665aa41f60
15
16include $(INCLUDE_DIR)/host-build.mk
17
18define Host/Compile
developer3761d962023-11-07 09:40:16 +080019 $(MAKE) -C $(HOST_BUILD_DIR)/analyzer/tools/build-logger -f Makefile.native ldlogger.so
developera20cc2a2023-11-03 09:27:38 +080020endef
21
22define Host/Install
developer3761d962023-11-07 09:40:16 +080023 $(INSTALL_DATA) $(HOST_BUILD_DIR)/analyzer/tools/build-logger/ldlogger.so $(STAGING_DIR_HOST)/lib/
developera20cc2a2023-11-03 09:27:38 +080024endef
25
26define Host/Clean
27 rm -f $(STAGING_DIR_HOST)/lib/ldlogger.so
28endef
29
30$(eval $(call HostBuild))