08fecbaa84
This adds a centralized autotools Makefile to be used in the completion of the project files for Cogl-Path for now, which can be used also in Cogl, Cogl-Pango and possibly Cogl-Gst so that we could have less clutter in the autotools files. This patch set will also allow the Cogl-Path project files to be filled in during 'make dist' and make them distributed during a tarball release. Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 491020592b240ca5f2885dee104c88bf431858ae) Conflicts: cogl-path/Makefile.am
106 lines
2.6 KiB
Makefile
106 lines
2.6 KiB
Makefile
include $(top_srcdir)/build/autotools/Makefile.am.silent
|
|
|
|
NULL =
|
|
|
|
BUILT_SOURCES =
|
|
|
|
CLEANFILES =
|
|
DISTCLEANFILES =
|
|
|
|
EXTRA_DIST =
|
|
|
|
# tesselator sources
|
|
cogl_tesselator_sources = \
|
|
$(srcdir)/tesselator/dict-list.h \
|
|
$(srcdir)/tesselator/dict.c \
|
|
$(srcdir)/tesselator/dict.h \
|
|
$(srcdir)/tesselator/geom.c \
|
|
$(srcdir)/tesselator/geom.h \
|
|
$(srcdir)/tesselator/gluos.h \
|
|
$(srcdir)/tesselator/memalloc.h \
|
|
$(srcdir)/tesselator/mesh.c \
|
|
$(srcdir)/tesselator/mesh.h \
|
|
$(srcdir)/tesselator/normal.c \
|
|
$(srcdir)/tesselator/normal.h \
|
|
$(srcdir)/tesselator/priorityq-heap.h \
|
|
$(srcdir)/tesselator/priorityq-sort.h \
|
|
$(srcdir)/tesselator/priorityq.c \
|
|
$(srcdir)/tesselator/priorityq.h \
|
|
$(srcdir)/tesselator/render.c \
|
|
$(srcdir)/tesselator/render.h \
|
|
$(srcdir)/tesselator/sweep.c \
|
|
$(srcdir)/tesselator/sweep.h \
|
|
$(srcdir)/tesselator/tess.c \
|
|
$(srcdir)/tesselator/tess.h \
|
|
$(srcdir)/tesselator/tesselator.h \
|
|
$(srcdir)/tesselator/tessmono.c \
|
|
$(srcdir)/tesselator/tessmono.h \
|
|
$(srcdir)/tesselator/GL/glu.h \
|
|
$(NULL)
|
|
|
|
source_c = \
|
|
$(cogl_tesselator_sources) \
|
|
cogl-path-private.h \
|
|
cogl1-path.c \
|
|
cogl-path.c \
|
|
$(NULL)
|
|
|
|
EXTRA_DIST += \
|
|
$(srcdir)/tesselator/README \
|
|
$(srcdir)/tesselator/priorityq-heap.c \
|
|
$(srcdir)/cogl-path.symbols \
|
|
$(NULL)
|
|
|
|
source_1_x_h = \
|
|
$(srcdir)/cogl-path-types.h \
|
|
$(srcdir)/cogl1-path-functions.h \
|
|
$(NULL)
|
|
|
|
source_h = \
|
|
cogl-path.h \
|
|
$(source_1_x_h) \
|
|
cogl2-path-functions.h \
|
|
$(NULL)
|
|
|
|
if USE_GLIB
|
|
# glib-mkenums rules
|
|
glib_enum_h = cogl-path-enum-types.h
|
|
glib_enum_c = cogl-path-enum-types.c
|
|
glib_enum_headers = $(source_1_x_h)
|
|
include $(top_srcdir)/build/autotools/Makefile.am.enums
|
|
endif
|
|
|
|
noinst_LTLIBRARIES = libcogl-path.la
|
|
|
|
libcogl_path_la_SOURCES = $(source_c) $(source_h)
|
|
nodist_libcogl_path_la_SOURCES = $(BUILT_SOURCES)
|
|
libcogl_path_la_CFLAGS = $(COGL_DEP_CFLAGS) $(COGL_GST_DEP_CFLAGS) $(COGL_EXTRA_CFLAGS) $(MAINTAINER_CFLAGS)
|
|
|
|
AM_CPPFLAGS = \
|
|
-DCOGL_COMPILATION \
|
|
-DG_LOG_DOMAIN=\"CoglPath\" \
|
|
-I$(srcdir)/tesselator \
|
|
-I$(top_srcdir)/cogl \
|
|
-I$(top_builddir)/cogl \
|
|
-I$(top_srcdir)/cogl/winsys \
|
|
-I$(top_srcdir) \
|
|
-I$(top_builddir)
|
|
|
|
cogl_pathheadersdir = $(includedir)/cogl/cogl-path
|
|
cogl_pathheaders_HEADERS = $(source_h)
|
|
if USE_GLIB
|
|
nodist_cogl_pathheaders_HEADERS = cogl-path-enum-types.h
|
|
endif
|
|
|
|
dist-hook: \
|
|
$(top_builddir)/build/win32/vs9/cogl-path.vcproj \
|
|
$(top_builddir)/build/win32/vs10/cogl-path.vcxproj \
|
|
$(top_builddir)/build/win32/vs10/cogl-path.vcxproj.filters
|
|
|
|
MSVC_PROJECT = cogl-path
|
|
MSVC_PROJECT_SRCDIR = cogl-path
|
|
MSVC_PROJECT_SRCS = $(source_c)
|
|
MSVC_PROJECT_EXCLUDES = dummy
|
|
|
|
include $(top_srcdir)/build/Makefile-msvcproj.mak
|