Przeglądaj źródła

osx/debug/deploy.sh : initial commit.

master
kevin 8 lat temu
rodzic
commit
b25efd012c
1 zmienionych plików z 40 dodań i 0 usunięć
  1. 40
    0
      build/osx/debug/deploy.sh

+ 40
- 0
build/osx/debug/deploy.sh Wyświetl plik

@@ -0,0 +1,40 @@
1
+#!/bin/sh
2
+
3
+# copy executable to ${m}
4
+
5
+# echo commands as they are executed
6
+set -x
7
+
8
+c=/Users/kevin/src/kc/build/osx/debug/bin/kc.app/Contents
9
+m=${c}/MacOS
10
+f=${c}/Frameworks
11
+
12
+cp lib/libcm.0.dylib                ${f}
13
+cp lib/libcmpp.0.dylib              ${f}
14
+cp /opt/local/lib/libfftw3f.3.dylib ${f}
15
+cp /opt/local/lib/libfftw3.3.dylib  ${f}
16
+cp /opt/local/lib/libfltk.1.3.dylib ${f}
17
+cp /usr/lib/libstdc++.6.dylib       ${f}
18
+cp /usr/lib/libgcc_s.1.dylib        ${f}
19
+
20
+install_name_tool -id @executable_path/../Frameworks/libcm.0.dylib     ${f}/libcm.0.dylib
21
+install_name_tool -id @executable_path/../Frameworks/libcmpp.0.dylib   ${f}/libcmpp.0.dylib
22
+install_name_tool -id @executable_path/../Frameworks/libfftw3f.3.dylib ${f}/libfftw3f.3.dylib
23
+install_name_tool -id @executable_path/../Frameworks/libfftw3.3.dylib  ${f}/libfftw3.3.dylib
24
+install_name_tool -id @executable_path/../Frameworks/libfltk.1.3.dylib ${f}/libfltk.1.3.dylib
25
+install_name_tool -id @executable_path/../Frameworks/libstdc++.6.dylib ${f}/libstdc++.6.dylib
26
+install_name_tool -id @executable_path/../Frameworks/libgcc_s.1.dylib  ${f}/libgcc_s.1.dylib
27
+
28
+install_name_tool -change /opt/local/lib/libcm.0.dylib     @executable_path/../Frameworks/libcm.0.dylib     ${m}/kc
29
+install_name_tool -change /opt/local/lib/libcmpp.0.dylib   @executable_path/../Frameworks/libcmpp.0.dylib   ${m}/kc
30
+install_name_tool -change /opt/local/lib/libfftw3f.3.dylib @executable_path/../Frameworks/libfftw3f.3.dylib ${m}/kc
31
+install_name_tool -change /opt/local/lib/libfftw3.3.dylib  @executable_path/../Frameworks/libfftw3.3.dylib  ${m}/kc
32
+install_name_tool -change /opt/local/lib/libfltk.1.3.dylib @executable_path/../Frameworks/libfltk.1.3.dylib ${m}/kc
33
+install_name_tool -change /usr/lib/libstdc++.6.dylib       @executable_path/../Frameworks/libstdc++.6.dylib ${m}/kc
34
+install_name_tool -change /usr/lib/libgcc_s.1.dylib        @executable_path/../Frameworks/libgcc_s.1.dylib  ${m}/kc
35
+
36
+set +x
37
+
38
+# report the library paths
39
+otool -L ${m}/kc
40
+

Ładowanie…
Anuluj
Zapisz