identity: consolidate C sources list into Makefile.sources
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 5 Jun 2013 22:28:11 +0000 (23:28 +0100)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 1 Oct 2013 14:29:50 +0000 (07:29 -0700)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
configure.ac
src/gallium/drivers/Makefile.am
src/gallium/drivers/identity/Makefile.am [new file with mode: 0644]
src/gallium/drivers/identity/Makefile.sources [new file with mode: 0644]
src/gallium/drivers/identity/SConscript

index 1fbca0e68bb687e84e0c159e2cd5c292e843311e..f88a0eeabaebca31bfa7b4f0e2eeab3985566c9d 100644 (file)
@@ -2004,6 +2004,7 @@ AC_CONFIG_FILES([Makefile
                src/gallium/drivers/freedreno/a2xx/Makefile
                src/gallium/drivers/freedreno/a3xx/Makefile
                src/gallium/drivers/i915/Makefile
+               src/gallium/drivers/identity/Makefile
                src/gallium/drivers/ilo/Makefile
                src/gallium/drivers/llvmpipe/Makefile
                src/gallium/drivers/nouveau/Makefile
index 171d102dad83147e12c46bf50d39afbfe84efb45..c75fb82375d5901fbf61bbcc69f00552f562059f 100644 (file)
@@ -11,7 +11,7 @@ AM_CFLAGS = $(VISIBILITY_CFLAGS)
 
 noinst_LTLIBRARIES =
 
-SUBDIRS = . trace rbug
+SUBDIRS = . identity trace rbug
 
 ################################################################################
 
@@ -24,15 +24,6 @@ galahad_libgalahad_la_SOURCES = \
 
 ################################################################################
 
-noinst_LTLIBRARIES += identity/libidentity.la
-
-identity_libidentity_la_SOURCES = \
-       identity/id_objects.c \
-       identity/id_context.c \
-       identity/id_screen.c
-
-################################################################################
-
 # Meta-driver which combines whichever software rasterizers have been
 # built into a single convenience library.
 
diff --git a/src/gallium/drivers/identity/Makefile.am b/src/gallium/drivers/identity/Makefile.am
new file mode 100644 (file)
index 0000000..1caf328
--- /dev/null
@@ -0,0 +1,11 @@
+include Makefile.sources
+include $(top_srcdir)/src/gallium/Automake.inc
+
+AM_CFLAGS = \
+       -I$(top_srcdir)/src/gallium/drivers \
+       $(GALLIUM_CFLAGS) \
+       $(VISIBILITY_CFLAGS)
+
+noinst_LTLIBRARIES = libidentity.la
+
+libidentity_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/drivers/identity/Makefile.sources b/src/gallium/drivers/identity/Makefile.sources
new file mode 100644 (file)
index 0000000..14351e0
--- /dev/null
@@ -0,0 +1,4 @@
+C_SOURCES := \
+       id_objects.c \
+       id_context.c \
+       id_screen.c
index d24d1ec7c61f869502366dea36a54284f4bef658..120995143d201512b89acd356b59dc841e8603e5 100644 (file)
@@ -4,11 +4,8 @@ env = env.Clone()
 
 identity = env.ConvenienceLibrary(
        target = 'identity',
-       source = [
-               'id_context.c',
-               'id_objects.c',
-               'id_screen.c',
-       ])
+       source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
+       )
 
 env.Alias('identity', identity)