2011-03-17 15:32:54 -04:00
|
|
|
include $(top_srcdir)/build/autotools/Makefile.am.silent
|
|
|
|
|
|
|
|
INCLUDES = \
|
2011-10-12 11:01:11 -04:00
|
|
|
-I$(top_srcdir)
|
2011-03-17 15:32:54 -04:00
|
|
|
|
|
|
|
AM_CFLAGS = \
|
|
|
|
$(COGL_DEP_CFLAGS) \
|
|
|
|
$(COGL_EXTRA_CFLAGS) \
|
2011-10-12 11:01:11 -04:00
|
|
|
-DCOGL_ENABLE_EXPERIMENTAL_2_0_API
|
|
|
|
|
|
|
|
if INSTALL_EXAMPLES
|
|
|
|
AM_CFLAGS += -DCOGL_EXAMPLES_DATA=\""$(pkgdatadir)/examples-data/"\"
|
|
|
|
else
|
|
|
|
AM_CFLAGS += -DCOGL_EXAMPLES_DATA=\""$(abs_top_srcdir)/examples/"\"
|
|
|
|
endif
|
2011-03-17 15:32:54 -04:00
|
|
|
|
|
|
|
common_ldadd = \
|
2011-06-15 09:52:21 -04:00
|
|
|
$(COGL_DEP_LIBS) \
|
2011-05-05 17:04:07 -04:00
|
|
|
$(top_builddir)/cogl/libcogl.la
|
2011-03-17 15:32:54 -04:00
|
|
|
|
2011-10-12 11:01:11 -04:00
|
|
|
programs = cogl-hello
|
|
|
|
examples_datadir = $(pkgdatadir)/examples-data
|
|
|
|
examples_data_DATA =
|
2011-03-17 15:32:54 -04:00
|
|
|
|
2011-10-12 11:01:11 -04:00
|
|
|
cogl_hello_SOURCES = cogl-hello.c
|
|
|
|
cogl_hello_LDADD = $(common_ldadd)
|
2011-03-17 15:32:54 -04:00
|
|
|
|
2011-05-11 11:37:09 -04:00
|
|
|
if BUILD_COGL_PANGO
|
2011-10-12 11:01:11 -04:00
|
|
|
programs += cogl-crate
|
|
|
|
cogl_crate_SOURCES = cogl-crate.c
|
|
|
|
cogl_crate_LDADD = $(common_ldadd) $(COGL_PANGO_DEP_LIBS) $(top_builddir)/cogl-pango/libcogl-pango.la
|
|
|
|
cogl_crate_CFLAGS = $(AM_CFLAGS) $(COGL_PANGO_DEP_CFLAGS)
|
|
|
|
examples_data_DATA += crate.jpg
|
2011-05-11 11:37:09 -04:00
|
|
|
endif
|
|
|
|
|
2011-03-17 15:32:54 -04:00
|
|
|
if X11_TESTS
|
2011-10-12 11:01:11 -04:00
|
|
|
programs += cogl-x11-foreign cogl-x11-tfp
|
|
|
|
cogl_x11_foreign_SOURCES = cogl-x11-foreign.c
|
|
|
|
cogl_x11_foreign_LDADD = $(common_ldadd)
|
|
|
|
cogl_x11_tfp_SOURCES = cogl-x11-tfp.c
|
|
|
|
cogl_x11_tfp_LDADD = $(common_ldadd)
|
2011-03-17 15:32:54 -04:00
|
|
|
endif
|
2011-05-25 14:27:10 -04:00
|
|
|
|
|
|
|
if SUPPORT_WAYLAND_EGL_SERVER
|
2011-10-12 11:01:11 -04:00
|
|
|
programs += cogland
|
2011-05-25 14:27:10 -04:00
|
|
|
cogland_SOURCES = cogland.c
|
|
|
|
cogland_LDADD = $(common_ldadd)
|
|
|
|
endif
|
2011-05-11 11:37:09 -04:00
|
|
|
|
2011-10-12 11:01:11 -04:00
|
|
|
if INSTALL_EXAMPLES
|
|
|
|
bin_PROGRAMS = $(programs)
|
|
|
|
else
|
|
|
|
noinst_PROGRAMS = $(programs)
|
|
|
|
endif
|
|
|
|
|
2011-08-12 12:27:07 -04:00
|
|
|
EXTRA_DIST = \
|
2011-10-18 11:42:07 -04:00
|
|
|
crate.jpg \
|
2011-08-12 12:27:07 -04:00
|
|
|
android/hello/AndroidManifest.xml \
|
|
|
|
android/hello/jni/Application.mk \
|
|
|
|
android/hello/jni/Android.mk \
|
|
|
|
android/hello/jni/main.c \
|
|
|
|
android/hello/res/values/strings.xml \
|
|
|
|
android/hello/.gitignore \
|
|
|
|
android/hello/build.xml
|
|
|
|
|