depot/third_party/nixpkgs/pkgs/development/mobile/webos/cmake-setup-hook.sh
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

9 lines
280 B
Bash

_addWebOSCMakeFlags() {
# Help find the webOS cmake module
cmakeFlagsArray+=(-DCMAKE_MODULE_PATH=@out@/lib/cmake)
# fix installation path (doesn't use CMAKE_INSTALL_PREFIX)
cmakeFlagsArray+=(-DWEBOS_INSTALL_ROOT=${!outputBin})
}
preConfigureHooks+=(_addWebOSCMakeFlags)