diff options
author | Michal Klocek <michal.klocek@qt.io> | 2021-05-11 10:18:18 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2021-05-28 14:57:48 +0000 |
commit | 3bc47f0f407e57dccb9013dabaf1a56d8e6c6575 (patch) | |
tree | a31a36d0996f3eebb970c653de87b8682641d3dd /CMakeLists.txt | |
parent | b4ff1333677dc1c037b5ff5e5101016bd6a53469 (diff) |
Add support for gn version
Check the version before using gn, since some systems
can have already gn installed. In case of cross builds
gn is installed into host qt and can simply end up in /usr/bin
path of x86_64 sysroot in case of yocto builds, meaning it will
be picked up by the host system path. Moreover, findGn.cmake
is also going to be installed and should not just look for non
existing builds paths.
One can also avoid pointless recompilations of gn for every
single clean build. Gn can be easily installed by simply building
the "gn" project:
cmake path/to/qtwebengine/src/gn
cmake --build . --parallel
cmake --install .
Note setting DCMAKE_INSTALL_PREFIX and/or DESTDIR
can install gn to desired location.
Change-Id: Ie8f989c838dad2e6e7e346a4f6a861e187ec037f
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1281ef59b..fb1050109 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,7 @@ if(NOT Ninja_FOUND) CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_PREFIX_PATH:PATH=<INSTALL_DIR> -) + ) endif() ### GN |