aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Eldbus.am
blob: bb786104d59e29cbfa1639969eb49c11658e8582 (plain) (blame)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156

### Library

eldbus_eolian_type_files = \
    lib/eldbus/eldbus_types.eot

eldbus_eolian_files = \
	lib/eldbus/eldbus_model_connection.eo \
	lib/eldbus/eldbus_model_object.eo \
	lib/eldbus/eldbus_model_proxy.eo \
	lib/eldbus/eldbus_model_method.eo \
	lib/eldbus/eldbus_model_arguments.eo \
	lib/eldbus/eldbus_model_signal.eo \
	lib/eldbus/eldbus_model.eo

eldbus_eolian_c = $(eldbus_eolian_files:%.eo=%.eo.c)
eldbus_eolian_h = $(eldbus_eolian_files:%.eo=%.eo.h) \
                  $(eldbus_eolian_type_files:%.eot=%.eot.h)

BUILT_SOURCES += \
	$(eldbus_eolian_c) \
	$(eldbus_eolian_h)

if INSTALL_EO_FILES
eldbuseolianfilesdir = $(datadir)/eolian/include/eldbus-@VMAJ@
eldbuseolianfiles_DATA = \
$(eldbus_eolian_files) \
$(eldbus_eolian_type_files)
endif

EXTRA_DIST2 += \
$(eldbus_eolian_files) \
$(eldbus_eolian_type_files)

lib_LTLIBRARIES += lib/eldbus/libeldbus.la

installed_eldbusmainheadersdir = $(includedir)/eldbus-@VMAJ@
dist_installed_eldbusmainheaders_DATA = \
lib/eldbus/Eldbus.h \
lib/eldbus/eldbus_connection.h \
lib/eldbus/eldbus_freedesktop.h \
lib/eldbus/eldbus_message.h \
lib/eldbus/eldbus_object.h \
lib/eldbus/eldbus_pending.h \
lib/eldbus/eldbus_proxy.h \
lib/eldbus/eldbus_service.h \
lib/eldbus/eldbus_signal_handler.h \
lib/eldbus/eldbus_message_helper.h \
lib/eldbus/eldbus_introspection.h \
lib/eldbus/Eldbus_Model.h \
lib/eldbus/eldbus_message_eina_value.h

nodist_installed_eldbusmainheaders_DATA = $(eldbus_eolian_h)

lib_eldbus_libeldbus_la_SOURCES = \
lib/eldbus/eldbus_private.h \
lib/eldbus/eldbus_private_types.h \
lib/eldbus/eldbus_model_private.h \
lib/eldbus/eldbus_model_proxy_private.h \
lib/eldbus/eldbus_model_object_private.h \
lib/eldbus/eldbus_model_arguments_private.h \
lib/eldbus/eldbus_model_connection_private.h \
lib/eldbus/eldbus_model_signal_private.h \
lib/eldbus/eldbus_model_method_private.h \
lib/eldbus/eldbus_proxy.c \
lib/eldbus/eldbus_core.c \
lib/eldbus/eldbus_message.c \
lib/eldbus/eldbus_object.c \
lib/eldbus/eldbus_pending.c \
lib/eldbus/eldbus_freedesktop.c \
lib/eldbus/eldbus_service.c \
lib/eldbus/eldbus_signal_handler.c \
lib/eldbus/eldbus_message_helper.c \
lib/eldbus/eldbus_message_to_eina_value.c \
lib/eldbus/eldbus_message_from_eina_value.c \
lib/eldbus/eldbus_model_connection.c \
lib/eldbus/eldbus_model_object.c \
lib/eldbus/eldbus_model_proxy.c \
lib/eldbus/eldbus_model_method.c \
lib/eldbus/eldbus_model_arguments.c \
lib/eldbus/eldbus_model_signal.c \
lib/eldbus/eldbus_model.c \
lib/eldbus/eldbus_introspection.c

lib_eldbus_libeldbus_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-include $(top_builddir)/config.h \
@ELDBUS_CFLAGS@ @EFL_CFLAGS@
lib_eldbus_libeldbus_la_LIBADD = @ELDBUS_LIBS@ @EFL_LIBS@
lib_eldbus_libeldbus_la_DEPENDENCIES = @ELDBUS_INTERNAL_LIBS@ @EFL_INTERNAL_LIBS@
lib_eldbus_libeldbus_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@

### Binary

bin_PROGRAMS += bin/eldbus/eldbus-codegen

bin_eldbus_eldbus_codegen_SOURCES = \
bin/eldbus/codegen.h \
bin/eldbus/utils.c \
bin/eldbus/parser.c \
bin/eldbus/dbus.c \
bin/eldbus/source_client.c \
bin/eldbus/client.c

bin_eldbus_eldbus_codegen_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/eldbus\" \
@ELDBUS_CFLAGS@

if HAVE_WIN32
bin_eldbus_eldbus_codegen_LDADD = -L$(top_builddir)/src/lib/evil @USE_ELDBUS_LIBS@
else
bin_eldbus_eldbus_codegen_LDADD = @USE_ELDBUS_LIBS@
endif
bin_eldbus_eldbus_codegen_DEPENDENCIES = @USE_ELDBUS_INTERNAL_LIBS@

if HAVE_CXX
eldbus_eolian_cxx_hh = $(eldbus_eolian_files:%.eo=%.eo.hh)
eldbus_eolian_cxx_impl_hh = $(eldbus_eolian_files:%.eo=%.eo.impl.hh)
endif

### Unit tests

if EFL_ENABLE_TESTS

check_PROGRAMS += tests/eldbus/eldbus_suite
TESTS += tests/eldbus/eldbus_suite

tests_eldbus_eldbus_suite_SOURCES = \
tests/eldbus/eldbus_suite.c \
tests/eldbus/eldbus_test_eldbus_init.c \
tests/eldbus/eldbus_test_eldbus_model.h \
tests/eldbus/eldbus_fake_server.h \
tests/eldbus/eldbus_test_eldbus_model.c \
tests/eldbus/eldbus_test_eldbus_model_connection.c \
tests/eldbus/eldbus_test_eldbus_model_object.c \
tests/eldbus/eldbus_test_eldbus_model_proxy.c \
tests/eldbus/eldbus_test_eldbus_model_method.c \
tests/eldbus/eldbus_test_eldbus_model_signal.c \
tests/eldbus/eldbus_test_eldbus_object.c \
tests/eldbus/eldbus_test_eldbus_message.c \
tests/eldbus/eldbus_test_eldbus_signal_handler.c \
tests/eldbus/eldbus_test_eldbus_proxy.c \
tests/eldbus/eldbus_test_eldbus_pending_cancel.c \
tests/eldbus/eldbus_test_fake_server_eldbus_model_proxy.c \
tests/eldbus/eldbus_fake_server.c \
tests/eldbus/eldbus_suite.h

tests_eldbus_eldbus_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl @CHECK_CFLAGS@ @ELDBUS_CFLAGS@ \
-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)\" \
@EFL_CFLAGS@ -DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/eldbus\"

tests_eldbus_eldbus_suite_LDADD = @CHECK_LIBS@ @USE_ELDBUS_LIBS@ @USE_EFL_LIBS@
tests_eldbus_eldbus_suite_DEPENDENCIES = @USE_ELDBUS_INTERNAL_LIBS@

endif