Home | History | Annotate | Download | only in cmake
      1 INCLUDE(OptionsWindows)
      2 
      3 ADD_DEFINITIONS(-DWTF_USE_WINCE_UNICODE=1)
      4 ADD_DEFINITIONS(-DWTF_USE_WININET=1)
      5 ADD_DEFINITIONS(-DWTF_CPU_ARM_TRADITIONAL -DWINCEBASIC)
      6 ADD_DEFINITIONS(-DJS_NO_EXPORT)
      7 ADD_DEFINITIONS(-DENABLE_JSC_MULTIPLE_THREADS=0)
      8 ADD_DEFINITIONS(-DHAVE_ACCESSIBILITY=0)
      9 ADD_DEFINITIONS(-DUSE_SYSTEM_MALLOC=1)
     10 ADD_DEFINITIONS(-DJSCCOLLECTOR_VIRTUALMEM_RESERVATION=0x200000)
     11 
     12 IF (NOT 3RDPARTY_DIR)
     13     IF (EXISTS $ENV{WEBKITTHIRDPARTYDIR})
     14         SET(3RDPARTY_DIR $ENV{WEBKITTHIRDPARTYDIR})
     15     ELSE ()
     16         MESSAGE(FATAL_ERROR "You must provide a third party directory for WinCE port.")
     17     ENDIF ()
     18 ENDIF ()
     19 
     20 INCLUDE_DIRECTORIES(${3RDPARTY_DIR}/ce-compat)
     21 ADD_SUBDIRECTORY(${3RDPARTY_DIR} "${CMAKE_CURRENT_BINARY_DIR}/3rdparty")
     22 
     23 WEBKIT_FEATURE(ENABLE_AS_IMAGE "Enable SVG as image" DEFAULT ON SVG)
     24 WEBKIT_FEATURE(ENABLE_BLOB "Enable blob slice" DEFAULT OFF)
     25 WEBKIT_FEATURE(ENABLE_CHANNEL_MESSAGING "Enable channel messaging" DEFAULT OFF)
     26 WEBKIT_FEATURE(ENABLE_DATABASE "Enable database" DEFAULT OFF)
     27 WEBKIT_FEATURE(ENABLE_DATAGRID "Enable datagrid" DEFAULT OFF)
     28 WEBKIT_FEATURE(ENABLE_DATALIST "Enable datalist" DEFAULT OFF HTML)
     29 WEBKIT_FEATURE(ENABLE_DATA_TRANSFER_ITEMS "Enable data transfer items" DEFAULT OFF)
     30 WEBKIT_FEATURE(ENABLE_DOM_STORAGE "Enable DOM storage" DEFAULT OFF)
     31 WEBKIT_FEATURE(ENABLE_EVENTSOURCE "Enable event source" DEFAULT ON)
     32 WEBKIT_FEATURE(ENABLE_FAST_MOBILE_SCROLLING "Enable fast mobile scrolling" DEFAULT ON)
     33 WEBKIT_FEATURE(ENABLE_FILTERS "Enable SVG filters" DEFAULT OFF SVG)
     34 WEBKIT_FEATURE(ENABLE_FTPDIR "Enable FTP directory support" DEFAULT OFF)
     35 WEBKIT_FEATURE(ENABLE_GEOLOCATION "Enable geolocation" DEFAULT OFF)
     36 WEBKIT_FEATURE(ENABLE_GLIB_SUPPORT "Enable Glib support" DEFAULT OFF)
     37 WEBKIT_FEATURE(ENABLE_ICONDATABASE "Enable icon database" DEFAULT OFF)
     38 WEBKIT_FEATURE(ENABLE_INSPECTOR "Enable inspector" DEFAULT OFF)
     39 WEBKIT_FEATURE(ENABLE_JAVASCRIPT_DEBUGGER "Enable JavaScript debugger" DEFAULT OFF)
     40 WEBKIT_FEATURE(ENABLE_JIT "Enable JIT code" DEFAULT OFF)
     41 WEBKIT_FEATURE(ENABLE_MATHML "Enable MathML" DEFAULT OFF)
     42 WEBKIT_FEATURE(ENABLE_NETSCAPE_PLUGIN_API "Enable Netscape plugin API" DEFAULT OFF)
     43 WEBKIT_FEATURE(ENABLE_NOTIFICATIONS "Enable notifications" DEFAULT OFF)
     44 WEBKIT_FEATURE(ENABLE_OFFLINE_WEB_APPLICATIONS "Enable offline web applications" DEFAULT OFF)
     45 WEBKIT_FEATURE(ENABLE_ORIENTATION_EVENTS "Enable orientation events" DEFAULT OFF)
     46 WEBKIT_FEATURE(ENABLE_PROGRESS_TAG "Enable progress tag" DEFAULT OFF)
     47 WEBKIT_FEATURE(ENABLE_SHARED_WORKERS "Enable shared workers" DEFAULT OFF)
     48 WEBKIT_FEATURE(ENABLE_SVG "Enable SVG" DEFAULT ON)
     49 WEBKIT_FEATURE(ENABLE_SVG_ANIMATION "Enable SVG animation" DEFAULT OFF SVG)
     50 WEBKIT_FEATURE(ENABLE_SVG_FONTS "Enable SVG fonts" DEFAULT ON SVG)
     51 WEBKIT_FEATURE(ENABLE_SVG_FOREIGN_OBJECT "Enable SVG foreign object" DEFAULT OFF SVG)
     52 WEBKIT_FEATURE(ENABLE_SVG_USE "Enable SVG use" DEFAULT ON SVG)
     53 WEBKIT_FEATURE(ENABLE_TOUCH_EVENTS "Enable Touch Events" DEFAULT OFF)
     54 WEBKIT_FEATURE(ENABLE_VIDEO "Enable video" DEFAULT OFF HTML)
     55 WEBKIT_FEATURE(ENABLE_WEB_SOCKETS "Enable web sockets" DEFAULT OFF)
     56 WEBKIT_FEATURE(ENABLE_WML "Enable WML" DEFAULT OFF)
     57 WEBKIT_FEATURE(ENABLE_WORKERS "Enable workers" DEFAULT OFF)
     58 WEBKIT_FEATURE(ENABLE_XHTMLMP "Enable XHTMLMP" DEFAULT OFF)
     59 WEBKIT_FEATURE(ENABLE_XPATH "Enable XPath" DEFAULT OFF)
     60 WEBKIT_FEATURE(ENABLE_XSLT "Enable XSLT" DEFAULT OFF)
     61