2010-09-03 Lucas De Marchi <lucas.demarchi@profusion.mobi>
[WebKit-https.git] / JavaScriptCore / wtf / CMakeListsEfl.txt
index 3e128be..6a714ae 100644 (file)
@@ -3,15 +3,23 @@ ADD_DEFINITIONS(-DUSE_SYSTEM_MALLOC=1)
 LIST(APPEND WTF_SOURCES
     efl/MainThreadEfl.cpp
 
-    gobject/GOwnPtr.cpp
-    gobject/GRefPtr.cpp
-
     ThreadIdentifierDataPthreads.cpp
     ThreadingPthreads.cpp
 
     unicode/icu/CollatorICU.cpp
 )
 
+IF (ENABLE_GLIB_SUPPORT)
+  LIST(APPEND WTF_SOURCES
+    gobject/GOwnPtr.cpp
+    gobject/GRefPtr.cpp
+  )
+
+  LIST(APPEND WTF_INCLUDE_DIRECTORIES
+       ${JAVASCRIPTCORE_DIR}/wtf/gobject
+  )
+ENDIF ()
+
 LIST(APPEND WTF_LIBRARIES
     pthread
     ${ICU_LIBRARIES}