summaryrefslogtreecommitdiff
path: root/src/Makefile_Elput.am
blob: 5d1fa8b219249b22a44bf427eb096e733a865d79 (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
if HAVE_ELPUT

### Library

lib_LTLIBRARIES += lib/elput/libelput.la

installed_elputmainheadersdir = $(includedir)/elput-@VMAJ@
dist_installed_elputmainheaders_DATA = \
  lib/elput/Elput.h

lib_elput_libelput_la_SOURCES = \
lib/elput/elput_evdev.c \
lib/elput/elput_input.c \
lib/elput/elput_logind.c \
lib/elput/elput_manager.c \
lib/elput/elput.c \
lib/elput/elput_private.h

lib_elput_libelput_la_CPPFLAGS = \
  -I$(top_builddir)/src/lib/efl \
  @ELPUT_CFLAGS@ @EFL_CFLAGS@ \
  -DPACKAGE_LIB_DIR=\"$(libdir)\" \
  -DMODULE_ARCH=\"$(MODULE_ARCH)\"

lib_elput_libelput_la_LIBADD = @ELPUT_LIBS@
if HAVE_SYSTEMD
lib_elput_libelput_la_LIBADD += @SYSTEMD_LIBS@
endif
lib_elput_libelput_la_DEPENDENCIES = @ELPUT_INTERNAL_LIBS@
lib_elput_libelput_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@

### Unit tests

if EFL_ENABLE_TESTS

check_PROGRAMS += tests/elput/elput_suite
TESTS += tests/elput/elput_suite

tests_elput_elput_suite_SOURCES = \
tests/elput/elput_suite.c \
tests/elput/elput_test_elput.c \
tests/elput/elput_suite.h

tests_elput_elput_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-I$(top_srcdir)/src/lib/efl \
-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/elput\" \
-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/elput\" \
@CHECK_CFLAGS@ \
@ELPUT_CFLAGS@

tests_elput_elput_suite_LDADD = \
@CHECK_LIBS@ \
@USE_ELPUT_LIBS@

tests_elput_elput_suite_DEPENDENCIES = \
@USE_ELPUT_INTERNAL_LIBS@

endif

endif