| 1 | [[PageOutline]] |
| 2 | |
| 3 | = Fuchsia = |
| 4 | |
| 5 | Currently, Fuchsia is only supported by the [wiki:JSCOnly JSCOnly Team] port. |
| 6 | |
| 7 | == Building == |
| 8 | |
| 9 | Create a CMake toolchain file, similar to the following: |
| 10 | |
| 11 | {{{ |
| 12 | set(CMAKE_SYSTEM_NAME Fuchsia) |
| 13 | set(CMAKE_SYSTEM_PROCESSOR x86_64) |
| 14 | set(CMAKE_C_COMPILER_TARGET x86_64-unknown-fuchsia) |
| 15 | set(CMAKE_CXX_COMPILER_TARGET x86_64-unknown-fuchsia) |
| 16 | set(CMAKE_SYSROOT /path/to/fuchsia-sdk/sysroot/x86_64-fuchsia) |
| 17 | set(CMAKE_C_COMPILER /path/to/bin/clang) |
| 18 | set(CMAKE_CXX_COMPILER /path/to/bin/clang) |
| 19 | }}} |
| 20 | |
| 21 | Set the path to your toolchain file in your environment and run build-webkit with the appropriate flags: |
| 22 | |
| 23 | {{{ |
| 24 | $ export CMAKE_TOOLCHAIN_FILE=/path/to/x86_64-fuchsia.toolchain.cmake |
| 25 | $ ./Tools/Scripts/build-webkit --jsc-only --fuchsia |
| 26 | }}} |
| 27 | |
| 28 | == Status == |
| 29 | |
| 30 | Currently, JSC fails to compile for Fuchsia. Hopefully that will improve as more support for OS(FUCHSIA) lands. |