mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
audio/libsrc: move download path to libs/libc/audio/libsrc
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
This commit is contained in:
parent
cfcedab76b
commit
510d55a783
1 changed files with 17 additions and 15 deletions
|
@ -20,19 +20,21 @@
|
||||||
|
|
||||||
ifeq ($(CONFIG_AUDIO_SRC),y)
|
ifeq ($(CONFIG_AUDIO_SRC),y)
|
||||||
|
|
||||||
PACKAGE=libsamplerate
|
PACKAGE = libsamplerate
|
||||||
VERSION=0.2.2
|
VERSION = 0.2.2
|
||||||
|
|
||||||
|
SRCPATH = audio/libsrc
|
||||||
|
|
||||||
# Download and unpack tarball if no git repo found
|
# Download and unpack tarball if no git repo found
|
||||||
ifeq ($(wildcard libsamplerate/.git),)
|
$(SRCPATH)/libsamplerate:
|
||||||
libsamplerate:
|
ifeq ($(wildcard $(SRCPATH)/libsamplerate/.git),)
|
||||||
$(call DOWNLOAD,https://codeload.github.com/libsndfile/libsamplerate/zip,master,libsamplerate.zip)
|
$(call DOWNLOAD,https://codeload.github.com/libsndfile/libsamplerate/zip,master,$(SRCPATH)/libsamplerate.zip)
|
||||||
$(Q) unzip -o libsamplerate.zip
|
$(Q) unzip -o $(SRCPATH)/libsamplerate.zip -d $(SRCPATH)
|
||||||
$(Q) mv libsamplerate-master libsamplerate
|
$(Q) mv $(SRCPATH)/libsamplerate-master $(SRCPATH)/libsamplerate
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(TOPDIR)/include/nuttx/audio/samplerate.h : libsamplerate
|
$(TOPDIR)/include/nuttx/audio/samplerate.h : $(SRCPATH)/libsamplerate
|
||||||
$(Q) cp -rf libsamplerate/include/samplerate.h $(TOPDIR)$(DELIM)include$(DELIM)nuttx$(DELIM)audio$(DELIM)
|
$(Q) cp -rf $(SRCPATH)/libsamplerate/include/samplerate.h $(TOPDIR)$(DELIM)include$(DELIM)nuttx$(DELIM)audio$(DELIM)
|
||||||
|
|
||||||
context:: $(TOPDIR)/include/nuttx/audio/samplerate.h
|
context:: $(TOPDIR)/include/nuttx/audio/samplerate.h
|
||||||
|
|
||||||
|
@ -59,15 +61,15 @@ ifeq ($(CONFIG_SINC_BEST_CONVERTER),y)
|
||||||
CFLAGS += -DENABLE_SINC_BEST_CONVERTER
|
CFLAGS += -DENABLE_SINC_BEST_CONVERTER
|
||||||
endif
|
endif
|
||||||
|
|
||||||
VPATH += libsamplerate/src
|
VPATH += $(SRCPATH)/libsamplerate/src
|
||||||
SUBDIRS += libsamplerate/src
|
SUBDIRS += $(SRCPATH)/libsamplerate/src
|
||||||
DEPPATH += --dep-path libsamplerate/src
|
DEPPATH += --dep-path $(SRCPATH)/libsamplerate/src
|
||||||
|
|
||||||
distclean::
|
distclean::
|
||||||
$(call DELDIR, $(TOPDIR)$(DELIM)include$(DELIM)nuttx$(DELIM)audio$(DELIM)samplerate.h)
|
$(call DELDIR, $(TOPDIR)$(DELIM)include$(DELIM)nuttx$(DELIM)audio$(DELIM)samplerate.h)
|
||||||
ifeq ($(wildcard libsamplerate/.git),)
|
ifeq ($(wildcard $(SRCPATH)/libsamplerate/.git),)
|
||||||
$(call DELDIR, libsamplerate)
|
$(call DELDIR, $(SRCPATH)/libsamplerate)
|
||||||
$(call DELFILE, libsamplerate.zip)
|
$(call DELFILE, $(SRCPATH)/libsamplerate.zip)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue