# - DEFINITIONS: target_compile_definitions()
# - PUBLIC_EO_FILES: the eo files will be used to build that lib, and will be installed to the filesystem
# - EO_FILES: the eo files will be used to build that lib but not installed.
+# - COMPILE_FLAGS: extra CFLAGS to append.
+# - LINK_FLAGS: extra LDFLAGS to append.
#
# Defines the following variables that can be used within the included files:
# - EFL_LIB_CURRENT to ${Name}
set(DEFINITIONS)
set(PUBLIC_EO_FILES)
set(EO_FILES)
+ set(COMPILE_FLAGS)
+ set(LINK_FLAGS)
string(TOUPPER "${_target}" _target_uc)
EFL_PKG_CONFIG_EVAL(${_target} "${PKG_CONFIG_REQUIRES_PRIVATE}" "${PKG_CONFIG_REQUIRES}")
- set(__link_flags ${${_target}_PKG_CONFIG_REQUIRES_PRIVATE_LDFLAGS} ${${_target}_PKG_CONFIG_REQUIRES_LDFLAGS})
- set(__compile_flags ${${_target}_PKG_CONFIG_REQUIRES_PRIVATE_CFLAGS} ${${_target}_PKG_CONFIG_REQUIRES_CFLAGS} -DPACKAGE_DATA_DIR=\\"${CMAKE_INSTALL_FULL_DATADIR}/${_target}/\\")
+ set(__link_flags ${${_target}_PKG_CONFIG_REQUIRES_PRIVATE_LDFLAGS} ${${_target}_PKG_CONFIG_REQUIRES_LDFLAGS} ${LINK_FLAGS})
+ set(__compile_flags ${${_target}_PKG_CONFIG_REQUIRES_PRIVATE_CFLAGS} ${${_target}_PKG_CONFIG_REQUIRES_CFLAGS} -DPACKAGE_DATA_DIR=\\"${CMAKE_INSTALL_FULL_DATADIR}/${_target}/\\" ${COMPILE_FLAGS})
set(_link_flags)
foreach(_l ${__link_flags})
# - LIBRARIES: results in target_link_libraries()
# - DEFINITIONS: target_compile_definitions()
# - INSTALL_DIR: defaults to bin. If empty, won't install.
+# - COMPILE_FLAGS: extra CFLAGS to append.
+# - LINK_FLAGS: extra LDFLAGS to append.
#
# NOTE: it's meant to be called by files included by EFL_LIB() or similar,
# otherwise you need to prepare the environment yourself.
set(INSTALL_DIR bin)
set(PKG_CONFIG_REQUIRES)
set(PKG_CONFIG_REQUIRES_PRIVATE)
+ set(COMPILE_FLAGS)
+ set(LINK_FLAGS)
if(_binname STREQUAL ${EFL_LIB_CURRENT})
set(_binsrcdir "${EFL_BIN_SOURCE_DIR}")
endif()
set(_link_flags)
- foreach(_l ${${_bintarget}_PKG_CONFIG_REQUIRES_PRIVATE_LDFLAGS})
+ foreach(_l ${${_bintarget}_PKG_CONFIG_REQUIRES_PRIVATE_LDFLAGS} ${LINK_FLAGS})
set(_link_flags "${_link_flags} ${_l}")
endforeach()
set(_compile_flags)
- foreach(_c ${${_bintarget}_PKG_CONFIG_REQUIRES_PRIVATE_CFLAGS})
+ foreach(_c ${${_bintarget}_PKG_CONFIG_REQUIRES_PRIVATE_CFLAGS} ${COMPILE_FLAGS})
set(_compile_flags "${_compile_flags} ${_c}")
endforeach()
# ${EFL_LIB_CURRENT}-modules
# - LIBRARIES: results in target_link_libraries()
# - DEFINITIONS: target_compile_definitions()
+# - COMPILE_FLAGS: extra CFLAGS to append.
+# - LINK_FLAGS: extra LDFLAGS to append.
#
# NOTE: it's meant to be called by files included by EFL_LIB() or similar,
# otherwise you need to prepare the environment yourself.
set(DEFINITIONS)
set(PKG_CONFIG_REQUIRES)
set(PKG_CONFIG_REQUIRES_PRIVATE)
+ set(COMPILE_FLAGS)
+ set(LINK_FLAGS)
if(_testname STREQUAL ${EFL_LIB_CURRENT})
set(_testsrcdir "${EFL_TESTS_SOURCE_DIR}")
endif()
set(_link_flags)
- foreach(_l ${${_testtarget}_PKG_CONFIG_REQUIRES_PRIVATE_LDFLAGS})
+ foreach(_l ${${_testtarget}_PKG_CONFIG_REQUIRES_PRIVATE_LDFLAGS} ${LINK_FLAGS})
set(_link_flags "${_link_flags} ${_l}")
endforeach()
set(_compile_flags)
- foreach(_c ${${_testtarget}_PKG_CONFIG_REQUIRES_PRIVATE_CFLAGS})
+ foreach(_c ${${_testtarget}_PKG_CONFIG_REQUIRES_PRIVATE_CFLAGS} ${COMPILE_FLAGS})
set(_compile_flags "${_compile_flags} ${_c}")
endforeach()
# - PKG_CONFIG_REQUIRES_PRIVATE: results in
# ${Name}_PKG_CONFIG_REQUIRES_PRIVATE. Elements after 'OPTIONAL'
# keyword are optional.
+# - COMPILE_FLAGS: extra CFLAGS to append.
+# - LINK_FLAGS: extra LDFLAGS to append.
#
# NOTE: since the file will be included it shouldn't mess with global variables!
function(EFL_MODULE _modname)
set(INSTALL_DIR ${_modoutdir})
set(PKG_CONFIG_REQUIRES)
set(PKG_CONFIG_REQUIRES_PRIVATE)
+ set(COMPILE_FLAGS)
+ set(LINK_FLAGS)
_EFL_INCLUDE_OR_DETECT("Module ${_modtarget}" ${_modsrcdir})
target_compile_definitions(${_modtarget} PRIVATE ${DEFINITIONS})
set(_link_flags)
- foreach(_l ${${_modtarget}_PKG_CONFIG_REQUIRES_PRIVATE_LDFLAGS})
+ foreach(_l ${${_modtarget}_PKG_CONFIG_REQUIRES_PRIVATE_LDFLAGS} ${LINK_FLAGS})
set(_link_flags "${_link_flags} ${_l}")
endforeach()
set(_compile_flags)
- foreach(_c ${${_modtarget}_PKG_CONFIG_REQUIRES_PRIVATE_CFLAGS})
+ foreach(_c ${${_modtarget}_PKG_CONFIG_REQUIRES_PRIVATE_CFLAGS} ${COMPILE_FLAGS})
set(_compile_flags "${_compile_flags} ${_c}")
endforeach()
--- /dev/null
+set(DESCRIPTION "D-Bus access from Ecore")
+
+set(PKG_CONFIG_REQUIRES_PRIVATE
+ dbus-1
+)
+
+set(LIBRARIES
+ eina
+ eo
+ efl
+ ecore
+)
+
+set(PUBLIC_EO_FILES
+ eldbus_model_arguments.eo
+ eldbus_model_connection.eo
+ eldbus_model_method.eo
+ eldbus_model_object.eo
+ eldbus_model_proxy.eo
+ eldbus_model_signal.eo
+ eldbus_types.eot
+)
+
+set(PUBLIC_HEADERS
+ Eldbus.h
+ eldbus_connection.h
+ eldbus_freedesktop.h
+ eldbus_introspection.h
+ eldbus_message.h
+ eldbus_message_eina_value.h
+ eldbus_message_helper.h
+ Eldbus_Model.h
+ eldbus_object.h
+ eldbus_pending.h
+ eldbus_proxy.h
+ eldbus_service.h
+ eldbus_signal_handler.h
+)
+
+set(SOURCES
+ eldbus_core.c
+ eldbus_freedesktop.c
+ eldbus_introspection.c
+ eldbus_message.c
+ eldbus_message_from_eina_value.c
+ eldbus_message_helper.c
+ eldbus_message_to_eina_value.c
+ eldbus_model_arguments.c
+ eldbus_model_arguments_private.h
+ eldbus_model_connection.c
+ eldbus_model_connection_private.h
+ eldbus_model_method.c
+ eldbus_model_method_private.h
+ eldbus_model_object.c
+ eldbus_model_object_private.h
+ eldbus_model_private.h
+ eldbus_model_proxy.c
+ eldbus_model_proxy_private.h
+ eldbus_model_signal.c
+ eldbus_model_signal_private.h
+ eldbus_object.c
+ eldbus_pending.c
+ eldbus_private.h
+ eldbus_private_types.h
+ eldbus_proxy.c
+ eldbus_service.c
+ eldbus_signal_handler.c
+)
+
+set(COMPILE_FLAGS "-include ${CMAKE_BINARY_DIR}/src/lib/efl/config.h")