DEPENDS += " cmake-native " # We need to unset CCACHE otherwise cmake gets too confused CCACHE = "" # We want the staging and installing functions from autotools inherit autotools # Use in-tree builds by default but allow this to be changed # since some packages do not support them (e.g. llvm 2.5). OECMAKE_SOURCEPATH ?= "." # If declaring this, make sure you also set EXTRA_OEMAKE to # "-C ${OECMAKE_BUILDPATH}". So it will run the right makefiles. OECMAKE_BUILDPATH ?= "" # C/C++ Compiler (without cpu arch/tune arguments) OECMAKE_C_COMPILER ?= "`echo ${CC} | sed 's/^\([^ ]*\).*/\1/'`" OECMAKE_CXX_COMPILER ?= "`echo ${CXX} | sed 's/^\([^ ]*\).*/\1/'`" # Compiler flags OECMAKE_C_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${TARGET_CPPFLAGS}" OECMAKE_CXX_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${TARGET_CPPFLAGS} -fpermissive" OECMAKE_C_FLAGS_RELEASE ?= "${SELECTED_OPTIMIZATION} -DNDEBUG" OECMAKE_CXX_FLAGS_RELEASE ?= "${SELECTED_OPTIMIZATION} -DNDEBUG" cmake_do_generate_toolchain_file() { cat > ${WORKDIR}/toolchain.cmake <meta/classes/distutils-common-base.bbclass
blob: f66a5cd571e5f220802dda2163216a7639f4341c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21