2013-12-12 03:56:52 +01:00
|
|
|
CODEC_UNITTEST_SRCDIR=test
|
|
|
|
CODEC_UNITTEST_CPP_SRCS=\
|
2014-01-24 13:35:38 +01:00
|
|
|
$(CODEC_UNITTEST_SRCDIR)/BaseDecoderTest.cpp\
|
|
|
|
$(CODEC_UNITTEST_SRCDIR)/BaseEncoderTest.cpp\
|
2014-02-12 21:11:05 +01:00
|
|
|
$(CODEC_UNITTEST_SRCDIR)/cpp_interface_test.cpp\
|
2014-03-14 09:40:02 +01:00
|
|
|
$(CODEC_UNITTEST_SRCDIR)/DataGenerator.cpp\
|
2014-01-24 13:35:38 +01:00
|
|
|
$(CODEC_UNITTEST_SRCDIR)/decode_encode_test.cpp\
|
|
|
|
$(CODEC_UNITTEST_SRCDIR)/decoder_test.cpp\
|
|
|
|
$(CODEC_UNITTEST_SRCDIR)/encoder_test.cpp\
|
2014-03-10 09:28:05 +01:00
|
|
|
$(CODEC_UNITTEST_SRCDIR)/EncUT_MemoryAlloc.cpp\
|
2014-03-14 09:40:02 +01:00
|
|
|
$(CODEC_UNITTEST_SRCDIR)/EncUT_MotionEstimate.cpp\
|
|
|
|
$(CODEC_UNITTEST_SRCDIR)/simple_test.cpp\
|
2013-12-12 03:56:52 +01:00
|
|
|
|
|
|
|
CODEC_UNITTEST_OBJS += $(CODEC_UNITTEST_CPP_SRCS:.cpp=.o)
|
2014-02-12 07:52:35 +01:00
|
|
|
|
|
|
|
CODEC_UNITTEST_C_SRCS=\
|
2014-02-12 21:11:05 +01:00
|
|
|
$(CODEC_UNITTEST_SRCDIR)/c_interface_test.c\
|
2014-01-17 09:33:04 +01:00
|
|
|
$(CODEC_UNITTEST_SRCDIR)/sha1.c\
|
2014-02-12 07:52:35 +01:00
|
|
|
|
|
|
|
CODEC_UNITTEST_OBJS += $(CODEC_UNITTEST_C_SRCS:.c=.o)
|
|
|
|
|
2013-12-12 03:56:52 +01:00
|
|
|
OBJS += $(CODEC_UNITTEST_OBJS)
|
2014-01-08 15:33:35 +01:00
|
|
|
$(CODEC_UNITTEST_SRCDIR)/%.o: $(CODEC_UNITTEST_SRCDIR)/%.cpp
|
2014-01-30 10:32:51 +01:00
|
|
|
$(QUIET_CXX)$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(CODEC_UNITTEST_CFLAGS) $(CODEC_UNITTEST_INCLUDES) -c $(CXX_O) $<
|
2014-01-08 15:33:35 +01:00
|
|
|
|
2014-02-12 07:52:35 +01:00
|
|
|
$(CODEC_UNITTEST_SRCDIR)/%.o: $(CODEC_UNITTEST_SRCDIR)/%.c
|
2014-02-12 21:11:05 +01:00
|
|
|
$(QUIET_CC)$(CC) $(CFLAGS) $(INCLUDES) $(CODEC_UNITTEST_CFLAGS) $(CODEC_UNITTEST_INCLUDES) -c $(CXX_O) $<
|
2014-02-12 07:52:35 +01:00
|
|
|
|
2014-01-23 15:14:09 +01:00
|
|
|
codec_unittest$(EXEEXT): $(CODEC_UNITTEST_OBJS) $(LIBS) $(CODEC_UNITTEST_LIBS) $(CODEC_UNITTEST_DEPS)
|
2014-01-30 10:32:51 +01:00
|
|
|
$(QUIET_CXX)$(CXX) $(CXX_LINK_O) $(CODEC_UNITTEST_OBJS) $(CODEC_UNITTEST_LDFLAGS) $(CODEC_UNITTEST_LIBS) $(LDFLAGS) $(LIBS)
|
2013-12-12 03:56:52 +01:00
|
|
|
|
2014-01-23 15:14:09 +01:00
|
|
|
binaries: codec_unittest$(EXEEXT)
|
|
|
|
BINARIES += codec_unittest$(EXEEXT)
|