2021-06-22 18:08:49 +08:00
|
|
|
Squirrel 3.2 stable
|
2016-02-15 20:51:20 +01:00
|
|
|
--------------------------------------------------------
|
|
|
|
|
What is in this distribution?
|
|
|
|
|
|
|
|
|
|
squirrel
|
|
|
|
|
static library implementing the compiler and interpreter of the language
|
|
|
|
|
|
|
|
|
|
sqstdlib
|
|
|
|
|
the standard utility libraries
|
|
|
|
|
|
|
|
|
|
sq
|
|
|
|
|
stand alone interpreter
|
|
|
|
|
|
|
|
|
|
doc
|
|
|
|
|
The manual
|
|
|
|
|
|
|
|
|
|
etc
|
|
|
|
|
a minimalistic embedding sample
|
|
|
|
|
|
|
|
|
|
samples
|
|
|
|
|
samples programs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HOW TO COMPILE
|
|
|
|
|
---------------------------------------------------------
|
2016-03-06 19:43:57 +01:00
|
|
|
CMAKE USERS
|
|
|
|
|
.........................................................
|
|
|
|
|
If you want to build the shared libraries under Windows using Visual
|
|
|
|
|
Studio, you will have to use CMake version 3.4 or newer. If not, an
|
|
|
|
|
earlier version will suffice. For a traditional out-of-source build
|
|
|
|
|
under Linux, type something like
|
|
|
|
|
|
|
|
|
|
$ mkdir build # Create temporary build directory
|
|
|
|
|
$ cd build
|
|
|
|
|
$ cmake .. # CMake will determine all the necessary information,
|
2016-03-15 23:11:11 +01:00
|
|
|
# including the platform (32- vs. 64-bit)
|
2016-03-06 19:43:57 +01:00
|
|
|
$ make
|
|
|
|
|
$ make install
|
|
|
|
|
$ cd ..; rm -r build
|
|
|
|
|
|
2019-07-29 21:05:39 -04:00
|
|
|
The default installation directory will be /usr/local on Unix platforms,
|
|
|
|
|
and C:/Program Files/squirrel on Windows. The binaries will go into bin/
|
|
|
|
|
and the libraries into lib/. You can change this behavior by calling CMake like
|
|
|
|
|
this:
|
2016-03-06 19:43:57 +01:00
|
|
|
|
|
|
|
|
$ cmake .. -DCMAKE_INSTALL_PREFIX=/some/path/on/your/system
|
|
|
|
|
|
2019-07-29 21:05:39 -04:00
|
|
|
With the CMAKE_INSTALL_BINDIR and CMAKE_INSTALL_LIBDIR options, the directories
|
2016-03-13 14:36:10 +01:00
|
|
|
the binaries & libraries will go in (relative to CMAKE_INSTALL_PREFIX)
|
|
|
|
|
can be specified. For instance,
|
|
|
|
|
|
2019-07-29 21:05:39 -04:00
|
|
|
$ cmake .. -DCMAKE_INSTALL_LIBDIR=lib64
|
2016-03-13 14:36:10 +01:00
|
|
|
|
|
|
|
|
will install the libraries into a 'lib64' subdirectory in the top
|
2019-07-29 21:05:39 -04:00
|
|
|
source directory. The public header files will be installed into the directory
|
|
|
|
|
the value of CMAKE_INSTALL_INCLUDEDIR points to. If you want only the
|
|
|
|
|
binaries and no headers, just set -DSQ_DISABLE_HEADER_INSTALLER=ON, and no
|
2016-03-15 23:11:11 +01:00
|
|
|
header files will be installed.
|
2016-03-13 14:36:10 +01:00
|
|
|
|
|
|
|
|
Under Windows, it is probably easiest to use the CMake GUI interface,
|
|
|
|
|
although invoking CMake from the command line as explained above
|
|
|
|
|
should work as well.
|
2016-03-06 19:43:57 +01:00
|
|
|
|
2016-02-15 20:51:20 +01:00
|
|
|
GCC USERS
|
|
|
|
|
.........................................................
|
|
|
|
|
There is a very simple makefile that compiles all libraries and exes
|
|
|
|
|
from the root of the project run 'make'
|
|
|
|
|
|
|
|
|
|
for 32 bits systems
|
|
|
|
|
|
|
|
|
|
$ make
|
|
|
|
|
|
|
|
|
|
for 64 bits systems
|
|
|
|
|
|
|
|
|
|
$ make sq64
|
|
|
|
|
|
|
|
|
|
VISUAL C++ USERS
|
|
|
|
|
.........................................................
|
|
|
|
|
Open squirrel.dsw from the root project directory and build(dho!)
|
2016-04-06 23:07:19 +02:00
|
|
|
|
|
|
|
|
DOCUMENTATION GENERATION
|
|
|
|
|
.........................................................
|
|
|
|
|
To be able to compile the documentation, make sure that you have Python
|
|
|
|
|
installed and the packages sphinx and sphinx_rtd_theme. Browse into doc/
|
|
|
|
|
and use either the Makefile for GCC-based platforms or make.bat for
|
2017-06-14 14:09:53 +02:00
|
|
|
Windows platforms.
|