EtcPal
HEAD (unstable)
ETC Platform Abstraction Layer (EtcPal)
|
View other versions:
|
EtcPal uses CMake, a popular cross-platform build system generator, to generate build files. CMake can also be used to include EtcPal as a dependency to other projects, i.e. using the add_subdirectory()
command.
CMake can be downloaded here. EtcPal requires version 3.3 or higher.
If you are building a native project, you can use the typical CMake build process outlined below. If you are cross-compiling and/or building for an embedded target, there is a little bit more configuration needed - see Building EtcPal for an embedded target for more information.
-G
option; otherwise, CMake will choose a system-appropriate default. Use cmake --help
to see all available options.To run the unit tests after building:
Or, if you are generating IDE project files, simply run the projects in the 'tests' folder in your IDE.
Alternatively, you can define ETCPAL_TEST_BUILD_AS_LIBRARIES=ON
to compile the unit and integration tests into static libraries, which is often useful for running tests on embedded targets.
Alternatively, if you don't want to use CMake, your project can simply build in the EtcPal sources directly using the appropriate directories for your target platform.
tools/cmake/cross-toolchains
.