summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/cmake/cmake_3.19.3.bb
diff options
context:
space:
mode:
authorVinícius Ossanes Aquino <voa.aquino@gmail.com>2021-01-28 20:43:42 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-30 10:41:03 +0000
commit68009e4cda7f201db4c73ed55f67d3f8d78eaf30 (patch)
tree47ebacddd2f95936cec64c4ade0c4353e9a64f97 /meta/recipes-devtools/cmake/cmake_3.19.3.bb
parent46a95d9d5d0fab4153bfe24dde509ed0d4c08092 (diff)
downloadpoky-68009e4cda7f201db4c73ed55f67d3f8d78eaf30.tar.gz
cmake: Upgrade 3.19.2 -> 3.19.3
(From OE-Core rev: d5d06fa31c81a9e0460edada18e6d3dbecd3d94a) Signed-off-by: Vinícius Ossanes Aquino <voa.aquino@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake_3.19.3.bb')
-rw-r--r--meta/recipes-devtools/cmake/cmake_3.19.3.bb53
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake_3.19.3.bb b/meta/recipes-devtools/cmake/cmake_3.19.3.bb
new file mode 100644
index 0000000000..64c92b89f2
--- /dev/null
+++ b/meta/recipes-devtools/cmake/cmake_3.19.3.bb
@@ -0,0 +1,53 @@
1require cmake.inc
2
3inherit cmake bash-completion
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 file://0001-CMakeDetermineSystem-use-oe-environment-vars-to-load.patch \
11"
12
13# Strip ${prefix} from ${docdir}, set result into docdir_stripped
14python () {
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
28EXTRA_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
39do_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
47FILES_${PN}_append_class-nativesdk = " ${SDKPATHNATIVE}"
48
49FILES_${PN} += "${datadir}/cmake-${CMAKE_MAJOR_VERSION} ${datadir}/cmake ${datadir}/aclocal ${datadir}/emacs ${datadir}/vim"
50FILES_${PN}-doc += "${docdir}/cmake-${CMAKE_MAJOR_VERSION}"
51FILES_${PN}-dev = ""
52
53BBCLASSEXTEND = "nativesdk"