summaryrefslogtreecommitdiff
path: root/endless/Makefile.am
blob: 52f6f856834b7174ab2c895350af3d5c41970cef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright 2013 Endless Mobile, Inc.

# Generate dependencies for make rule from XML resource file description
resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/data \
	--generate-dependencies $(srcdir)/data/eos-sdk.gresource.xml)

# Generated sources for GResource file
endless/eosresource-private.h: data/eos-sdk.gresource.xml $(resource_files)
	$(AM_V_GEN) $(MKDIR_P) $(builddir)/data && \
	$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/data \
		--generate-header --internal $<
endless/eosresource.c: data/eos-sdk.gresource.xml $(resource_files)
	$(AM_V_GEN) $(MKDIR_P) $(builddir)/data && \
	$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/data \
		--generate-source --internal $<

BUILT_SOURCES = \
	endless/eosresource-private.h \
	endless/eosresource.c \
	$(NULL)
EXTRA_DIST += \
	$(resource_files) \
	data/eos-sdk.gresource.xml

endless_public_installed_headers = endless/endless.h

endless_private_installed_headers = \
	endless/eosversion.h \
	endless/eosapplication.h \
	endless/eoscustomcontainer.h \
	endless/eosenums.h \
	endless/eosmacros.h \
	endless/eospagemanager.h \
	endless/eostypes.h \
	endless/eoswindow.h \
	endless/eosflexygrid.h

endless_library_sources = \
	endless/eosapplication.c \
	endless/eosattribution.c endless/eosattribution-private.h \
	endless/eoscellrendererpixbuflink.c endless/eoscellrendererpixbuflink-private.h \
	endless/eoscellrenderertextlink.c endless/eoscellrenderertextlink-private.h \
	endless/eoscustomcontainer.c \
	endless/eoshello.c \
	endless/eosinit.c endless/eosinit-private.h \
	endless/eospagemanager.c \
	endless/eosresource.c endless/eosresource-private.h \
	endless/eostopbar.c endless/eostopbar-private.h \
	endless/eoswindow.c \
	endless/eosflexygrid.c endless/eosflexygridcell.c endless/eosflexygrid-private.h

# Endless GUI library
lib_LTLIBRARIES += libendless-@EOS_SDK_API_VERSION@.la
libendless_@EOS_SDK_API_VERSION@_la_SOURCES = \
	$(endless_public_installed_headers) \
	$(endless_private_installed_headers) \
	$(endless_library_sources) \
	$(NULL)
# Defining G_LOG_DOMAIN allows you to run any program with
# G_MESSAGES_DEBUG=EndlessSDK ./myprogram
# and turn on debug messages
libendless_@EOS_SDK_API_VERSION@_la_CPPFLAGS = \
	@EOS_SDK_CFLAGS@ \
	-DG_LOG_DOMAIN=\"EndlessSDK\" \
	-DCOMPILING_EOS_SDK \
	-DDATADIR=\""$(datadir)"\" \
	-DSYSCONFDIR=\""$(sysconfdir)"\" \
	$(NULL)
libendless_@EOS_SDK_API_VERSION@_la_CFLAGS = $(AM_CFLAGS)
libendless_@EOS_SDK_API_VERSION@_la_LIBADD = @EOS_SDK_LIBS@

# AM_LDFLAGS won't be applied automatically where we have an override
# so we need to add EOS_C_COVERAGE_LDFLAGS here
libendless_@EOS_SDK_API_VERSION@_la_LDFLAGS = \
	-version-info @EOS_SDK_LT_VERSION_INFO@ \
	-export-symbols-regex "^eos_" \
	@EOS_C_COVERAGE_LDFLAGS@ \
	$(NULL)