[CMake] Add FindDBus.cmake and use it in the EFL port.
authorrakuco@webkit.org <rakuco@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Aug 2012 19:12:16 +0000 (19:12 +0000)
committerrakuco@webkit.org <rakuco@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Aug 2012 19:12:16 +0000 (19:12 +0000)
commite0f76a4457bb0abdc7d2935c526226c0c9f2bf84
tree0b7ac39c9e3771c58600fb22d00797f91a470f63
parent432d1011eba9d97f77030e418c395b9efaf745b5
[CMake] Add FindDBus.cmake and use it in the EFL port.
https://bugs.webkit.org/show_bug.cgi?id=94319

Reviewed by Daniel Bates.

.:

Currently, the Battery Status-related code in the EFL port uses
libdbus but does not directly include its directories or link
against it, relying instead on the compiler flags coming via
EDbus's pkg-config information.

That will break once we stop obtaining EFL's include directories
and library paths from pkg-config, so write FindDBus.cmake to
prepare for that.

* Source/cmake/FindDBus.cmake: Added.
* Source/cmake/OptionsEfl.cmake: Look for D-Bus if BATTERY_STATUS
support is enabled.

Source/WebCore:

* PlatformEfl.cmake: Link against DBUS_LIBRARIES and add
DBUS_INCLUDE_DIRS to the include path list if BATTERY_STATUS
support is enabled.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@125924 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
Source/WebCore/ChangeLog
Source/WebCore/PlatformEfl.cmake
Source/cmake/FindDBus.cmake [new file with mode: 0644]
Source/cmake/OptionsEfl.cmake