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
:=9d6ba1cdefdc690401f404b747d81a9a1802b17af4235815866b7620d980477e
17 HOST_BUILD_PARALLEL
:=1
19 include $(INCLUDE_DIR
)/host-build.mk
20 include $(INCLUDE_DIR
)/cmake.mk
22 CMAKE_HOST_OPTIONS
+= \
23 -DCMAKE_C_COMPILER_LAUNCHER
="" \
24 -DCMAKE_CXX_COMPILER_LAUNCHER
="" \
25 -DCMAKE_SKIP_RPATH
=FALSE \
26 -DCMAKE_INSTALL_RPATH
="${STAGING_DIR_HOST}/lib" \
28 ifneq (docs-
$(CONFIG_BUILD_DOCUMENTATION
),docs-y
)
29 CMAKE_HOST_OPTIONS
+= -DENABLE_DOCUMENTATION
=OFF
32 define Host
/Install
/ccache
33 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
/
34 $(CP
) .
/files
/* $(STAGING_DIR_HOST
)/bin
/
38 $(call Host
/Install
/Default
)
39 $(call Host
/Install
/ccache
)
42 $(eval
$(call HostBuild
))