libs/libxx: add .cpp files build support
libcxx project has .cpp files inside, so add .cpp files build support here. Change-Id: Icd3bcb42f4ceafa5e07a9977149cb08d555a9ade Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
parent
1d77061adc
commit
78c8b43b9c
@ -83,9 +83,10 @@ endif
|
||||
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
||||
COBJS = $(CSRCS:.c=$(OBJEXT))
|
||||
CXXOBJS = $(CXXSRCS:.cxx=$(OBJEXT))
|
||||
CPPOBJS = $(CPPSRCS:.cpp=$(OBJEXT))
|
||||
|
||||
SRCS = $(ASRCS) $(CSRCS) $(CXXSRCS)
|
||||
OBJS = $(AOBJS) $(COBJS) $(CXXOBJS)
|
||||
SRCS = $(ASRCS) $(CSRCS) $(CXXSRCS) $(CPPSRCS)
|
||||
OBJS = $(AOBJS) $(COBJS) $(CXXOBJS) $(CPPOBJS)
|
||||
|
||||
BIN = libxx$(LIBEXT)
|
||||
|
||||
@ -101,6 +102,9 @@ $(COBJS): %$(OBJEXT): %.c
|
||||
$(CXXOBJS): %$(OBJEXT): %.cxx
|
||||
$(call COMPILEXX, $<, $@)
|
||||
|
||||
$(CPPOBJS): %$(OBJEXT): %.cpp
|
||||
$(call COMPILEXX, $<, $@)
|
||||
|
||||
$(BIN): $(OBJS)
|
||||
$(call ARCHIVE, $@, $(OBJS))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user