diff options
author | Wang Mingyu <wangmy@cn.fujitsu.com> | 2019-11-28 01:12:26 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-04 12:30:58 +0000 |
commit | d40bb2b4d18af75f60480810d43bc59462078594 (patch) | |
tree | c240d5c5fb97b53b42e2076fbbd6cd814e699302 /meta/recipes-devtools/cmake/cmake_3.15.5.bb | |
parent | c3d22b2749d4d72a683db4c086adb0d5e518e630 (diff) | |
download | poky-d40bb2b4d18af75f60480810d43bc59462078594.tar.gz |
cmake: upgrade 3.15.3 -> 3.15.5
(From OE-Core rev: f5b3e39dbec9acaf7755b40172b2ce3f841b3a20)
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
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.15.5.bb')
-rw-r--r-- | meta/recipes-devtools/cmake/cmake_3.15.5.bb | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake_3.15.5.bb b/meta/recipes-devtools/cmake/cmake_3.15.5.bb new file mode 100644 index 0000000000..e0457677e8 --- /dev/null +++ b/meta/recipes-devtools/cmake/cmake_3.15.5.bb | |||
@@ -0,0 +1,53 @@ | |||
1 | require cmake.inc | ||
2 | |||
3 | inherit cmake | ||
4 | |||
5 | DEPENDS += "curl expat zlib libarchive xz ncurses bzip2" | ||
6 | |||
7 | SRC_URI_append_class-nativesdk = " \ | ||
8 | file://OEToolchainConfig.cmake \ | ||
9 | file://environment.d-cmake.sh \ | ||
10 | file://0001-CMakeDetermineSystem-use-oe-environment-vars-to-load.patch \ | ||
11 | " | ||
12 | |||
13 | # Strip ${prefix} from ${docdir}, set result into docdir_stripped | ||
14 | python () { | ||
15 | prefix=d.getVar("prefix") | ||
16 | docdir=d.getVar("docdir") | ||
17 | |||
18 | if not docdir.startswith(prefix): | ||
19 | bb.fatal('docdir must contain prefix as its prefix') | ||
20 | |||
21 | docdir_stripped = docdir[len(prefix):] | ||
22 | if len(docdir_stripped) > 0 and docdir_stripped[0] == '/': | ||
23 | docdir_stripped = docdir_stripped[1:] | ||
24 | |||
25 | d.setVar("docdir_stripped", docdir_stripped) | ||
26 | } | ||
27 | |||
28 | EXTRA_OECMAKE=" \ | ||
29 | -DCMAKE_DOC_DIR=${docdir_stripped}/cmake-${CMAKE_MAJOR_VERSION} \ | ||
30 | -DCMAKE_USE_SYSTEM_LIBRARIES=1 \ | ||
31 | -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=0 \ | ||
32 | -DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=0 \ | ||
33 | -DCMAKE_USE_SYSTEM_LIBRARY_LIBRHASH=0 \ | ||
34 | -DKWSYS_CHAR_IS_SIGNED=1 \ | ||
35 | -DBUILD_CursesDialog=0 \ | ||
36 | -DKWSYS_LFS_WORKS=1 \ | ||
37 | " | ||
38 | |||
39 | do_install_append_class-nativesdk() { | ||
40 | mkdir -p ${D}${datadir}/cmake | ||
41 | install -m 644 ${WORKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/ | ||
42 | |||
43 | mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d | ||
44 | install -m 644 ${WORKDIR}/environment.d-cmake.sh ${D}${SDKPATHNATIVE}/environment-setup.d/cmake.sh | ||
45 | } | ||
46 | |||
47 | FILES_${PN}_append_class-nativesdk = " ${SDKPATHNATIVE}" | ||
48 | |||
49 | FILES_${PN} += "${datadir}/cmake-${CMAKE_MAJOR_VERSION} ${datadir}/cmake ${datadir}/aclocal" | ||
50 | FILES_${PN}-doc += "${docdir}/cmake-${CMAKE_MAJOR_VERSION}" | ||
51 | FILES_${PN}-dev = "" | ||
52 | |||
53 | BBCLASSEXTEND = "nativesdk" | ||