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

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

Initial checkin of 2007-11-01 snapshot

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1 #!/bin/sh
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 llmozlib.cpp'
8
9 #------------------------
10
11 LIBNAME=libllmozlib
12 OBJS=`echo ${SRCS} | sed s/\\.cpp/.o/g`
13 INCS_LINE="`pkg-config gtk+-2.0 --cflags` `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.