Generate libvpx_srcs.txt from current configuration
authorJohn Koleszar <jkoleszar@google.com>
Fri, 12 Aug 2011 18:59:10 +0000 (14:59 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Fri, 12 Aug 2011 18:59:22 +0000 (14:59 -0400)
To get a list of files that the libvpx library depends on in the current
configuration, run:

  $ make target=libs libvpx_srcs.txt

Change-Id: I68a69648ecf212f0fe29c325297728ac2a9393d9

libs.mk

diff --git a/libs.mk b/libs.mk
index 757e068..fecc0da 100644 (file)
--- a/libs.mk
+++ b/libs.mk
@@ -132,6 +132,14 @@ CODEC_SRCS=$(call enabled,CODEC_SRCS)
 INSTALL-SRCS-$(CONFIG_CODEC_SRCS) += $(CODEC_SRCS)
 INSTALL-SRCS-$(CONFIG_CODEC_SRCS) += $(call enabled,CODEC_EXPORTS)
 
+
+# Generate a list of all enabled sources, in particular for exporting to gyp
+# based build systems.
+libvpx_srcs.txt:
+       @echo "    [CREATE] $@"
+       @echo $(CODEC_SRCS) | xargs -n1 echo | sort -u > $@
+
+
 ifeq ($(CONFIG_EXTERNAL_BUILD),yes)
 ifeq ($(CONFIG_MSVS),yes)