elua: add elua.pc to configure.ac and add cmake definitions for elua

devs/eunue/evas_masking
Daniel Kolesa 8 years ago
parent 4db40cea63
commit 8e1bccde78
  1. 6
      Makefile.am
  2. 36
      cmakeconfig/EluaConfig.cmake.in
  3. 3
      configure.ac

@ -361,6 +361,12 @@ emotion_cmakeconfig_DATA = \
cmakeconfig/EmotionConfig.cmake \
cmakeconfig/EmotionConfigVersion.cmake
if HAVE_ELUA
elua_cmakeconfigdir = $(libdir)/cmake/Elua
elua_cmakeconfig_DATA = \
cmakeconfig/EluaConfig.cmake \
cmakeconfig/EluaConfigVersion.cmake
endif
# D-Bus services:

@ -0,0 +1,36 @@
# - Try to find elua
# Once done this will define
# ELUA_FOUND - System has elua
# ELUA_INCLUDE_DIRS - The elua include directories
# ELUA_LIBRARIES - The libraries needed to use elua
# ELUA_DEFINITIONS - Compiler switches required for using elua
# ELUA_EXECUTABLE - full path to the `elua' program.
set(MY_PKG elua)
find_package(PkgConfig)
if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER "2.8.1")
# "QUIET" was introduced in 2.8.2
set(_QUIET QUIET)
endif ()
pkg_check_modules(PC_LIBELUA ${_QUIET} ${MY_PKG})
find_library(ELUA_LIBRARY
NAMES ${PC_LIBELUA_LIBRARIES}
HINTS ${PC_LIBELUA_LIBDIR} ${PC_LIBELUA_LIBRARY_DIRS})
find_program(ELUA_EXECUTABLE
NAMES elua)
set(ELUA_DEFINITIONS ${PC_LIBELUA_CFLAGS_OTHER})
set(ELUA_LIBRARIES ${ELUA_LIBRARY})
set(ELUA_INCLUDE_DIRS ${PC_LIBELUA_INCLUDE_DIRS})
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set ELUA_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG
ELUA_LIBRARIES ELUA_INCLUDE_DIRS)
mark_as_advanced(ELUA_INCLUDE_DIRS ELUA_LIBRARY ELUA_LIBRARIES ELUA_DEFINITIONS ELUA_EXECUTABLE)

@ -4557,6 +4557,7 @@ pc/emotion.pc
pc/ethumb.pc
pc/ethumb_client.pc
pc/elocation.pc
pc/elua.pc
dbus-services/org.enlightenment.Efreet.service
dbus-services/org.enlightenment.Ethumb.service
systemd-services/efreet.service
@ -4602,6 +4603,8 @@ cmakeconfig/EthumbClientConfig.cmake
cmakeconfig/EthumbClientConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EmotionConfig.cmake
cmakeconfig/EmotionConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EluaConfig.cmake
cmakeconfig/EluaConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
])
AC_OUTPUT

Loading…
Cancel
Save