OptionsWinCE.cmake 1004 B

12345678910111213141516171819202122232425262728293031
  1. include(OptionsWindows)
  2. set(WTF_USE_WCHAR_UNICODE 1)
  3. add_definitions(-D_CE_CRT_ALLOW_WIN_MINMAX)
  4. add_definitions(-DWTF_USE_WCHAR_UNICODE=1)
  5. add_definitions(-DWTF_USE_WINGDI=1)
  6. add_definitions(-DWTF_USE_WININET=1)
  7. add_definitions(-DWINCEBASIC)
  8. add_definitions(-DJS_NO_EXPORT)
  9. add_definitions(-DHAVE_ACCESSIBILITY=0)
  10. add_definitions(-DJSCCOLLECTOR_VIRTUALMEM_RESERVATION=0x200000)
  11. if (NOT 3RDPARTY_DIR)
  12. if (EXISTS $ENV{WEBKITTHIRDPARTYDIR})
  13. set(3RDPARTY_DIR $ENV{WEBKITTHIRDPARTYDIR})
  14. else ()
  15. message(FATAL_ERROR "You must provide a third party directory for WinCE port.")
  16. endif ()
  17. endif ()
  18. include_directories(${3RDPARTY_DIR}/ce-compat)
  19. add_subdirectory(${3RDPARTY_DIR} "${CMAKE_CURRENT_BINARY_DIR}/3rdparty")
  20. WEBKIT_OPTION_BEGIN()
  21. WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DRAG_SUPPORT OFF)
  22. WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_FTPDIR OFF)
  23. WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INSPECTOR OFF)
  24. WEBKIT_OPTION_DEFAULT_PORT_VALUE(USE_SYSTEM_MALLOC ON)
  25. WEBKIT_OPTION_END()