2020-06-27 11:20:25 +02:00
|
|
|
############################################################################
|
|
|
|
# libs/libxx/libcxx.defs
|
|
|
|
#
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
#
|
|
|
|
###########################################################################
|
|
|
|
|
2021-08-30 05:48:56 +02:00
|
|
|
UCLIBCXX_VERSION=0.2.5
|
2020-06-27 11:20:25 +02:00
|
|
|
|
2022-11-27 07:28:07 +01:00
|
|
|
# Download and unpack tarball if no git repo found
|
|
|
|
ifeq ($(wildcard uClibc++/.git),)
|
|
|
|
uClibc++:
|
2021-08-30 05:48:56 +02:00
|
|
|
curl -O -L https://git.busybox.net/uClibc++/snapshot/uClibc++-$(UCLIBCXX_VERSION).tar.bz2
|
|
|
|
$(Q) tar -xf uClibc++-$(UCLIBCXX_VERSION).tar.bz2
|
|
|
|
$(Q) $(DELFILE) uClibc++-$(UCLIBCXX_VERSION).tar.bz2
|
|
|
|
$(Q) mv uClibc++-$(UCLIBCXX_VERSION) uClibc++
|
2021-08-30 08:26:53 +02:00
|
|
|
$(Q) patch -p0 < 0001-uClibcxx-basic_definitions-fix-GCC-specific-definiti.patch
|
2022-01-21 06:43:48 +01:00
|
|
|
$(Q) patch -p0 < 0001-uclibxx-use-overload-constructor-of-filebuf-ostream.patch
|
2022-11-27 07:28:07 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(TOPDIR)/include/uClibc++: uClibc++
|
|
|
|
$(Q) $(DIRLINK) $(CURDIR)/uClibc++/include $(TOPDIR)/include/uClibc++
|
|
|
|
$(Q) $(COPYFILE) $(CURDIR)/system_configuration.h $(TOPDIR)/include/uClibc++
|
2020-06-27 11:20:25 +02:00
|
|
|
|
2021-08-18 19:31:06 +02:00
|
|
|
context:: $(TOPDIR)/include/uClibc++
|
2020-06-27 11:20:25 +02:00
|
|
|
|
|
|
|
distclean::
|
|
|
|
$(Q) $(DELFILE) $(TOPDIR)/include/uClibc++/system_configuration.h
|
|
|
|
$(Q) $(DIRUNLINK) $(TOPDIR)/include/uClibc++
|
2022-11-27 07:28:07 +01:00
|
|
|
ifeq ($(wildcard uClibc++/.git),)
|
2020-08-14 20:27:35 +02:00
|
|
|
$(call DELDIR, uClibc++)
|
2022-11-27 07:28:07 +01:00
|
|
|
endif
|
2020-06-27 11:20:25 +02:00
|
|
|
|
|
|
|
CPPSRCS += algorithm.cpp associative_base.cpp bitset.cpp char_traits.cpp
|
2021-09-02 05:55:49 +02:00
|
|
|
CPPSRCS += complex.cpp deque.cpp exception.cpp fstream.cpp
|
2020-06-27 11:20:25 +02:00
|
|
|
CPPSRCS += func_exception.cpp iomanip.cpp ios.cpp iostream.cpp istream.cpp
|
2021-09-02 05:55:49 +02:00
|
|
|
CPPSRCS += iterator.cpp limits.cpp list.cpp locale.cpp map.cpp numeric.cpp
|
2020-06-27 11:20:25 +02:00
|
|
|
CPPSRCS += ostream.cpp queue.cpp set.cpp sstream.cpp stack.cpp stdexcept.cpp
|
2021-09-08 12:17:16 +02:00
|
|
|
CPPSRCS += streambuf.cpp string.cpp utility.cpp valarray.cpp
|
2020-06-27 11:20:25 +02:00
|
|
|
CPPSRCS += vector.cpp
|
|
|
|
|
|
|
|
DEPPATH += --dep-path uClibc++/src
|
|
|
|
VPATH += uClibc++/src
|