author | Don Pellegrino <don@coffee.donpellegrino.com> | 2009-12-04 14:59:43 (GMT) |
---|---|---|
committer | Don Pellegrino <don@coffee.donpellegrino.com> | 2009-12-04 14:59:43 (GMT) |
commit | d9809d43889684a88643740214d24bcddf4cbc62 (patch) (unidiff) | |
tree | 97525bdacdae2d5de53392bfffa8bfb8befbeb93 | |
parent | 21a4ddf8dff435af9354d1856ff07088a47a8266 (diff) | |
download | exp005-d9809d43889684a88643740214d24bcddf4cbc62.zip exp005-d9809d43889684a88643740214d24bcddf4cbc62.tar.gz exp005-d9809d43889684a88643740214d24bcddf4cbc62.tar.bz2 |
Updated for multi-platform compliation.
-rwxr-xr-x | src/plugin/make_xpi.sh | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/plugin/make_xpi.sh b/src/plugin/make_xpi.sh index cb206db..63fdd01 100755 --- a/src/plugin/make_xpi.sh +++ b/src/plugin/make_xpi.sh | |||
@@ -3,7 +3,7 @@ | |||
3 | # This script creates a XPI file. | 3 | # This script creates a XPI file. |
4 | 4 | ||
5 | # The structure of an Installable Bundle is documented on-line at: | 5 | # The structure of an Installable Bundle is documented on-line at: |
6 | # https://developer.mozilla.org/en/Bundles. Note that Iceweasel | 6 | # https://developer.mozilla.org/en/Bundles Note that Iceweasel |
7 | # 3.0.12 on Debian x86 is unable to find the library if gcc4 is used | 7 | # 3.0.12 on Debian x86 is unable to find the library if gcc4 is used |
8 | # in place of gcc3 or if the library name is not truncated to .so. | 8 | # in place of gcc3 or if the library name is not truncated to .so. |
9 | # Also running from the GNOME taskbar does not include the DB2 | 9 | # Also running from the GNOME taskbar does not include the DB2 |
@@ -12,8 +12,20 @@ | |||
12 | # LD_LIBRARY_PATH set resolves this. DB2 run-time libraries should be | 12 | # LD_LIBRARY_PATH set resolves this. DB2 run-time libraries should be |
13 | # statically linked however static verions are not including with DB2 | 13 | # statically linked however static verions are not including with DB2 |
14 | # v9.5 Express/C. | 14 | # v9.5 Express/C. |
15 | cp ../.libs/libflumapplugin.so.0.0.0 \ | 15 | |
16 | platform/Linux_x86-gcc3/plugins/libflumapplugin.so | 16 | # As per https://developer.mozilla.org/en/OS_TARGET |
17 | OS_TARGET=`uname -s` | ||
18 | |||
19 | # As per https://developer.mozilla.org/en/XPCOM_ABI | ||
20 | CPU_ARCH=`uname -m` | ||
21 | TARGET_COMPILER_ABI=gcc3 | ||
22 | TARGET_XPCOM_ABI=${CPU_ARCH}-${TARGET_COMPILER_ABI} | ||
23 | |||
24 | # As per https://developer.mozilla.org/en/Bundles | ||
25 | PLATFORM_STRING=${OS_TARGET}_${TARGET_XPCOM_ABI} | ||
26 | |||
27 | install -D ../.libs/libflumapplugin.so.0.0.0 \ | ||
28 | platform/${PLATFORM_STRING}/plugins/libflumapplugin.so | ||
17 | 29 | ||
18 | # ZIP is used make the extension as per the instructions at: | 30 | # ZIP is used make the extension as per the instructions at: |
19 | # https://developer.mozilla.org/en/Extension_Packaging | 31 | # https://developer.mozilla.org/en/Extension_Packaging |