# Copyright (C) 2015 Khem Raj # Released under the MIT license (see COPYING.MIT for the terms) DESCRIPTION = "libc++ is a new implementation of the C++ standard library, targeting C++11" HOMEPAGE = "http://libcxx.llvm.org/" LICENSE = "MIT | NCSA" SECTION = "base" require clang.inc require common.inc inherit cmake pythonnative PV .= "+git${SRCPV}" DEPENDS += "ninja-native" BASEDEPENDS_remove_toolchain-clang_class-target = "libcxx" PROVIDES = "libunwind" PROVIDES_remove_mipsarch = "libunwind" LIC_FILES_CHKSUM = "file://projects/libcxx/LICENSE.TXT;md5=7b3a0e1b99822669d630011defe9bfd9; \ " SRC_URI = "\ ${LLVM_GIT}/llvm.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=llvm \ ${LLVM_GIT}/libcxx.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=libcxx;destsuffix=git/projects/libcxx \ ${LLVM_GIT}/libcxxabi.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=cxxabi;destsuffix=git/projects/libcxxabi \ ${LLVM_GIT}/libunwind.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=libunwind;destsuffix=git/projects/libunwind \ ${LLVMPATCHES} \ ${LIBCXXPATCHES} \ ${LIBCXXABIPATCHES} \ " SRCREV_FORMAT = "llvm_libcxx_cxxabi_libunwind" S = "${WORKDIR}/git" THUMB_TUNE_CCARGS = "" #TUNE_CCARGS += "-nostdlib" EXTRA_OECMAKE += "\ -DLIBCXX_CXX_ABI=libcxxabi \ -DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON \ -DCXX_SUPPORTS_CXX11=ON \ -DLIBCXXABI_LIBCXX_INCLUDES=${S}/projects/libcxx/include \ -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${S}/projects/libcxxabi/include \ -DLIBCXX_CXX_ABI_LIBRARY_PATH=${B}/lib \ -DLIBCXXABI_USE_LLVM_UNWINDER=1 \ -G Ninja \ ${S} \ " EXTRA_OECMAKE_remove_mipsarch = "-DLIBCXXABI_USE_LLVM_UNWINDER=1" EXTRA_OECMAKE_append_libc-musl = " -DLIBCXX_HAS_MUSL_LIBC=ON " do_compile() { NINJA_STATUS="[%p] " ninja -v ${PARALLEL_MAKE} unwind cxxabi cxx } do_install() { NINJA_STATUS="[%p] " DESTDIR=${D} ninja ${PARALLEL_MAKE} projects/libunwind/install install-cxxabi install-cxx } PACKAGES =+ "libunwind" FILES_libunwind += "${libdir}/libunwind.so.*" ALLOW_EMPTY_${PN} = "1" BBCLASSEXTEND = "native nativesdk" TOOLCHAIN = "clang"