[Mesa-dev] [PATCH 18/22] st/omx: use makefile.sources to handle sources lists

Christian König deathsimple at vodafone.de
Tue Aug 19 01:59:57 PDT 2014


Am 19.08.2014 um 01:20 schrieb Emil Velikov:
> ... and add the headers so that 'make check' is happy.
>
> Cc: Christian König <christian.koenig at amd.com>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>

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

> ---
>   src/gallium/state_trackers/omx/Makefile.am      | 8 ++------
>   src/gallium/state_trackers/omx/Makefile.sources | 9 +++++++++
>   2 files changed, 11 insertions(+), 6 deletions(-)
>   create mode 100644 src/gallium/state_trackers/omx/Makefile.sources
>
> diff --git a/src/gallium/state_trackers/omx/Makefile.am b/src/gallium/state_trackers/omx/Makefile.am
> index 83b3f90..68eed02 100644
> --- a/src/gallium/state_trackers/omx/Makefile.am
> +++ b/src/gallium/state_trackers/omx/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
>   
>   AM_CFLAGS = \
> @@ -29,9 +30,4 @@ AM_CFLAGS = \
>   
>   noinst_LTLIBRARIES = libomxtracker.la
>   
> -libomxtracker_la_SOURCES = \
> -	entrypoint.c \
> -	vid_dec.c \
> -	vid_dec_mpeg12.c \
> -	vid_dec_h264.c \
> -	vid_enc.c
> +libomxtracker_la_SOURCES = $(C_SOURCES)
> diff --git a/src/gallium/state_trackers/omx/Makefile.sources b/src/gallium/state_trackers/omx/Makefile.sources
> new file mode 100644
> index 0000000..d25cd2e
> --- /dev/null
> +++ b/src/gallium/state_trackers/omx/Makefile.sources
> @@ -0,0 +1,9 @@
> +C_SOURCES := \
> +	entrypoint.c \
> +	entrypoint.h \
> +	vid_dec.c \
> +	vid_dec.h \
> +	vid_dec_mpeg12.c \
> +	vid_dec_h264.c \
> +	vid_enc.c \
> +	vid_enc.h



More information about the mesa-dev mailing list