cookyshi / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

How to build a specific library? #231

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you type "../swtoolkit/hammer.sh --help" will be shown (among other things):

The following libraries can be built:
  expat          jingle         unittest_main  xmpphelp       
  gunit          srtp           videorenderer  
  all_libraries (do all of the above)

How can I specify that I want to build only expat, jingle and xmpphelp (for 
instance)? I did not find such option to be passed to hammer.sh.

Thanks in advance

Original issue reported on code.google.com by diego.cd...@gmail.com on 23 Oct 2011 at 1:40

GoogleCodeExporter commented 9 years ago
The building targets are listed in the "libjingle.scons" file, for example:

talk.Library(env, name = "expat")
...
talk.App(env, name = "call").

Original comment by jun...@google.com on 27 Oct 2011 at 8:43

GoogleCodeExporter commented 9 years ago
So there is no a specific command to hammer.sh? I just have to remove from 
libjingle.scons the libraries that I don't want to compile, right?

Original comment by diego.cd...@gmail.com on 28 Oct 2011 at 12:30

GoogleCodeExporter commented 9 years ago
Nope, you can just specify the build target name following the hammer command. 
E.g.

./hammer.sh expat
./hammer.sh call
...etc.

Original comment by jun...@google.com on 28 Oct 2011 at 3:59

GoogleCodeExporter commented 9 years ago
It worked. Thanks.

Original comment by diego.cd...@gmail.com on 28 Oct 2011 at 12:13

GoogleCodeExporter commented 9 years ago
@diego.cd...@gmail.com: I'm just curious about what version you are using? 
Because when I type "%path_to_swtoolkit%\hammber.bat --help", I don't have 
"videorenderer" (the others are the same). Is that I missed any files?

Original comment by tangketa...@gmail.com on 9 Nov 2011 at 7:51

GoogleCodeExporter commented 9 years ago
Hi tangketa...@gmail.com, I'm using the latest version (0.6.3), but I believe 
this lib (videorenderer) is available just for linux. If you open the 
libjingle.scons file you will find:

talk.Library(env, name = "videorenderer",
             lin_srcs = [
               "session/phone/gtkvideorenderer.cc",
             ],
             lin_packages = [
               "gtk+-2.0",
             ],
)

Only gtkvideorender.cc is compiled for this lib. I believe gtk is used for 
linux and gdi for windows. But to be honest, I haven't found yet where this is 
used. Should the call example renders (displays) the video? Here I was not able 
to do this.

Original comment by diego.cd...@gmail.com on 9 Nov 2011 at 10:49