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
:=504a0f2184465c306826f035b4bc00bae7500308d6af4abbfb50e33a694989b4
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" \
26 ifneq (docs-
$(CONFIG_BUILD_DOCUMENTATION
),docs-y
)
27 CMAKE_HOST_OPTIONS
+= -DENABLE_DOCUMENTATION
=OFF
30 define Host
/Install
/ccache
31 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
/
32 $(CP
) .
/files
/* $(STAGING_DIR_HOST
)/bin
/
36 $(call Host
/Install
/Default
)
37 $(call Host
/Install
/ccache
)
40 $(eval
$(call HostBuild
))