install.cmd 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ::
  2. :: Collect files to be installed to install directory
  3. ::
  4. :: This file is part of the Sofia-SIP package
  5. ::
  6. :: Copyright (C) 2006 Nokia Corporation.
  7. ::
  8. :: Contact: Pekka Pessi <pekka.pessi@nokia.com>
  9. ::
  10. :: This library is free software; you can redistribute it and/or
  11. :: modify it under the terms of the GNU Lesser General Public License
  12. :: as published by the Free Software Foundation; either version 2.1 of
  13. :: the License, or (at your option) any later version.
  14. ::
  15. :: This library is distributed in the hope that it will be useful, but
  16. :: WITHOUT ANY WARRANTY; without even the implied warranty of
  17. :: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. :: Lesser General Public License for more details.
  19. ::
  20. :: You should have received a copy of the GNU Lesser General Public
  21. :: License along with this library; if not, write to the Free Software
  22. :: Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  23. :: 02110-1301 USA
  24. ::
  25. set name=sofia-sip
  26. set major=1.11
  27. set config=debug
  28. :: Uncomment this if you want release
  29. :: set config=release
  30. set destdir=..\..\%name%-%major%-%config%
  31. set includedir=%destdir%\include
  32. set sofiadir=%includedir%\sofia-sip
  33. set libdir=%destdir%\lib
  34. mkdir %destdir% %includedir% %sofiadir% %libdir%
  35. ::
  36. :: Copy docs
  37. ::
  38. set docs=README AUTHORS COPYING COPYRIGHTS README.developers RELEASE TODO ChangeLog
  39. for %%f in (%docs%) do xcopy /Y ..\%%f %destdir%
  40. ::
  41. :: Copy headers
  42. ::
  43. set SUBDIRS=su features bnf sresolv sdp url msg sip stun ipt soa tport http nta nea iptsec nth nua
  44. xcopy /Y sofia-sip\*.h %sofiadir%
  45. for %%s in (%SUBDIRS%) do xcopy /Y ..\libsofia-sip-ua\%%s\sofia-sip\*.h %sofiadir%
  46. xcopy /Y pthread\.*.h %includedir%
  47. ::
  48. :: Copy libraries
  49. ::
  50. ::xcopy /Y libsofia-sip-ua\%config%\libsofia_sip_ua.dll %libdir%
  51. xcopy /Y libsofia-sip-ua\%config%\libsofia_sip_ua.lib %libdir%
  52. xcopy /Y Pthread\*.dll %libdir%
  53. xcopy /Y Pthread\*.lib %libdir%