COMPILE 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. Squirrel 3.2 stable
  2. --------------------------------------------------------
  3. What is in this distribution?
  4. squirrel
  5. static library implementing the compiler and interpreter of the language
  6. sqstdlib
  7. the standard utility libraries
  8. sq
  9. stand alone interpreter
  10. doc
  11. The manual
  12. etc
  13. a minimalistic embedding sample
  14. samples
  15. samples programs
  16. HOW TO COMPILE
  17. ---------------------------------------------------------
  18. CMAKE USERS
  19. .........................................................
  20. If you want to build the shared libraries under Windows using Visual
  21. Studio, you will have to use CMake version 3.4 or newer. If not, an
  22. earlier version will suffice. For a traditional out-of-source build
  23. under Linux, type something like
  24. $ mkdir build # Create temporary build directory
  25. $ cd build
  26. $ cmake .. # CMake will determine all the necessary information,
  27. # including the platform (32- vs. 64-bit)
  28. $ make
  29. $ make install
  30. $ cd ..; rm -r build
  31. The default installation directory will be /usr/local on Unix platforms,
  32. and C:/Program Files/squirrel on Windows. The binaries will go into bin/
  33. and the libraries into lib/. You can change this behavior by calling CMake like
  34. this:
  35. $ cmake .. -DCMAKE_INSTALL_PREFIX=/some/path/on/your/system
  36. With the CMAKE_INSTALL_BINDIR and CMAKE_INSTALL_LIBDIR options, the directories
  37. the binaries & libraries will go in (relative to CMAKE_INSTALL_PREFIX)
  38. can be specified. For instance,
  39. $ cmake .. -DCMAKE_INSTALL_LIBDIR=lib64
  40. will install the libraries into a 'lib64' subdirectory in the top
  41. source directory. The public header files will be installed into the directory
  42. the value of CMAKE_INSTALL_INCLUDEDIR points to. If you want only the
  43. binaries and no headers, just set -DSQ_DISABLE_HEADER_INSTALLER=ON, and no
  44. header files will be installed.
  45. Under Windows, it is probably easiest to use the CMake GUI interface,
  46. although invoking CMake from the command line as explained above
  47. should work as well.
  48. GCC USERS
  49. .........................................................
  50. There is a very simple makefile that compiles all libraries and exes
  51. from the root of the project run 'make'
  52. for 32 bits systems
  53. $ make
  54. for 64 bits systems
  55. $ make sq64
  56. VISUAL C++ USERS
  57. .........................................................
  58. Open squirrel.dsw from the root project directory and build(dho!)
  59. DOCUMENTATION GENERATION
  60. .........................................................
  61. To be able to compile the documentation, make sure that you have Python
  62. installed and the packages sphinx and sphinx_rtd_theme. Browse into doc/
  63. and use either the Makefile for GCC-based platforms or make.bat for
  64. Windows platforms.