summaryrefslogtreecommitdiff
path: root/src/Makefile_Eldbus.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile_Eldbus.am')
-rw-r--r--src/Makefile_Eldbus.am157
1 files changed, 157 insertions, 0 deletions
diff --git a/src/Makefile_Eldbus.am b/src/Makefile_Eldbus.am
new file mode 100644
index 0000000..dace370
--- /dev/null
+++ b/src/Makefile_Eldbus.am
@@ -0,0 +1,157 @@
1
2### Library
3
4eldbus_eolian_type_files = \
5 lib/eldbus/eldbus_types.eot
6
7eldbus_eolian_files = \
8 lib/eldbus/eldbus_model_connection.eo \
9 lib/eldbus/eldbus_model_object.eo \
10 lib/eldbus/eldbus_model_proxy.eo \
11 lib/eldbus/eldbus_model_method.eo \
12 lib/eldbus/eldbus_model_arguments.eo \
13 lib/eldbus/eldbus_model_signal.eo \
14 lib/eldbus/eldbus_model.eo
15
16eldbus_eolian_c = $(eldbus_eolian_files:%.eo=%.eo.c)
17eldbus_eolian_h = $(eldbus_eolian_files:%.eo=%.eo.h) \
18 $(eldbus_eolian_type_files:%.eot=%.eot.h)
19
20BUILT_SOURCES += \
21 $(eldbus_eolian_c) \
22 $(eldbus_eolian_h)
23
24if INSTALL_EO_FILES
25eldbuseolianfilesdir = $(datadir)/eolian/include/eldbus-@VMAJ@
26eldbuseolianfiles_DATA = \
27$(eldbus_eolian_files) \
28$(eldbus_eolian_type_files)
29endif
30
31EXTRA_DIST2 += \
32$(eldbus_eolian_files) \
33$(eldbus_eolian_type_files)
34
35lib_LTLIBRARIES += lib/eldbus/libeldbus.la
36
37installed_eldbusmainheadersdir = $(includedir)/eldbus-@VMAJ@
38dist_installed_eldbusmainheaders_DATA = \
39lib/eldbus/Eldbus.h \
40lib/eldbus/eldbus_connection.h \
41lib/eldbus/eldbus_freedesktop.h \
42lib/eldbus/eldbus_message.h \
43lib/eldbus/eldbus_object.h \
44lib/eldbus/eldbus_pending.h \
45lib/eldbus/eldbus_proxy.h \
46lib/eldbus/eldbus_service.h \
47lib/eldbus/eldbus_signal_handler.h \
48lib/eldbus/eldbus_message_helper.h \
49lib/eldbus/eldbus_introspection.h \
50lib/eldbus/Eldbus_Model.h \
51lib/eldbus/eldbus_message_eina_value.h
52
53nodist_installed_eldbusmainheaders_DATA = $(eldbus_eolian_h)
54
55lib_eldbus_libeldbus_la_SOURCES = \
56lib/eldbus/eldbus_private.h \
57lib/eldbus/eldbus_private_types.h \
58lib/eldbus/eldbus_model_private.h \
59lib/eldbus/eldbus_model_proxy_private.h \
60lib/eldbus/eldbus_model_object_private.h \
61lib/eldbus/eldbus_model_arguments_private.h \
62lib/eldbus/eldbus_model_connection_private.h \
63lib/eldbus/eldbus_model_signal_private.h \
64lib/eldbus/eldbus_model_method_private.h \
65lib/eldbus/eldbus_proxy.c \
66lib/eldbus/eldbus_core.c \
67lib/eldbus/eldbus_message.c \
68lib/eldbus/eldbus_object.c \
69lib/eldbus/eldbus_pending.c \
70lib/eldbus/eldbus_freedesktop.c \
71lib/eldbus/eldbus_service.c \
72lib/eldbus/eldbus_signal_handler.c \
73lib/eldbus/eldbus_message_helper.c \
74lib/eldbus/eldbus_message_to_eina_value.c \
75lib/eldbus/eldbus_message_from_eina_value.c \
76lib/eldbus/eldbus_model_connection.c \
77lib/eldbus/eldbus_model_object.c \
78lib/eldbus/eldbus_model_proxy.c \
79lib/eldbus/eldbus_model_method.c \
80lib/eldbus/eldbus_model_arguments.c \
81lib/eldbus/eldbus_model_signal.c \
82lib/eldbus/eldbus_model.c \
83lib/eldbus/eldbus_introspection.c
84
85lib_eldbus_libeldbus_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
86-include $(top_builddir)/config.h \
87-DEFL_BUILD \
88@ELDBUS_CFLAGS@ @EFL_CFLAGS@
89lib_eldbus_libeldbus_la_LIBADD = @ELDBUS_LIBS@ @EFL_LIBS@
90lib_eldbus_libeldbus_la_DEPENDENCIES = @ELDBUS_INTERNAL_LIBS@ @EFL_INTERNAL_LIBS@
91lib_eldbus_libeldbus_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
92
93### Binary
94
95bin_PROGRAMS += bin/eldbus/eldbus-codegen
96
97bin_eldbus_eldbus_codegen_SOURCES = \
98bin/eldbus/codegen.h \
99bin/eldbus/utils.c \
100bin/eldbus/parser.c \
101bin/eldbus/dbus.c \
102bin/eldbus/source_client.c \
103bin/eldbus/client.c
104
105bin_eldbus_eldbus_codegen_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
106-DPACKAGE_BIN_DIR=\"$(bindir)\" \
107-DPACKAGE_LIB_DIR=\"$(libdir)\" \
108-DPACKAGE_DATA_DIR=\"$(datadir)/eldbus\" \
109@ELDBUS_CFLAGS@
110
111if HAVE_WIN32
112bin_eldbus_eldbus_codegen_LDADD = -L$(top_builddir)/src/lib/evil @USE_ELDBUS_LIBS@
113else
114bin_eldbus_eldbus_codegen_LDADD = @USE_ELDBUS_LIBS@
115endif
116bin_eldbus_eldbus_codegen_DEPENDENCIES = @USE_ELDBUS_INTERNAL_LIBS@
117
118if HAVE_CXX
119eldbus_eolian_cxx_hh = $(eldbus_eolian_files:%.eo=%.eo.hh)
120eldbus_eolian_cxx_impl_hh = $(eldbus_eolian_files:%.eo=%.eo.impl.hh)
121endif
122
123### Unit tests
124
125if EFL_ENABLE_TESTS
126
127check_PROGRAMS += tests/eldbus/eldbus_suite
128TESTS += tests/eldbus/eldbus_suite
129
130tests_eldbus_eldbus_suite_SOURCES = \
131tests/eldbus/eldbus_suite.c \
132tests/eldbus/eldbus_test_eldbus_init.c \
133tests/eldbus/eldbus_test_eldbus_model.h \
134tests/eldbus/eldbus_fake_server.h \
135tests/eldbus/eldbus_test_eldbus_model.c \
136tests/eldbus/eldbus_test_eldbus_model_connection.c \
137tests/eldbus/eldbus_test_eldbus_model_object.c \
138tests/eldbus/eldbus_test_eldbus_model_proxy.c \
139tests/eldbus/eldbus_test_eldbus_model_method.c \
140tests/eldbus/eldbus_test_eldbus_model_signal.c \
141tests/eldbus/eldbus_test_eldbus_object.c \
142tests/eldbus/eldbus_test_eldbus_message.c \
143tests/eldbus/eldbus_test_eldbus_signal_handler.c \
144tests/eldbus/eldbus_test_eldbus_proxy.c \
145tests/eldbus/eldbus_test_eldbus_pending_cancel.c \
146tests/eldbus/eldbus_test_fake_server_eldbus_model_proxy.c \
147tests/eldbus/eldbus_fake_server.c \
148tests/eldbus/eldbus_suite.h
149
150tests_eldbus_eldbus_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl @CHECK_CFLAGS@ @ELDBUS_CFLAGS@ \
151-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)\" \
152@EFL_CFLAGS@ -DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/eldbus\"
153
154tests_eldbus_eldbus_suite_LDADD = @CHECK_LIBS@ @USE_ELDBUS_LIBS@ @USE_EFL_LIBS@
155tests_eldbus_eldbus_suite_DEPENDENCIES = @USE_ELDBUS_INTERNAL_LIBS@
156
157endif