Fixing the Xcode project file so that it builds cleanly for all. To build, read...
[siplcs.git] / src / adium / README.Adium
blobea49c180f8c37736e72f159ef93540420bde5390
1 Compiling SIPE plugin for Adium
2 ===============================
3 To compile the Adium plugin you will need XCode, then to get the following dependencies:
5 * Adium 1.5+ code:              http://trac.adium.im/wiki/GettingNewestAdiumSource
6 * libnss 3.14+libnspr 4.9.2:    https://developer.mozilla.org/en-US/docs/NSS/NSS_3.14_release_notes
8 1. Get Adium
9 --------------
10 Follow the instructions at their URL above.
12 2. Setup Adium Source Tree variable in XCode 
13 ----------------------------------------------
14 Point a source tree variable ($ADIUM_SRCPATH) to the directory you put Adium in.
15 i.e If Adium is located in /tmp/Adium,  $ADIUM_SRCPATH should be set to /tmp/Adium
17 3. Get and build libnss and libnspr
18 -------------------------------------
19 $ curl -O https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_14_RTM/src/nss-3.14-with-nspr-4.9.2.tar.gz
20 $ tar -xvzf nss-3.14-with-nspr-4.9.2.tar.gz
21 $ cd nss-3.14
22 $ grep -lR '@executable_path' * | xargs sed -i '.orig' -e 's/@executable_path/@rpath/g' 
23 $ make nss_build_all install -C mozilla/security/nss BUILD_OPT=1 NSS_ENABLE_ECC=1 NS_USE_GCC=1 NO_MDUPDATE=1 NSS_USE_SYSTEM_SQLITE=1 NSPR_INCLUDE_DIR=mozilla/nsprpub/dist/include/nspr NSPR_LIB_DIR=mozilla/nsprpub/dist USE_64=1
25 TODO: Import NSS/NSPR as an external build system target in XCode project, and pull RELEASE_OBJDIR_NAME from the autoconf.mk file to dynamically find the build products.
27 4. Setup NSS Source Tree variable in XCode 
28 --------------------------------------------
29 Point a source tree variable ($NSS_SRCPATH) to the directory you put Adium in
30 i.e if NSS is located in /tmp/nss-3.14 ,  $NSS_SRCPATH should be /tmp/nss-3.14
32 5. Build SIPEAdiumPlugin.xcodeproj and test it
33 ------------------------------------------------
34 Load the project in XCode hit build!
37 Now fire up Adium and add an Office Communicator account type.