Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # Path to the CMake file to process. |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 2 | OECMAKE_SOURCEPATH ??= "${S}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 3 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 4 | DEPENDS:prepend = "cmake-native " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | B = "${WORKDIR}/build" |
| 6 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 7 | # What CMake generator to use. |
| 8 | # The supported options are "Unix Makefiles" or "Ninja". |
| 9 | OECMAKE_GENERATOR ?= "Ninja" |
| 10 | |
| 11 | python() { |
| 12 | generator = d.getVar("OECMAKE_GENERATOR") |
Brad Bishop | d89cb5f | 2019-04-10 09:02:41 -0400 | [diff] [blame] | 13 | if "Unix Makefiles" in generator: |
| 14 | args = "-G '" + generator + "' -DCMAKE_MAKE_PROGRAM=" + d.getVar("MAKE") |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 15 | d.setVar("OECMAKE_GENERATOR_ARGS", args) |
| 16 | d.setVarFlag("do_compile", "progress", "percent") |
Brad Bishop | d89cb5f | 2019-04-10 09:02:41 -0400 | [diff] [blame] | 17 | elif "Ninja" in generator: |
| 18 | args = "-G '" + generator + "' -DCMAKE_MAKE_PROGRAM=ninja" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 19 | d.appendVar("DEPENDS", " ninja-native") |
Brad Bishop | d89cb5f | 2019-04-10 09:02:41 -0400 | [diff] [blame] | 20 | d.setVar("OECMAKE_GENERATOR_ARGS", args) |
Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame] | 21 | d.setVarFlag("do_compile", "progress", r"outof:^\[(\d+)/(\d+)\]\s+") |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 22 | else: |
| 23 | bb.fatal("Unknown CMake Generator %s" % generator) |
| 24 | } |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | OECMAKE_AR ?= "${AR}" |
| 26 | |
| 27 | # Compiler flags |
| 28 | OECMAKE_C_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CFLAGS}" |
| 29 | OECMAKE_CXX_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CXXFLAGS}" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 30 | OECMAKE_C_FLAGS_RELEASE ?= "-DNDEBUG" |
| 31 | OECMAKE_CXX_FLAGS_RELEASE ?= "-DNDEBUG" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 32 | OECMAKE_C_LINK_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CPPFLAGS} ${LDFLAGS}" |
| 33 | OECMAKE_CXX_LINK_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CXXFLAGS} ${LDFLAGS}" |
| 34 | |
Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 35 | def oecmake_map_compiler(compiler, d): |
| 36 | args = d.getVar(compiler).split() |
| 37 | if args[0] == "ccache": |
| 38 | return args[1], args[0] |
| 39 | return args[0], "" |
| 40 | |
| 41 | # C/C++ Compiler (without cpu arch/tune arguments) |
| 42 | OECMAKE_C_COMPILER ?= "${@oecmake_map_compiler('CC', d)[0]}" |
| 43 | OECMAKE_C_COMPILER_LAUNCHER ?= "${@oecmake_map_compiler('CC', d)[1]}" |
| 44 | OECMAKE_CXX_COMPILER ?= "${@oecmake_map_compiler('CXX', d)[0]}" |
| 45 | OECMAKE_CXX_COMPILER_LAUNCHER ?= "${@oecmake_map_compiler('CXX', d)[1]}" |
| 46 | |
| 47 | # clear compiler vars for allarch to avoid sig hash difference |
| 48 | OECMAKE_C_COMPILER_allarch = "" |
| 49 | OECMAKE_C_COMPILER_LAUNCHER_allarch = "" |
| 50 | OECMAKE_CXX_COMPILER_allarch = "" |
| 51 | OECMAKE_CXX_COMPILER_LAUNCHER_allarch = "" |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 52 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 53 | OECMAKE_RPATH ?= "" |
| 54 | OECMAKE_PERLNATIVE_DIR ??= "" |
| 55 | OECMAKE_EXTRA_ROOT_PATH ?= "" |
| 56 | |
| 57 | OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "ONLY" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 58 | OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM:class-native = "BOTH" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 59 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 60 | EXTRA_OECMAKE:append = " ${PACKAGECONFIG_CONFARGS}" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 61 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 62 | export CMAKE_BUILD_PARALLEL_LEVEL |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 63 | CMAKE_BUILD_PARALLEL_LEVEL:task-compile = "${@oe.utils.parallel_make(d, False)}" |
| 64 | CMAKE_BUILD_PARALLEL_LEVEL:task-install = "${@oe.utils.parallel_make(d, True)}" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 65 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 66 | OECMAKE_TARGET_COMPILE ?= "all" |
| 67 | OECMAKE_TARGET_INSTALL ?= "install" |
| 68 | |
Andrew Geissler | b7d2861 | 2020-07-24 16:15:54 -0500 | [diff] [blame] | 69 | def map_host_os_to_system_name(host_os): |
| 70 | if host_os.startswith('mingw'): |
| 71 | return 'Windows' |
| 72 | if host_os.startswith('linux'): |
| 73 | return 'Linux' |
| 74 | return host_os |
| 75 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 76 | # CMake expects target architectures in the format of uname(2), |
| 77 | # which do not always match TARGET_ARCH, so all the necessary |
| 78 | # conversions should happen here. |
Andrew Geissler | b7d2861 | 2020-07-24 16:15:54 -0500 | [diff] [blame] | 79 | def map_host_arch_to_uname_arch(host_arch): |
| 80 | if host_arch == "powerpc": |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 81 | return "ppc" |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 82 | if host_arch == "powerpc64le": |
| 83 | return "ppc64le" |
Andrew Geissler | b7d2861 | 2020-07-24 16:15:54 -0500 | [diff] [blame] | 84 | if host_arch == "powerpc64": |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 85 | return "ppc64" |
Andrew Geissler | b7d2861 | 2020-07-24 16:15:54 -0500 | [diff] [blame] | 86 | return host_arch |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 87 | |
| 88 | cmake_do_generate_toolchain_file() { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 89 | if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then |
| 90 | cmake_crosscompiling="set( CMAKE_CROSSCOMPILING FALSE )" |
| 91 | fi |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 92 | cat > ${WORKDIR}/toolchain.cmake <<EOF |
| 93 | # CMake system name must be something like "Linux". |
| 94 | # This is important for cross-compiling. |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 95 | $cmake_crosscompiling |
Andrew Geissler | b7d2861 | 2020-07-24 16:15:54 -0500 | [diff] [blame] | 96 | set( CMAKE_SYSTEM_NAME ${@map_host_os_to_system_name(d.getVar('HOST_OS'))} ) |
| 97 | set( CMAKE_SYSTEM_PROCESSOR ${@map_host_arch_to_uname_arch(d.getVar('HOST_ARCH'))} ) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 98 | set( CMAKE_C_COMPILER ${OECMAKE_C_COMPILER} ) |
| 99 | set( CMAKE_CXX_COMPILER ${OECMAKE_CXX_COMPILER} ) |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 100 | set( CMAKE_C_COMPILER_LAUNCHER ${OECMAKE_C_COMPILER_LAUNCHER} ) |
| 101 | set( CMAKE_CXX_COMPILER_LAUNCHER ${OECMAKE_CXX_COMPILER_LAUNCHER} ) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 102 | set( CMAKE_ASM_COMPILER ${OECMAKE_C_COMPILER} ) |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 103 | find_program( CMAKE_AR ${OECMAKE_AR} DOC "Archiver" REQUIRED ) |
| 104 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 105 | set( CMAKE_C_FLAGS "${OECMAKE_C_FLAGS}" CACHE STRING "CFLAGS" ) |
| 106 | set( CMAKE_CXX_FLAGS "${OECMAKE_CXX_FLAGS}" CACHE STRING "CXXFLAGS" ) |
| 107 | set( CMAKE_ASM_FLAGS "${OECMAKE_C_FLAGS}" CACHE STRING "ASM FLAGS" ) |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 108 | set( CMAKE_C_FLAGS_RELEASE "${OECMAKE_C_FLAGS_RELEASE}" CACHE STRING "Additional CFLAGS for release" ) |
| 109 | set( CMAKE_CXX_FLAGS_RELEASE "${OECMAKE_CXX_FLAGS_RELEASE}" CACHE STRING "Additional CXXFLAGS for release" ) |
| 110 | set( CMAKE_ASM_FLAGS_RELEASE "${OECMAKE_C_FLAGS_RELEASE}" CACHE STRING "Additional ASM FLAGS for release" ) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 111 | set( CMAKE_C_LINK_FLAGS "${OECMAKE_C_LINK_FLAGS}" CACHE STRING "LDFLAGS" ) |
| 112 | set( CMAKE_CXX_LINK_FLAGS "${OECMAKE_CXX_LINK_FLAGS}" CACHE STRING "LDFLAGS" ) |
| 113 | |
| 114 | # only search in the paths provided so cmake doesnt pick |
| 115 | # up libraries and tools from the native build machine |
Brad Bishop | 64c979e | 2019-11-04 13:55:29 -0500 | [diff] [blame] | 116 | set( CMAKE_FIND_ROOT_PATH ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR} ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH} ${EXTERNAL_TOOLCHAIN} ${HOSTTOOLS_DIR}) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 117 | set( CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY ) |
| 118 | set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ${OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM} ) |
| 119 | set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) |
| 120 | set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY ) |
Brad Bishop | 64c979e | 2019-11-04 13:55:29 -0500 | [diff] [blame] | 121 | set( CMAKE_PROGRAM_PATH "/" ) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 122 | |
| 123 | # Use qt.conf settings |
| 124 | set( ENV{QT_CONF_PATH} ${WORKDIR}/qt.conf ) |
| 125 | |
| 126 | # We need to set the rpath to the correct directory as cmake does not provide any |
| 127 | # directory as rpath by default |
| 128 | set( CMAKE_INSTALL_RPATH ${OECMAKE_RPATH} ) |
| 129 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 130 | # Use RPATHs relative to build directory for reproducibility |
| 131 | set( CMAKE_BUILD_RPATH_USE_ORIGIN ON ) |
| 132 | |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 133 | # Use our cmake modules |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 134 | list(APPEND CMAKE_MODULE_PATH "${STAGING_DATADIR}/cmake/Modules/") |
| 135 | |
| 136 | # add for non /usr/lib libdir, e.g. /usr/lib64 |
| 137 | set( CMAKE_LIBRARY_PATH ${libdir} ${base_libdir}) |
| 138 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 139 | # add include dir to implicit includes in case it differs from /usr/include |
| 140 | list(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES ${includedir}) |
| 141 | list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES ${includedir}) |
| 142 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 143 | EOF |
| 144 | } |
| 145 | |
| 146 | addtask generate_toolchain_file after do_patch before do_configure |
| 147 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 148 | CONFIGURE_FILES = "CMakeLists.txt" |
| 149 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 150 | do_configure[cleandirs] = "${@d.getVar('B') if d.getVar('S') != d.getVar('B') else ''}" |
| 151 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 152 | cmake_do_configure() { |
| 153 | if [ "${OECMAKE_BUILDPATH}" ]; then |
| 154 | bbnote "cmake.bbclass no longer uses OECMAKE_BUILDPATH. The default behaviour is now out-of-tree builds with B=WORKDIR/build." |
| 155 | fi |
| 156 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 157 | if [ "${S}" = "${B}" ]; then |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 158 | find ${B} -name CMakeFiles -or -name Makefile -or -name cmake_install.cmake -or -name CMakeCache.txt -delete |
| 159 | fi |
| 160 | |
| 161 | # Just like autotools cmake can use a site file to cache result that need generated binaries to run |
| 162 | if [ -e ${WORKDIR}/site-file.cmake ] ; then |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 163 | oecmake_sitefile="-C ${WORKDIR}/site-file.cmake" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 164 | else |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 165 | oecmake_sitefile= |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 166 | fi |
| 167 | |
| 168 | cmake \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 169 | ${OECMAKE_GENERATOR_ARGS} \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 170 | $oecmake_sitefile \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 171 | ${OECMAKE_SOURCEPATH} \ |
| 172 | -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 173 | -DCMAKE_INSTALL_BINDIR:PATH=${@os.path.relpath(d.getVar('bindir'), d.getVar('prefix') + '/')} \ |
| 174 | -DCMAKE_INSTALL_SBINDIR:PATH=${@os.path.relpath(d.getVar('sbindir'), d.getVar('prefix') + '/')} \ |
| 175 | -DCMAKE_INSTALL_LIBEXECDIR:PATH=${@os.path.relpath(d.getVar('libexecdir'), d.getVar('prefix') + '/')} \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 176 | -DCMAKE_INSTALL_SYSCONFDIR:PATH=${sysconfdir} \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 177 | -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=${@os.path.relpath(d.getVar('sharedstatedir'), d. getVar('prefix') + '/')} \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 178 | -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=${localstatedir} \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 179 | -DCMAKE_INSTALL_LIBDIR:PATH=${@os.path.relpath(d.getVar('libdir'), d.getVar('prefix') + '/')} \ |
| 180 | -DCMAKE_INSTALL_INCLUDEDIR:PATH=${@os.path.relpath(d.getVar('includedir'), d.getVar('prefix') + '/')} \ |
| 181 | -DCMAKE_INSTALL_DATAROOTDIR:PATH=${@os.path.relpath(d.getVar('datadir'), d.getVar('prefix') + '/')} \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 182 | -DPYTHON_EXECUTABLE:PATH=${PYTHON} \ |
| 183 | -DPython_EXECUTABLE:PATH=${PYTHON} \ |
| 184 | -DPython3_EXECUTABLE:PATH=${PYTHON} \ |
| 185 | -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 186 | -DCMAKE_INSTALL_SO_NO_EXE=0 \ |
| 187 | -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 188 | -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \ |
Andrew Geissler | 9b4d8b0 | 2021-02-19 12:26:16 -0600 | [diff] [blame] | 189 | -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON \ |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 190 | -DFETCHCONTENT_FULLY_DISCONNECTED=ON \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 191 | ${EXTRA_OECMAKE} \ |
| 192 | -Wno-dev |
| 193 | } |
| 194 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 195 | # To disable verbose cmake logs for a given recipe or globally config metadata e.g. local.conf |
| 196 | # add following |
| 197 | # |
| 198 | # CMAKE_VERBOSE = "" |
| 199 | # |
| 200 | |
| 201 | CMAKE_VERBOSE ??= "VERBOSE=1" |
| 202 | |
| 203 | # Then run do_compile again |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 204 | cmake_runcmake_build() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 205 | bbnote ${DESTDIR:+DESTDIR=${DESTDIR} }${CMAKE_VERBOSE} cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} |
| 206 | eval ${DESTDIR:+DESTDIR=${DESTDIR} }${CMAKE_VERBOSE} cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 207 | } |
| 208 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 209 | cmake_do_compile() { |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 210 | cmake_runcmake_build --target ${OECMAKE_TARGET_COMPILE} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 211 | } |
| 212 | |
| 213 | cmake_do_install() { |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 214 | DESTDIR='${D}' cmake_runcmake_build --target ${OECMAKE_TARGET_INSTALL} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 215 | } |
| 216 | |
| 217 | EXPORT_FUNCTIONS do_configure do_compile do_install do_generate_toolchain_file |