[Mesa-dev] [PATCH 20/29] st/vdpau: consolidate C sources list into Makefile.sources

Christian König deathsimple at vodafone.de
Mon Sep 23 00:26:35 PDT 2013


Am 22.09.2013 22:29, schrieb Emil Velikov:
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>

While it's not absolutely necessary for the VDPAU state tracker it makes 
sense consequently use Makefile.source all around the place.

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   src/gallium/state_trackers/vdpau/Makefile.am      | 14 ++------------
>   src/gallium/state_trackers/vdpau/Makefile.sources | 12 ++++++++++++
>   2 files changed, 14 insertions(+), 12 deletions(-)
>   create mode 100644 src/gallium/state_trackers/vdpau/Makefile.sources
>
> diff --git a/src/gallium/state_trackers/vdpau/Makefile.am b/src/gallium/state_trackers/vdpau/Makefile.am
> index f7c5ed6..a2fa366 100644
> --- a/src/gallium/state_trackers/vdpau/Makefile.am
> +++ b/src/gallium/state_trackers/vdpau/Makefile.am
> @@ -20,6 +20,7 @@
>   # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
>   # DEALINGS IN THE SOFTWARE.
>   
> +include Makefile.sources
>   include $(top_srcdir)/src/gallium/Automake.inc
>   
>   VDPAU_MAJOR = 1
> @@ -35,15 +36,4 @@ AM_CPPFLAGS = \
>   
>   noinst_LTLIBRARIES = libvdpautracker.la
>   
> -libvdpautracker_la_SOURCES = \
> -	htab.c \
> -	ftab.c \
> -	device.c \
> -	query.c \
> -	surface.c \
> -	decode.c \
> -	presentation.c \
> -	bitmap.c \
> -	output.c \
> -	preemption.c \
> -	mixer.c
> +libvdpautracker_la_SOURCES = $(C_SOURCES)
> diff --git a/src/gallium/state_trackers/vdpau/Makefile.sources b/src/gallium/state_trackers/vdpau/Makefile.sources
> new file mode 100644
> index 0000000..d90a870
> --- /dev/null
> +++ b/src/gallium/state_trackers/vdpau/Makefile.sources
> @@ -0,0 +1,12 @@
> +C_SOURCES := \
> +	htab.c \
> +	ftab.c \
> +	device.c \
> +	query.c \
> +	surface.c \
> +	decode.c \
> +	presentation.c \
> +	bitmap.c \
> +	output.c \
> +	preemption.c \
> +	mixer.c



More information about the mesa-dev mailing list