COMPILE 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Squirrel 3.1 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 the top source directory,
  32. i. e. the binaries will go into bin/ and the libraries into lib/. You
  33. can change this behavior by calling CMake like this:
  34. $ cmake .. -DCMAKE_INSTALL_PREFIX=/some/path/on/your/system
  35. With the INSTALL_BIN_DIR and INSTALL_LIB_DIR options, the directories
  36. the binaries & libraries will go in (relative to CMAKE_INSTALL_PREFIX)
  37. can be specified. For instance,
  38. $ cmake .. -DINSTALL_LIB_DIR=lib64
  39. will install the libraries into a 'lib64' subdirectory in the top
  40. source directory. If INSTALL_DOC_DIR is set, the PDF documentation
  41. will be installed into the directory the value of INSTALL_DOC_DIR
  42. points to. There is no default directory - if you want only the
  43. binaries and no documentation, just don't specify INSTALL_DOC_DIR, and
  44. no documentation will be installed. The same applies for
  45. INSTALL_INC_DIR, which can install the public header files.
  46. Under Windows, it is probably easiest to use the CMake GUI interface,
  47. although invoking CMake from the command line as explained above
  48. should work as well.
  49. GCC USERS
  50. .........................................................
  51. There is a very simple makefile that compiles all libraries and exes
  52. from the root of the project run 'make'
  53. for 32 bits systems
  54. $ make
  55. for 64 bits systems
  56. $ make sq64
  57. VISUAL C++ USERS
  58. .........................................................
  59. Open squirrel.dsw from the root project directory and build(dho!)