aboutsummaryrefslogblamecommitdiffstats
path: root/src/Makefile_Eldbus.am
blob: 2fd22ad4f5b8a74523a9fc244f44cd075f4799c3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


           


                               





                                               

                                           

                                                    

                                                           




                            
                                                              

                                                    
 
                

                                 













                                                            

                                   

                                      

                                                            


                                   






                                              









                                           






                                             
                           
                                 
 
                                                                  
                                   


                                                                                 













                                                       
                                                                    











                                                                                  
           
                                                          
                                                                    

     









                                           







                                                    
                                          
                                           
                                                  
                                         
                                                  

                                                           

                           
                                                                                                   
                                                                   
 
                                                                               


                                                                   

### 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)

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

EXTRA_DIST2 += \
	${eldbuseolianfiles_DATA}

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@ \
@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