summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/vega
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2012-09-04 13:24:33 -0700
committerAndreas Boll <andreas.boll.dev@gmail.com>2013-01-10 22:01:09 +0100
commit68c0311996408c42e7b31aaddad01c4f4b0a7628 (patch)
tree4058740650a740c430c71aadc0b4cfb14ef629ba /src/gallium/state_trackers/vega
parentd2ca32e33253e8822c375ae6c0645e9fd7c725de (diff)
state_trackers/vega: Convert to automake
Diffstat (limited to 'src/gallium/state_trackers/vega')
-rw-r--r--src/gallium/state_trackers/vega/.gitignore1
-rw-r--r--src/gallium/state_trackers/vega/Makefile53
-rw-r--r--src/gallium/state_trackers/vega/Makefile.am75
3 files changed, 76 insertions, 53 deletions
diff --git a/src/gallium/state_trackers/vega/.gitignore b/src/gallium/state_trackers/vega/.gitignore
index c452229f7f4..dcd83d0a02f 100644
--- a/src/gallium/state_trackers/vega/.gitignore
+++ b/src/gallium/state_trackers/vega/.gitignore
@@ -1 +1,2 @@
api_tmp.h
+Makefile
diff --git a/src/gallium/state_trackers/vega/Makefile b/src/gallium/state_trackers/vega/Makefile
deleted file mode 100644
index 3e8ad49b767..00000000000
--- a/src/gallium/state_trackers/vega/Makefile
+++ /dev/null
@@ -1,53 +0,0 @@
-# src/gallium/state_trackers/vega/Makefile
-
-TOP = ../../../..
-include $(TOP)/configs/current
-
-LIBNAME = vega
-
-LIBRARY_INCLUDES = \
- -I$(TOP)/include \
- -I$(TOP)/src/mapi
-
-LIBRARY_DEFINES = \
- -DVEGA_VERSION_STRING=\"$(MESA_VERSION)\"
-
-C_SOURCES = \
- api.c \
- api_context.c \
- api_filters.c \
- api_images.c \
- api_masks.c \
- api_misc.c \
- api_paint.c \
- api_params.c \
- api_path.c \
- api_text.c \
- api_transform.c \
- arc.c \
- bezier.c \
- handle.c \
- image.c \
- mask.c \
- paint.c \
- path.c \
- polygon.c \
- renderer.c \
- shader.c \
- shaders_cache.c \
- stroker.c \
- text.c \
- vg_context.c \
- vg_manager.c \
- vg_state.c \
- vg_translate.c \
- vgu.c
-
-
-GENERATED_SOURCES := api_tmp.h
-
-include ../../Makefile.template
-
-MAPI := $(TOP)/src/mapi
-api_tmp.h: $(MAPI)/mapi/mapi_abi.py $(MAPI)/vgapi/vgapi.csv
- $(PYTHON2) $< --printer vgapi --mode app $(MAPI)/vgapi/vgapi.csv > $@
diff --git a/src/gallium/state_trackers/vega/Makefile.am b/src/gallium/state_trackers/vega/Makefile.am
new file mode 100644
index 00000000000..f656af75c44
--- /dev/null
+++ b/src/gallium/state_trackers/vega/Makefile.am
@@ -0,0 +1,75 @@
+# Copyright © 2012 Intel Corporation
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice (including the next
+# paragraph) shall be included in all copies or substantial portions of the
+# Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+
+include $(top_srcdir)/src/gallium/Automake.inc
+
+AM_CFLAGS = $(GALLIUM_CFLAGS)
+AM_CPPFLAGS = \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src/mapi \
+ -DVEGA_VERSION_STRING=\"$(MESA_VERSION)\"
+
+noinst_LTLIBRARIES = libvega.la
+
+libvega_la_SOURCES = \
+ api.c \
+ api_context.c \
+ api_filters.c \
+ api_images.c \
+ api_masks.c \
+ api_misc.c \
+ api_paint.c \
+ api_params.c \
+ api_path.c \
+ api_text.c \
+ api_transform.c \
+ arc.c \
+ bezier.c \
+ handle.c \
+ image.c \
+ mask.c \
+ paint.c \
+ path.c \
+ polygon.c \
+ renderer.c \
+ shader.c \
+ shaders_cache.c \
+ stroker.c \
+ text.c \
+ vg_context.c \
+ vg_manager.c \
+ vg_state.c \
+ vg_translate.c \
+ vgu.c
+
+BUILT_SOURCES = api_tmp.h
+CLEANFILES = api_tmp.h
+
+api_tmp.h: $(top_srcdir)/src/mapi/vgapi/vgapi.csv $(top_srcdir)/src/mapi/mapi/mapi_abi.py
+ $(AM_V_GEN) $(PYTHON2) $(PYTHON_FLAGS) $(top_srcdir)/src/mapi/mapi/mapi_abi.py \
+ --printer vgapi --mode app $< > $@
+
+#XXX: Delete this when all targets that rely on vega are converted to automake.
+all-local: libvega.la
+ ln -f $(builddir)/.libs/libvega.a $(builddir)/libvega.a
+
+CLEANFILES += libvega.a