Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: wrap_make

Issue 29537638: Issue 6226 - Use mesonbuild as a build system (Closed) Base URL: https://hg.adblockplus.org/libadblockplus/
Patch Set: Fix more build issues, cross compile. Created March 27, 2018, 8:55 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « meson.build ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: wrap_make
===================================================================
new file mode 100755
--- /dev/null
+++ b/wrap_make
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+
+outdir="v8/out/Debug"
+
+# the arguments are
+# [file1, ...] [-D outdir] -C dir ...
+#
+# -D is the output directory to copy from
+# the rest is passed verbatim to make.
+while [ "$1" != "-D" -a "$1" != "-C" ] ; do
+ target="$target $1"
+ shift
+done
+if [ "$1" = "-D" ] ; then
+ shift
+ outdir="$1"
+ shift
+fi
+
+make $* && for t in $target ; do
+ cp $outdir/$t .
+done
« no previous file with comments | « meson.build ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld