summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-05-20 01:55:32 +0300
committerMartin Storsjö <martin@martin.st>2013-05-28 17:16:54 +0300
commitba13606ca6adbc74b4db4a72b0769397d6408791 (patch)
tree63b8fb4e9156c09aebcf826f16bd6de4311dd839 /configure
parent4a27a52a1f74016095b7aee1b4a422cf62217ade (diff)
fate: Add a --target-samples path parameter
This allows having the samples accessible via different paths on the target and on the host. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index a7f3d74684..616e4bd719 100755
--- a/configure
+++ b/configure
@@ -216,6 +216,7 @@ Advanced options (experts only):
--target-os=OS compiler targets OS [$target_os]
--target-exec=CMD command to run executables on target
--target-path=DIR path to view of build directory on target
+ --target-samples=DIR path to samples directory on target
--toolchain=NAME set tool defaults according to NAME
--nm=NM use nm tool
--ar=AR use archive tool AR [$ar_default]
@@ -1445,6 +1446,7 @@ CMDLINE_SET="
target_exec
target_os
target_path
+ target_samples
toolchain
"
@@ -4092,6 +4094,7 @@ HOSTCC_O=$HOSTCC_O
HOSTLD_O=$HOSTLD_O
TARGET_EXEC=$target_exec $target_exec_args
TARGET_PATH=$target_path
+TARGET_SAMPLES=${target_samples:-\$(SAMPLES)}
LIBS-avplay=$sdl_libs
CFLAGS-avplay=$sdl_cflags
ZLIB=$($ldflags_filter -lz)