Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.5 KiB

  1. #!/bin/sh
  2. # Run this script to generate the configure script and other files that will
  3. # be included in the distribution. These files are not checked in because they
  4. # are automatically generated.
  5. set -e
  6. # Check that we're being run from the right directory.
  7. if test ! -f src/google/protobuf/stubs/common.h; then
  8. cat >&2 << __EOF__
  9. Could not find source code. Make sure you are running this script from the
  10. root of the distribution tree.
  11. __EOF__
  12. exit 1
  13. fi
  14. # Check that gtest is present. Usually it is already there since the
  15. # directory is set up as an SVN external.
  16. if test ! -e gtest; then
  17. echo "Google Test not present. Fetching gtest-1.5.0 from the web..."
  18. curl http://googletest.googlecode.com/files/gtest-1.5.0.tar.bz2 | tar jx
  19. mv gtest-1.5.0 gtest
  20. fi
  21. set -ex
  22. # Temporary hack: Must change C runtime library to "multi-threaded DLL",
  23. # otherwise it will be set to "multi-threaded static" when MSVC upgrades
  24. # the project file to MSVC 2005/2008. vladl of Google Test says gtest will
  25. # probably change their default to match, then this will be unnecessary.
  26. # One of these mappings converts the debug configuration and the other
  27. # converts the release configuration. I don't know which is which.
  28. sed -i -e 's/RuntimeLibrary="5"/RuntimeLibrary="3"/g;
  29. s/RuntimeLibrary="4"/RuntimeLibrary="2"/g;' gtest/msvc/*.vcproj
  30. # TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings.
  31. autoreconf -f -i -Wall,no-obsolete
  32. rm -rf autom4te.cache config.h.in~
  33. exit 0