Changeset View
Changeset View
Standalone View
Standalone View
contrib/devtools/build_cmake.sh
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | --Werror) | ||||
;; | ;; | ||||
*) | *) | ||||
TARGETS+=("$1") | TARGETS+=("$1") | ||||
shift | shift | ||||
;; | ;; | ||||
esac | esac | ||||
done | done | ||||
# If cross building for OSX, the python library needs to be added to the python | |||||
# library path. | |||||
export PYTHONPATH="${TOPLEVEL}/depends/x86_64-apple-darwin16/native/lib/python3/dist-packages:${PYTHONPATH:-}" | |||||
cmake -GNinja "${TOPLEVEL}" "${CMAKE_FLAGS[@]}" | cmake -GNinja "${TOPLEVEL}" "${CMAKE_FLAGS[@]}" | ||||
# If valid targets are given, use them, otherwise default to "all". | # If valid targets are given, use them, otherwise default to "all". | ||||
if [ ${#TARGETS[@]} -eq 0 ]; then | if [ ${#TARGETS[@]} -eq 0 ]; then | ||||
TARGETS=("all") | TARGETS=("all") | ||||
else | else | ||||
mapfile -t VALID_TARGETS < <(ninja -t targets all | cut -d ':' -f 1) | mapfile -t VALID_TARGETS < <(ninja -t targets all | cut -d ':' -f 1) | ||||
# "all" is not part of the targets exported by ninja, so add it. | # "all" is not part of the targets exported by ninja, so add it. | ||||
Show All 18 Lines |