mirror of https://github.com/FFmpeg/FFmpeg.git
The intention of this change is to allow separation of API tests from the existing tests, and also to have a place for the API test source/executable files so they're not mixed in with the actual library code. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>pull/227/head
parent
1221b7df68
commit
3f18cb97e5
2 changed files with 20 additions and 2 deletions
@ -0,0 +1,15 @@ |
||||
APITESTPROGS += $(APITESTPROGS-yes)
|
||||
|
||||
APITESTOBJS := $(APITESTOBJS:%=$(APITESTSDIR)%) $(APITESTPROGS:%=$(APITESTSDIR)/%-test.o)
|
||||
APITESTPROGS := $(APITESTPROGS:%=$(APITESTSDIR)/%-test$(EXESUF))
|
||||
-include $(wildcard $(APITESTOBJS:.o=.d)) |
||||
|
||||
$(APITESTOBJS): | $(sort $(dir $(APITESTOBJS))) |
||||
$(APITESTOBJS) $(APITESTOBJS:.o=.i): CPPFLAGS += -DTEST |
||||
$(APITESTOBJS) $(APITESTOBJS:.o=.i): CFLAGS += -Umain |
||||
|
||||
$(APITESTPROGS): %$(EXESUF): %.o $(EXEOBJS) |
||||
$(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(filter %.o,$^) $(FF_DEP_LIBS) $(FFEXTRALIBS) $(ELIBS)
|
||||
|
||||
testclean:: |
||||
$(RM) $(addprefix $(APITESTSDIR)/,$(CLEANSUFFIXES) *-test$(EXESUF))
|
Loading…
Reference in new issue