commit 277dda2487c1bf07d3a6d849b86eb248a3fa6969
parent 2e6b47cd84f257bfb62aeb5354a816e4f9c2e02c
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Tue, 5 Apr 2016 19:43:22 -0600
share: add symlink generation on install
Diffstat:
9 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/Jamfile b/Jamfile
@@ -2,4 +2,5 @@ SubDir TOP ;
SubInclude TOP bin ;
SubInclude TOP lib ;
+SubInclude TOP share ;
SubInclude TOP src ;
diff --git a/SCV/Project.pm b/SCV/Project.pm
@@ -48,7 +48,7 @@ EOF
my $cwd = getcwd;
- $ENV{CITRUN_PATH} = "$cwd/src/compilers";
+ $ENV{CITRUN_PATH} = "$cwd/share";
$ENV{PATH} = "$ENV{CITRUN_PATH}:$ENV{PATH}";
# Jam style LDFLAGS and LDADD
diff --git a/share/Jamfile b/share/Jamfile
@@ -0,0 +1,12 @@
+SubDir TOP share ;
+
+actions InstallCompilerSyms
+{
+ mkdir -p $(PREFIX)/share/citrun
+ ln -s ../../bin/citrun_instrument $(PREFIX)/share/citrun/c++
+ ln -s ../../bin/citrun_instrument $(PREFIX)/share/citrun/cc
+ ln -s ../../bin/citrun_instrument $(PREFIX)/share/citrun/g++
+ ln -s ../../bin/citrun_instrument $(PREFIX)/share/citrun/gcc
+}
+
+InstallCompilerSyms install : ;
diff --git a/share/cc b/share/cc
@@ -0,0 +1 @@
+../src/citrun_instrument
+\ No newline at end of file
diff --git a/share/gcc b/share/gcc
@@ -0,0 +1 @@
+../src/citrun_instrument
+\ No newline at end of file
diff --git a/src/compilers/c++ b/src/compilers/c++
@@ -1 +0,0 @@
-../citrun_instrument
-\ No newline at end of file
diff --git a/src/compilers/cc b/src/compilers/cc
@@ -1 +0,0 @@
-../citrun_instrument
-\ No newline at end of file
diff --git a/src/compilers/g++ b/src/compilers/g++
@@ -1 +0,0 @@
-../citrun_instrument
-\ No newline at end of file
diff --git a/src/compilers/gcc b/src/compilers/gcc
@@ -1 +0,0 @@
-../citrun_instrument
-\ No newline at end of file