wiki:Fuchsia

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

--

Fuchsia

Currently, Fuchsia is only supported by the JSCOnly port.

Building

Create a CMake toolchain file named x86_64-fuchsia.toolchain.cmake, 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(CMAKE_AR /path/to/bin/llvm-ar CACHE FILEPATH "Archiver")

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.

Note: See TracWiki for help on using the wiki.