Home | History | Annotate | Download | only in Tools
      1 SET(EWebLauncher_SOURCES
      2     ${TOOLS_DIR}/EWebLauncher/main.c
      3 )
      4 
      5 SET(EWebLauncher_LIBRARIES
      6     ${JavaScriptCore_LIBRARY_NAME}
      7     ${WebCore_LIBRARY_NAME}
      8     ${WebKit_LIBRARY_NAME}
      9     ${Cairo_LIBRARIES}
     10     ${ECORE_X_LIBRARIES}
     11     ${EDJE_LIBRARIES}
     12     ${EFLDEPS_LIBRARIES}
     13     ${EVAS_LIBRARIES}
     14     ${LIBXML2_LIBRARIES}
     15     ${LIBXSLT_LIBRARIES}
     16     ${SQLITE_LIBRARIES}
     17 )
     18 
     19 SET(EWebLauncher_INCLUDE_DIRECTORIES
     20     "${WEBKIT_DIR}/efl/ewk"
     21     ${Cairo_INCLUDE_DIRS}
     22     ${EDJE_INCLUDE_DIRS}
     23     ${EFLDEPS_INCLUDE_DIRS}
     24     ${EVAS_INCLUDE_DIRS}
     25 )
     26 
     27 SET(EWebLauncher_LINK_FLAGS
     28     ${ECORE_X_LDFLAGS}
     29     ${EDJE_LDFLAGS}
     30     ${EFLDEPS_LDFLAGS}
     31     ${EVAS_LDFLAGS}
     32 )
     33 
     34 IF (ENABLE_GLIB_SUPPORT)
     35   LIST(APPEND EWebLauncher_LIBRARIES
     36     ${Gdk_LIBRARIES}
     37     ${Glib_LIBRARIES}
     38     ${Gthread_LIBRARIES}
     39   )
     40 ENDIF ()
     41 
     42 IF (WTF_USE_SOUP)
     43   LIST(APPEND EWebLauncher_LIBRARIES ${LIBSOUP24_LIBRARIES})
     44   LIST(APPEND EWebLauncher_LINK_FLAGS ${LIBSOUP24_LDFLAGS})
     45 ENDIF ()
     46 
     47 IF (WTF_USE_CURL)
     48   LIST(APPEND EWebLauncher_LIBRARIES ${CURL_LIBRARIES})
     49   LIST(APPEND EWebLauncher_LINK_FLAGS ${CURL_LDFLAGS})
     50 ENDIF ()
     51 
     52 # Override data directory. We always want to get a fresh theme.
     53 REMOVE_DEFINITIONS(-DDATA_DIR=\"${DATA_DIR}\")
     54 ADD_DEFINITIONS(-DDATA_DIR=\"${BUILD_DATA_DIR}\")
     55 
     56 INCLUDE_DIRECTORIES(${EWebLauncher_INCLUDE_DIRECTORIES})
     57 ADD_EXECUTABLE(Programs/EWebLauncher ${EWebLauncher_SOURCES})
     58 TARGET_LINK_LIBRARIES(Programs/EWebLauncher ${EWebLauncher_LIBRARIES})
     59 ADD_TARGET_PROPERTIES(Programs/EWebLauncher LINK_FLAGS "${EWebLauncher_LINK_FLAGS}")
     60