forked from nuttx/nuttx-update
libxx: Move the partial c++ abi implementation to libcxxmini sub folder
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I2bc9b8be2962451a44352ab90623c9481bd162b2
This commit is contained in:
parent
9020c077f9
commit
c8b93ed45e
13 changed files with 32 additions and 28 deletions
|
@ -24,10 +24,10 @@ if HAVE_CXX
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "C++ Library"
|
prompt "C++ Library"
|
||||||
default NOCXXLIB
|
default LIBCXXMINI
|
||||||
|
|
||||||
config NOCXXLIB
|
config LIBCXXMINI
|
||||||
bool "NuttX Basic C++ support"
|
bool "Basic C++ support"
|
||||||
---help---
|
---help---
|
||||||
A fragmentary C++ library that will allow to build only
|
A fragmentary C++ library that will allow to build only
|
||||||
the simplest of C++ applications. Only contain basic C++
|
the simplest of C++ applications. Only contain basic C++
|
||||||
|
|
|
@ -19,14 +19,6 @@
|
||||||
|
|
||||||
include $(TOPDIR)/Make.defs
|
include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
CXXSRCS = libxx_cxa_atexit.cxx
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_LIBSUPCXX),y)
|
|
||||||
CXXSRCS += libxx_impure.cxx
|
|
||||||
else
|
|
||||||
CXXSRCS += libxx_eabi_atexit.cxx
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Include the uClibc++ Make.defs file if selected. If it is included,
|
# Include the uClibc++ Make.defs file if selected. If it is included,
|
||||||
# the uClibc++/Make.defs file will add its files to the source file list,
|
# the uClibc++/Make.defs file will add its files to the source file list,
|
||||||
# add its DEPPATH info, and will add the appropriate paths to the VPATH
|
# add its DEPPATH info, and will add the appropriate paths to the VPATH
|
||||||
|
@ -42,13 +34,21 @@ include uClibc++.defs
|
||||||
else ifeq ($(CONFIG_LIBCXX),y)
|
else ifeq ($(CONFIG_LIBCXX),y)
|
||||||
include libcxx.defs
|
include libcxx.defs
|
||||||
else
|
else
|
||||||
include cxx.defs
|
include libcxxmini.defs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_LIBCXXABI),y)
|
ifeq ($(CONFIG_LIBCXXABI),y)
|
||||||
include libcxxabi.defs
|
include libcxxabi.defs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_LIBSUPCXX),y)
|
||||||
|
CXXSRCS += libxx_impure.cxx
|
||||||
|
else
|
||||||
|
CXXSRCS += libxx_eabi_atexit.cxx
|
||||||
|
endif
|
||||||
|
|
||||||
|
CXXSRCS += libxx_cxa_atexit.cxx
|
||||||
|
|
||||||
# Object Files
|
# Object Files
|
||||||
|
|
||||||
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
############################################################################
|
############################################################################
|
||||||
# libs/libxx/cxx.defs
|
# libs/libxx/libcxxmini.defs
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# contributor license agreements. See the NOTICE file distributed with
|
||||||
|
@ -34,3 +34,6 @@ ifneq ($(CONFIG_XTENSA_TOOLCHAIN_XCC), y)
|
||||||
libxx_new.cxx_CXXFLAGS += -Wno-missing-exception-spec
|
libxx_new.cxx_CXXFLAGS += -Wno-missing-exception-spec
|
||||||
libxx_newa.cxx_CXXFLAGS += -Wno-missing-exception-spec
|
libxx_newa.cxx_CXXFLAGS += -Wno-missing-exception-spec
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
DEPPATH += --dep-path libcxxmini
|
||||||
|
VPATH += libcxxmini
|
|
@ -1,5 +1,5 @@
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// libs/libxx/libxx_cxa_guard.cxx
|
// libs/libxx/libcxxmini/libxx_cxa_guard.cxx
|
||||||
//
|
//
|
||||||
// Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved.
|
// Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved.
|
||||||
// Author: Paul Alexander Patience <paul-a.patience@polymtl.ca>
|
// Author: Paul Alexander Patience <paul-a.patience@polymtl.ca>
|
|
@ -1,5 +1,5 @@
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// libs/libxx/libxx_cxapurevirtual.cxx
|
// libs/libxx/libcxxmini/libxx_cxapurevirtual.cxx
|
||||||
//
|
//
|
||||||
// Licensed to the Apache Software Foundation (ASF) under one or more
|
// Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
// contributor license agreements. See the NOTICE file distributed with
|
// contributor license agreements. See the NOTICE file distributed with
|
|
@ -1,5 +1,5 @@
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// libs/libxx/libxx_delete.cxx
|
// libs/libxx/libcxxmini/libxx_delete.cxx
|
||||||
//
|
//
|
||||||
// Licensed to the Apache Software Foundation (ASF) under one or more
|
// Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
// contributor license agreements. See the NOTICE file distributed with
|
// contributor license agreements. See the NOTICE file distributed with
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include "libxx.hxx"
|
#include <nuttx/lib/lib.h>
|
||||||
|
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// Operators
|
// Operators
|
|
@ -1,5 +1,5 @@
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// libs/libxx/libxx_delete_sized.cxx
|
// libs/libxx/libcxxmini/libxx_delete_sized.cxx
|
||||||
//
|
//
|
||||||
// Licensed to the Apache Software Foundation (ASF) under one or more
|
// Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
// contributor license agreements. See the NOTICE file distributed with
|
// contributor license agreements. See the NOTICE file distributed with
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
#include "libxx.hxx"
|
#include <nuttx/lib/lib.h>
|
||||||
|
|
||||||
#ifdef CONFIG_HAVE_CXX14
|
#ifdef CONFIG_HAVE_CXX14
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// libs/libxx/libxx_deletea.cxx
|
// libs/libxx/libcxxmini/libxx_deletea.cxx
|
||||||
//
|
//
|
||||||
// Licensed to the Apache Software Foundation (ASF) under one or more
|
// Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
// contributor license agreements. See the NOTICE file distributed with
|
// contributor license agreements. See the NOTICE file distributed with
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include "libxx.hxx"
|
#include <nuttx/lib/lib.h>
|
||||||
|
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// Operators
|
// Operators
|
|
@ -1,5 +1,5 @@
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// libs/libxx/libxx_deletea_sized.cxx
|
// libs/libxx/libcxxmini/libxx_deletea_sized.cxx
|
||||||
//
|
//
|
||||||
// Licensed to the Apache Software Foundation (ASF) under one or more
|
// Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
// contributor license agreements. See the NOTICE file distributed with
|
// contributor license agreements. See the NOTICE file distributed with
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
#include "libxx.hxx"
|
#include <nuttx/lib/lib.h>
|
||||||
|
|
||||||
#ifdef CONFIG_HAVE_CXX14
|
#ifdef CONFIG_HAVE_CXX14
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// libs/libxx/libxx_new.cxx
|
// libs/libxx/libcxxmini/libxx_new.cxx
|
||||||
//
|
//
|
||||||
// Licensed to the Apache Software Foundation (ASF) under one or more
|
// Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
// contributor license agreements. See the NOTICE file distributed with
|
// contributor license agreements. See the NOTICE file distributed with
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include "libxx.hxx"
|
#include <nuttx/lib/lib.h>
|
||||||
|
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// Operators
|
// Operators
|
|
@ -1,5 +1,5 @@
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// libs/libxx/libxx_newa.cxx
|
// libs/libxx/libcxxmini/libxx_newa.cxx
|
||||||
//
|
//
|
||||||
// Licensed to the Apache Software Foundation (ASF) under one or more
|
// Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
// contributor license agreements. See the NOTICE file distributed with
|
// contributor license agreements. See the NOTICE file distributed with
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include "libxx.hxx"
|
#include <nuttx/lib/lib.h>
|
||||||
|
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// Pre-processor Definitions
|
// Pre-processor Definitions
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <nuttx/lib/lib.h>
|
#include <nuttx/compiler.h>
|
||||||
|
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// Public Types
|
// Public Types
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <nuttx/lib/lib.h>
|
||||||
|
|
||||||
#include "libxx.hxx"
|
#include "libxx.hxx"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue