summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/cmake/cmake_3.7.2.bb
diff options
context:
space:
mode:
authorPhilip Balister <philip@balister.org>2017-02-14 09:40:07 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-23 12:49:50 -0800
commitb8cb30b13f177714bbdd4e6eaa61a5db9464502e (patch)
treea33353ee042672eb29204e4088d8f07d3cce2694 /meta/recipes-devtools/cmake/cmake_3.7.2.bb
parent60bfaaa46080795bfd7250a8b8047311570be8ac (diff)
downloadpoky-b8cb30b13f177714bbdd4e6eaa61a5db9464502e.tar.gz
cmake: Update to 3.7.2.
Tested by building gnuradio stack. (From OE-Core rev: d3e5a6d38870ecede87812cb81c0b5630bd3b3ff) (From OE-Core rev: 66122e4f19e880f5e48130b318f98452b992cad4) Signed-off-by: Philip Balister <philip@balister.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake_3.7.2.bb')
-rw-r--r--meta/recipes-devtools/cmake/cmake_3.7.2.bb49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake_3.7.2.bb b/meta/recipes-devtools/cmake/cmake_3.7.2.bb
new file mode 100644
index 0000000000..787f33c02b
--- /dev/null
+++ b/meta/recipes-devtools/cmake/cmake_3.7.2.bb
@@ -0,0 +1,49 @@
1require cmake.inc
2
3inherit cmake
4
5DEPENDS += "curl expat zlib libarchive xz ncurses bzip2"
6
7SRC_URI_append_class-nativesdk = " \
8 file://OEToolchainConfig.cmake \
9 file://environment.d-cmake.sh"
10
11# Strip ${prefix} from ${docdir}, set result into docdir_stripped
12python () {
13 prefix=d.getVar("prefix")
14 docdir=d.getVar("docdir")
15
16 if not docdir.startswith(prefix):
17 bb.fatal('docdir must contain prefix as its prefix')
18
19 docdir_stripped = docdir[len(prefix):]
20 if len(docdir_stripped) > 0 and docdir_stripped[0] == '/':
21 docdir_stripped = docdir_stripped[1:]
22
23 d.setVar("docdir_stripped", docdir_stripped)
24}
25
26EXTRA_OECMAKE=" \
27 -DCMAKE_DOC_DIR=${docdir_stripped}/cmake-${CMAKE_MAJOR_VERSION} \
28 -DCMAKE_USE_SYSTEM_LIBRARIES=1 \
29 -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=0 \
30 -DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=0 \
31 -DKWSYS_CHAR_IS_SIGNED=1 \
32 -DBUILD_CursesDialog=0 \
33 ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '-DKWSYS_LFS_WORKS=1', '-DKWSYS_LFS_DISABLE=1', d)} \
34"
35
36do_install_append_class-nativesdk() {
37 mkdir -p ${D}${datadir}/cmake
38 install -m 644 ${WORKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/
39
40 mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d
41 install -m 644 ${WORKDIR}/environment.d-cmake.sh ${D}${SDKPATHNATIVE}/environment-setup.d/cmake.sh
42}
43
44FILES_${PN}_append_class-nativesdk = " ${SDKPATHNATIVE}"
45
46FILES_${PN} += "${datadir}/cmake-${CMAKE_MAJOR_VERSION}"
47FILES_${PN}-doc += "${docdir}/cmake-${CMAKE_MAJOR_VERSION}"
48
49BBCLASSEXTEND = "nativesdk"