summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-12-08 16:11:35 +0000
committerDaniel Kolesa <d.kolesa@samsung.com>2014-12-08 16:12:01 +0000
commit8e1bccde78892a8414b8278bf34348b562b1c540 (patch)
treeaa3547d106cc65b354fbf79249588c7d4afcb243
parent4db40cea63abc9534b7255b8bd2346ab222d9418 (diff)
elua: add elua.pc to configure.ac and add cmake definitions for elua
-rw-r--r--Makefile.am6
-rw-r--r--cmakeconfig/EluaConfig.cmake.in36
-rw-r--r--configure.ac3
3 files changed, 45 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index d7c8306..5657698 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -361,6 +361,12 @@ emotion_cmakeconfig_DATA = \
361cmakeconfig/EmotionConfig.cmake \ 361cmakeconfig/EmotionConfig.cmake \
362cmakeconfig/EmotionConfigVersion.cmake 362cmakeconfig/EmotionConfigVersion.cmake
363 363
364if HAVE_ELUA
365elua_cmakeconfigdir = $(libdir)/cmake/Elua
366elua_cmakeconfig_DATA = \
367cmakeconfig/EluaConfig.cmake \
368cmakeconfig/EluaConfigVersion.cmake
369endif
364 370
365# D-Bus services: 371# D-Bus services:
366 372
diff --git a/cmakeconfig/EluaConfig.cmake.in b/cmakeconfig/EluaConfig.cmake.in
new file mode 100644
index 0000000..0d48224
--- /dev/null
+++ b/cmakeconfig/EluaConfig.cmake.in
@@ -0,0 +1,36 @@
1# - Try to find elua
2# Once done this will define
3# ELUA_FOUND - System has elua
4# ELUA_INCLUDE_DIRS - The elua include directories
5# ELUA_LIBRARIES - The libraries needed to use elua
6# ELUA_DEFINITIONS - Compiler switches required for using elua
7# ELUA_EXECUTABLE - full path to the `elua' program.
8
9set(MY_PKG elua)
10
11find_package(PkgConfig)
12if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER "2.8.1")
13 # "QUIET" was introduced in 2.8.2
14 set(_QUIET QUIET)
15endif ()
16pkg_check_modules(PC_LIBELUA ${_QUIET} ${MY_PKG})
17
18find_library(ELUA_LIBRARY
19 NAMES ${PC_LIBELUA_LIBRARIES}
20 HINTS ${PC_LIBELUA_LIBDIR} ${PC_LIBELUA_LIBRARY_DIRS})
21
22find_program(ELUA_EXECUTABLE
23 NAMES elua)
24
25set(ELUA_DEFINITIONS ${PC_LIBELUA_CFLAGS_OTHER})
26set(ELUA_LIBRARIES ${ELUA_LIBRARY})
27set(ELUA_INCLUDE_DIRS ${PC_LIBELUA_INCLUDE_DIRS})
28
29include(FindPackageHandleStandardArgs)
30# handle the QUIETLY and REQUIRED arguments and set ELUA_FOUND to TRUE
31# if all listed variables are TRUE
32find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG
33 ELUA_LIBRARIES ELUA_INCLUDE_DIRS)
34
35mark_as_advanced(ELUA_INCLUDE_DIRS ELUA_LIBRARY ELUA_LIBRARIES ELUA_DEFINITIONS ELUA_EXECUTABLE)
36
diff --git a/configure.ac b/configure.ac
index 4e3252d..e09213d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4557,6 +4557,7 @@ pc/emotion.pc
4557pc/ethumb.pc 4557pc/ethumb.pc
4558pc/ethumb_client.pc 4558pc/ethumb_client.pc
4559pc/elocation.pc 4559pc/elocation.pc
4560pc/elua.pc
4560dbus-services/org.enlightenment.Efreet.service 4561dbus-services/org.enlightenment.Efreet.service
4561dbus-services/org.enlightenment.Ethumb.service 4562dbus-services/org.enlightenment.Ethumb.service
4562systemd-services/efreet.service 4563systemd-services/efreet.service
@@ -4602,6 +4603,8 @@ cmakeconfig/EthumbClientConfig.cmake
4602cmakeconfig/EthumbClientConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in 4603cmakeconfig/EthumbClientConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
4603cmakeconfig/EmotionConfig.cmake 4604cmakeconfig/EmotionConfig.cmake
4604cmakeconfig/EmotionConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in 4605cmakeconfig/EmotionConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
4606cmakeconfig/EluaConfig.cmake
4607cmakeconfig/EluaConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
4605]) 4608])
4606 4609
4607AC_OUTPUT 4610AC_OUTPUT