root/trunk/llmozlib2/build-linux-llmozlib.sh

Revision 8, 0.6 kB (checked in by rob.linden, 2 years ago)

Latest internal snapshot
Last Changed Rev: 80909
Last Changed Date: 2008-02-27 15:08:55 -0800 (Wed, 27 Feb 2008)

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1 #!/bin/bash
2 # This script builds llmozlib itself.  This should happen after
3 # mozilla has been built and copy_products_linux.sh has been run.
4
5 CXX='g++-3.4'
6 MOZARCH='i686-linux'
7 SRCS='llembeddedbrowser.cpp llembeddedbrowserwindow.cpp llmozlib2.cpp'
8
9 #------------------------
10
11 LIBNAME=libllmozlib2
12 OBJS=`echo ${SRCS} | sed s/\\.cpp/.o/g`
13 INCS_LINE="`find libraries/${MOZARCH}/include -type d | sed s/^/-I/`"
14 DEFS='-DMOZILLA_INTERNAL_API -DLL_LINUX=1'
15 OPTS='-ggdb'
16
17 rm -f ${LIBNAME}.a ${OBJS}
18
19 for source in ${SRCS} ; do
20     ${CXX} ${OPTS} ${DEFS} ${INCS_LINE} -c ${source}
21 done
22
23 ar rcs ${LIBNAME}.a ${OBJS}
24
25 ls -la ${LIBNAME}.a
26
27
Note: See TracBrowser for help on using the browser.