2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/target.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
14 PKG_SOURCE_URL
:=https
://github.com
/ccache
/ccache
/releases
/download
/v
$(PKG_VERSION
)
15 PKG_HASH
:=9200cafbaa5fd62c2600fccb40a18214e57747825e6cdcd76688b4b61c2dcba0
17 include $(INCLUDE_DIR
)/host-build.mk
18 include $(INCLUDE_DIR
)/cmake.mk
20 CMAKE_HOST_OPTIONS
+= \
21 -DCMAKE_C_COMPILER_LAUNCHER
="" \
22 -DCMAKE_CXX_COMPILER_LAUNCHER
="" \
23 -DCMAKE_SKIP_RPATH
=FALSE \
24 -DCMAKE_INSTALL_RPATH
="${STAGING_DIR_HOST}/lib" \
25 -DREDIS_STORAGE_BACKEND
=OFF
27 ifneq (docs-
$(CONFIG_BUILD_DOCUMENTATION
),docs-y
)
28 CMAKE_HOST_OPTIONS
+= -DENABLE_DOCUMENTATION
=OFF
31 define Host
/Install
/ccache
32 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
/
33 $(CP
) .
/files
/* $(STAGING_DIR_HOST
)/bin
/
37 $(call Host
/Install
/Default
)
38 $(call Host
/Install
/ccache
)
41 $(eval
$(call HostBuild
))