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_INC_DIR is set, the public header files
  41. will be installed into the directory the value of INSTALL_INC_DIR
  42. points to. There is no default directory - if you want only the
  43. binaries and no headers, just don't specify INSTALL_INC_DIR, 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!)