aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Ecore_Audio.am
blob: b50011873623d90afdb24cddf634fa17928bdfa6 (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
if HAVE_ECORE_AUDIO

### Library

ecore_audio_eolian_files = \
	lib/ecore_audio/ecore_audio.eo \
	lib/ecore_audio/ecore_audio_in.eo \
	lib/ecore_audio/ecore_audio_out.eo \
	lib/ecore_audio/ecore_audio_in_sndfile.eo \
	lib/ecore_audio/ecore_audio_out_sndfile.eo \
	lib/ecore_audio/ecore_audio_in_tone.eo


if HAVE_ECORE_AUDIO_PULSE
ecore_audio_eolian_files += lib/ecore_audio/ecore_audio_out_pulse.eo
endif

if HAVE_ECORE_AUDIO_CORE_AUDIO
ecore_audio_eolian_files += lib/ecore_audio/ecore_audio_out_core_audio.eo
endif

ecore_audio_eolian_c = $(ecore_audio_eolian_files:%.eo=%.eo.c)
ecore_audio_eolian_h = $(ecore_audio_eolian_files:%.eo=%.eo.h)

BUILT_SOURCES += \
                 $(ecore_audio_eolian_c) \
                 $(ecore_audio_eolian_h)

CLEANFILES += \
              $(ecore_audio_eolian_c) \
              $(ecore_audio_eolian_h)

ecore_audioeolianfilesdir = $(datadir)/eolian/include/ecore-@VMAJ@
ecore_audioeolianfiles_DATA = $(ecore_audio_eolian_files)

EXTRA_DIST += \
              ${ecore_audioeolianfiles_DATA}

lib_LTLIBRARIES += lib/ecore_audio/libecore_audio.la

installed_ecoreaudiomainheadersdir = $(includedir)/ecore-audio-@VMAJ@
dist_installed_ecoreaudiomainheaders_DATA = \
lib/ecore_audio/Ecore_Audio.h \
lib/ecore_audio/ecore_audio_obj.h \
lib/ecore_audio/ecore_audio_obj_in.h \
lib/ecore_audio/ecore_audio_obj_out.h \
lib/ecore_audio/ecore_audio_obj_in_tone.h \
lib/ecore_audio/ecore_audio_protected.h

nodist_installed_ecoreaudiomainheaders_DATA = $(ecore_audio_eolian_h)

lib_ecore_audio_libecore_audio_la_SOURCES = \
lib/ecore_audio/ecore_audio.c \
lib/ecore_audio/ecore_audio_obj.c \
lib/ecore_audio/ecore_audio_obj_in.c \
lib/ecore_audio/ecore_audio_obj_out.c \
lib/ecore_audio/ecore_audio_obj_in_tone.c \
lib/ecore_audio/ecore_audio_private.h

lib_ecore_audio_libecore_audio_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @ECORE_AUDIO_CFLAGS@
lib_ecore_audio_libecore_audio_la_LIBADD = @ECORE_AUDIO_LIBS@
lib_ecore_audio_libecore_audio_la_DEPENDENCIES = @ECORE_AUDIO_INTERNAL_LIBS@
lib_ecore_audio_libecore_audio_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@

if HAVE_ECORE_AUDIO_PULSE
dist_installed_ecoreaudiomainheaders_DATA += \
lib/ecore_audio/ecore_audio_obj_out_pulse.h

lib_ecore_audio_libecore_audio_la_SOURCES += \
lib/ecore_audio/ecore_audio_pulse_ml.c \
lib/ecore_audio/ecore_audio_obj_out_pulse.c
endif

if HAVE_ECORE_AUDIO_SNDFILE
dist_installed_ecoreaudiomainheaders_DATA += \
lib/ecore_audio/ecore_audio_obj_in_sndfile.h \
lib/ecore_audio/ecore_audio_obj_out_sndfile.h

lib_ecore_audio_libecore_audio_la_SOURCES += \
lib/ecore_audio/ecore_audio_obj_in_sndfile.c \
lib/ecore_audio/ecore_audio_obj_out_sndfile.c \
lib/ecore_audio/ecore_audio_sndfile_vio.c
endif

if HAVE_ECORE_AUDIO_CORE_AUDIO
dist_installed_ecoreaudiomainheaders_DATA += \
lib/ecore_audio/ecore_audio_obj_out_core_audio.h
lib_ecore_audio_libecore_audio_la_SOURCES += \
lib/ecore_audio/ecore_audio_obj_out_core_audio.c
lib_ecore_audio_libecore_audio_la_LDFLAGS += @coreaudio_ldflags@

endif

if HAVE_ELUA

ecore_audio_eolian_lua = $(ecore_audio_eolian_files:%.eo=%.eo.lua)

generated_ecore_audio_lua_all = $(ecore_audio_eolian_lua)

CLEANFILES += $(generated_ecore_audio_lua_all)

installed_ecoreaudioluadir = $(datadir)/elua/modules/ecore_audio
nodist_installed_ecoreaudiolua_DATA = $(generated_ecore_audio_lua_all)

endif

if HAVE_JS

generated_ecore_audio_js_bindings = $(ecore_audio_eolian_files:%.eo=%.eo.js.cc)

CLEANFILES += $(generated_ecore_audio_js_bindings)

GENERATED_JS_BINDINGS += $(generated_ecore_audio_js_bindings)

endif

endif