]> git.sesse.net Git - nageru/blob - scripts/compile_cef_dll_wrapper.sh
Release Nageru 1.7.5.
[nageru] / scripts / compile_cef_dll_wrapper.sh
1 #! /bin/sh
2 set -e
3
4 BUILD_DIR="$1"
5 CEF_DIR="$2"
6 CMAKE="$3"
7 OUTPUT="$4"
8 STAMP="$5"
9
10 ! [ -d "$BUILD_DIR" ] || rm -r "$BUILD_DIR"
11 mkdir "$BUILD_DIR"
12 ( cd "$BUILD_DIR" && $CMAKE -G Ninja "$CEF_DIR" && ninja libcef_dll_wrapper )
13 cp "$BUILD_DIR"/libcef_dll_wrapper/libcef_dll_wrapper.a "$OUTPUT"
14 touch "$STAMP"