wiki:Fuchsia

Version 3 (modified by abarth@webkit.org, 4 years ago) (diff)

--

Fuchsia

Currently, Fuchsia is only supported by the JSCOnly port.

Building

Create a CMake toolchain file, similar to the following:

set(CMAKE_SYSTEM_NAME Fuchsia)
set(CMAKE_SYSTEM_PROCESSOR x86_64)
set(CMAKE_C_COMPILER_TARGET x86_64-unknown-fuchsia)
set(CMAKE_CXX_COMPILER_TARGET x86_64-unknown-fuchsia)
set(CMAKE_SYSROOT /path/to/fuchsia-sdk/sysroot/x86_64-fuchsia)
set(CMAKE_C_COMPILER /path/to/bin/clang)
set(CMAKE_CXX_COMPILER /path/to/bin/clang++)

Set the path to your toolchain file in your environment and run build-webkit with the appropriate flags:

$ ./Tools/Scripts/build-jsc --jsc-only --cmakeargs="-DCMAKE_TOOLCHAIN_FILE=/path/to/x86_64-fuchsia.toolchain.cmake"

Status

Currently, JSC fails to compile for Fuchsia. Hopefully that will improve as more support for OS(FUCHSIA) lands.