Browse Source

Updated NaCl-related documentation and stuff.

pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
1eb5e8c966
  1. 2
      CMakeLists.txt
  2. 4
      README.md
  3. 24
      doc/building.dox
  4. 4
      doc/mainpage.dox

2
CMakeLists.txt

@ -44,7 +44,7 @@ cmake_dependent_option(WITH_TEXTURETOOLS "Build TextureTools library" ON "NOT WI
option(WITH_MAGNUMINFO "Build magnum-info utility" ON)
# Application libraries
if(${CMAKE_SYSTEM_NAME} STREQUAL NaCl)
if(CORRADE_TARGET_NACL)
option(WITH_NACLAPPLICATION "Build NaClApplication library" OFF)
else()
option(WITH_GLXAPPLICATION "Build GlxApplication library" OFF)

4
README.md

@ -43,8 +43,8 @@ SUPPORTED PLATFORMS
* **Linux** and embedded Linux (natively using GLX/EGL and Xlib or through
GLUT or SDL2 toolkit)
* **Windows** (through GLUT or SDL2 toolkit)
* **Google Chrome Native Client** (natively using PPAPI, both `newlib`
and `glibc` toolchains are supported)
* **Google Chrome** (through [Native Client](https://developers.google.com/native-client/),
both `newlib` and `glibc` toolchains are supported)
FEATURES
========

24
doc/building.dox

@ -207,17 +207,21 @@ depending projects.
You will need [Native Client SDK](https://developers.google.com/native-client/beta/sdk/download).
Tested version is `pepper_22`.
Make sure you have `toolchains` Git submodule updated, as
@ref building-download "explained above". Don't forget to adapt `NACL_PREFIX`
variable in `generic/NaCl-glibc-x86-32.cmake` and `generic/NaCl-glibc-x86-64.cmake`
to path where your SDK is installed. Default is `/usr/nacl`. You may need to
adapt also `NACL_TOOLCHAIN_PATH` so CMake is able to find the compiler.
Make sure you have `toolchains` submodule updated, as
@ref building-download "explained above". You can choose from either `glibc` or
`newlib` toolchain. `Newlib` supports only static linking, thus `BUILD_STATIC`
is always enabled. Don't forget to adapt `NACL_PREFIX` variable in
`generic/NaCl-*-x86-32.cmake` and `generic/NaCl-*-x86-64.cmake` to path where
your SDK is installed. Default is `/usr/nacl`. You may need to adapt also
`NACL_TOOLCHAIN_PATH` so CMake is able to find the compiler. NaCl currently
supports only OpenGL ES 2, thus `TARGET_GLES` and `TARGET_GLES2` is always
enabled.
Then create build directories for x86-32 and x86-64 and run cmake and make in
them. The toolchains needs access to its platform file, so be sure to properly
them. The toolchains need access to its platform file, so be sure to properly
set **absolute** path to `modules/` directory containing `Platform/NaCl.cmake`.
Also adapt `CMAKE_INSTALL_PREFIX` to the same value you entered into toolchain
files above.
Also adapt `CMAKE_INSTALL_PREFIX` to the same value as in `NACL_PREFIX` in
toolchain file.
mkdir -p build-nacl-x86-32
cd build-nacl-x86-32
@ -243,8 +247,8 @@ files above.
Then you can install both versions using `make install` to make them available
for depending projects. The headers are shared by both versions.
For ArchLinux there is also prepared package file in root, named
`PKGBUILD-nacl`.
For ArchLinux there are also prepared package files in root, named
`PKGBUILD-nacl-glibc` and `PKGBUILD-nacl-newlib`.
*/
}

4
doc/mainpage.dox

@ -68,8 +68,8 @@ namespace Magnum {
- **Linux** and embedded Linux (natively using GLX/EGL and Xlib or through
GLUT or SDL2 toolkit)
- **Windows** (through GLUT or SDL2 toolkit)
- **Google Chrome Native Client** (natively using PPAPI, both `newlib`
and `glibc` toolchains are supported)
- **Google Chrome** (through [Native Client](https://developers.google.com/native-client/),
both `newlib` and `glibc` toolchains are supported)
@section mainpage-features Features

Loading…
Cancel
Save