Changeset View
Changeset View
Standalone View
Standalone View
contrib/devtools/build_cmake.sh
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | *) | ||||
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 | # If cross building for OSX, the python library needs to be added to the python | ||||
# library path. | # library path. | ||||
export PYTHONPATH="${TOPLEVEL}/depends/x86_64-apple-darwin18/native/lib/python3/dist-packages:${PYTHONPATH:-}" | export PYTHONPATH="${TOPLEVEL}/depends/x86_64-apple-darwin19/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) | ||||
Show All 19 Lines |