Bug 124478

Summary: [EFL] Add EWebKitConfig.cmake and EWebKit2Config.cmake
Product: WebKit Reporter: Ryuan Choi <ryuan.choi>
Component: WebKit EFLAssignee: Ryuan Choi <ryuan.choi>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, gyuyoung.kim, gyuyoung.kim, lucas.de.marchi, rakuco
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Ryuan Choi
Reported 2013-11-17 22:53:31 PST
EWebKit(2)Config.cmake will be useful for CMake based applications to use EWebKit(2).
Attachments
Patch (8.36 KB, patch)
2013-11-17 23:01 PST, Ryuan Choi
no flags
Ryuan Choi
Comment 1 2013-11-17 23:01:34 PST
Gyuyoung Kim
Comment 2 2013-11-17 23:11:49 PST
(In reply to comment #0) > EWebKit(2)Config.cmake will be useful for CMake based applications to use EWebKit(2). I don't understand what is benefit when we install EWebLit(2)Confit.cmake to /lib/cmake/EWebKit.
Ryuan Choi
Comment 3 2013-11-17 23:46:25 PST
(In reply to comment #2) > (In reply to comment #0) > > EWebKit(2)Config.cmake will be useful for CMake based applications to use EWebKit(2). > > I don't understand what is benefit when we install EWebLit(2)Confit.cmake to /lib/cmake/EWebKit. Now, there are two options for applications to use ewebkit(2). First option is using pkg_config_modules. It will check ewebkit(2).pc Second option is makind their own FindEWebKit.cmake such as what we did internally for cairo, libsoup and other modules. Although CMake provide pkg_check_modules(first option) but it's not preferred. Instead, cmake applications like find_package(XXX) but it's a burden for applications that each applications add their own FindXXX.cmake. If we provide EWebKit(2)Config.cmake, applications can use find_package(EWebKit(2) ..). Please see below url for some more information. http://www.cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file
Gyuyoung Kim
Comment 4 2013-11-18 00:07:34 PST
Comment on attachment 217169 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=217169&action=review > Source/WebKit2/PlatformEfl.cmake:373 > + DESTINATION lib/cmake/EWebKit2) I see. BTW, I wonder how can application know this location(lib/cmake/EWebKit(2)) to get EWebKit2Config|Version.cmake.
Ryuan Choi
Comment 5 2013-11-18 00:28:03 PST
(In reply to comment #4) > (From update of attachment 217169 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=217169&action=review > > > Source/WebKit2/PlatformEfl.cmake:373 > > + DESTINATION lib/cmake/EWebKit2) > > I see. BTW, I wonder how can application know this location(lib/cmake/EWebKit(2)) to get EWebKit2Config|Version.cmake. applications doesn't need to know, but they probably gave prefix.(default prefix is /usr and /usr/local) Then, find_package() will search several directories including it from given prefix. http://www.cmake.org/cmake/help/v2.8.10/cmake.html#command:find_package <prefix>/(lib/<arch>|lib|share)/cmake/<name>*/ is first and good location on unix system.
WebKit Commit Bot
Comment 6 2013-11-18 03:29:32 PST
Comment on attachment 217169 [details] Patch Clearing flags on attachment: 217169 Committed r159414: <http://trac.webkit.org/changeset/159414>
WebKit Commit Bot
Comment 7 2013-11-18 03:29:36 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.