2010-08-13 Leandro Pereira <leandro@profusion.mobi>
authorleandro@webkit.org <leandro@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Aug 2010 17:35:49 +0000 (17:35 +0000)
committerleandro@webkit.org <leandro@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Aug 2010 17:35:49 +0000 (17:35 +0000)
        [EFL] Unreviewed build fix.

        * cmake/FindGthread.cmake: Fix warnings about obsolete PKGCONFIG macro.
        * cmake/WebKitGenerators.cmake: FLEX_EXECUTABLE was defined already
        by the root CMakeLists.txt file, so remove relevant lines that
        depends on FIND_PACKAGE_HANDLE_STANDARD_ARGS macro, which isn't
        available anymore.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@65332 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
cmake/FindGthread.cmake
cmake/WebKitGenerators.cmake

index 72d9107..b2f1a72 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-08-13  Leandro Pereira  <leandro@profusion.mobi>
+
+        [EFL] Unreviewed build fix.
+
+        * cmake/FindGthread.cmake: Fix warnings about obsolete PKGCONFIG macro.
+        * cmake/WebKitGenerators.cmake: FLEX_EXECUTABLE was defined already
+        by the root CMakeLists.txt file, so remove relevant lines that
+        depends on FIND_PACKAGE_HANDLE_STANDARD_ARGS macro, which isn't
+        available anymore.
+
 2010-08-13  Alejandro G. Castro  <alex@igalia.com>
 
         Reviewed by Xan Lopez.
index 7dabbee..d52aa5f 100644 (file)
@@ -4,18 +4,5 @@
 # GTHREAD_LIBRARIES   Libraries to link against to use GTHREAD
 # GTHREAD_FOUND       GTHREAD was found
 
-IF (UNIX)
-    INCLUDE (UsePkgConfig)
-    PKGCONFIG (gthread-2.0 GTHREAD_include_dir GTHREAD_link_dir GTHREAD_libraries GTHREAD_include)
-    IF (GTHREAD_include AND GTHREAD_libraries)
-        SET (GTHREAD_FOUND TRUE)
-        EXEC_PROGRAM ("echo"
-            ARGS "${GTHREAD_include} | sed 's/[[:blank:]]*-I/;/g'"
-            OUTPUT_VARIABLE GTHREAD_INCLUDE
-        )
-        SET (GTHREAD_INCLUDE-I ${GTHREAD_include})
-        SET (GTHREAD_LIBRARIES ${GTHREAD_libraries})
-    ELSE (GTHREAD_include AND GTHREAD_libraries)
-        SET (GTHREAD_FOUND FALSE)
-    ENDIF (GTHREAD_include AND GTHREAD_libraries)
-ENDIF (UNIX)
+INCLUDE(FindPkgConfig)
+PKG_CHECK_MODULES (Gthread REQUIRED gthread-2.0>=2.20.0)
index 92b83f1..120215c 100644 (file)
@@ -130,12 +130,6 @@ MACRO(GENERATE_DFTABLES)
 ENDMACRO()
 
 
-FIND_PROGRAM(FLEX_EXECUTABLE flex)
-IF (NOT FLEX_EXECUTABLE)
-  MESSAGE(FATAL_ERROR "Missing flex")
-ENDIF ()
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(Flex DEFAULT_MSG FLEX_EXECUTABLE)
-
 SET(MAKE_TOKENIZER ${WEBCORE_DIR}/css/maketokenizer)
 # - Create ${DERIVED_SOURCES_DIR}/tokenizer.cpp
 # GENERATE_TOKENIZER()