From 50ec70be9eaee5e477621a5526b9fb8aec5efc1f Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 26 Jun 2018 22:12:16 +0200 Subject: [PATCH] [DEV] squirrel build corectly --- .gitignore | 17 ++++++++++++ .gitmodules | 3 +++ lutin_squirrel-core.py | 59 ++++++++++++++++++++++++++++++++++++++++++ lutin_squirrel-std.py | 56 +++++++++++++++++++++++++++++++++++++++ lutin_squirrel.py | 40 ++++++++++++++++++++++++++++ squirrel | 1 + 6 files changed, 176 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 lutin_squirrel-core.py create mode 100644 lutin_squirrel-std.py create mode 100644 lutin_squirrel.py create mode 160000 squirrel diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fdbb013 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +*~ +*.swp +*.old +*.bck +*.pyc +tags +*.7z +*.dmg +*.gz +*.iso +*.jar +*.rar +*.tar +*.zip +*.log +*.sql +*.sqlite diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0200360 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "squirrel"] + path = squirrel + url = https://github.com/generic-library/squirrel.git diff --git a/lutin_squirrel-core.py b/lutin_squirrel-core.py new file mode 100644 index 0000000..53b359f --- /dev/null +++ b/lutin_squirrel-core.py @@ -0,0 +1,59 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + + +def get_type(): + return "LIBRARY" + +def get_desc(): + return "squirrel script interpreter" + +def get_licence(): + return "MIT" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "squirrel" + +def get_maintainer(): + return ["Alberto Demichelis "] + +def get_version(): + return [3,1] + +def configure(target, my_module): + my_module.add_src_file([ + 'squirrel/squirrel/sqmem.cpp', + 'squirrel/squirrel/sqbaselib.cpp', + 'squirrel/squirrel/sqapi.cpp', + 'squirrel/squirrel/sqlexer.cpp', + 'squirrel/squirrel/sqclass.cpp', + 'squirrel/squirrel/sqvm.cpp', + 'squirrel/squirrel/sqtable.cpp', + 'squirrel/squirrel/sqstate.cpp', + 'squirrel/squirrel/sqobject.cpp', + 'squirrel/squirrel/sqcompiler.cpp', + 'squirrel/squirrel/sqdebug.cpp', + 'squirrel/squirrel/sqfuncstate.cpp', + ]) + my_module.compile_version("c++", 2011) + my_module.add_depend([ + 'z', + 'm', + 'c' + ]) + my_module.add_header_file([ + 'squirrel/include/sqstdblob.h', + 'squirrel/include/sqstdio.h', + 'squirrel/include/sqconfig.h', + 'squirrel/include/squirrel.h', + ], + destination_path="squirrel") + #my_module.add_path("squirrel/squirrel/") + return True + + diff --git a/lutin_squirrel-std.py b/lutin_squirrel-std.py new file mode 100644 index 0000000..22ea214 --- /dev/null +++ b/lutin_squirrel-std.py @@ -0,0 +1,56 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + + +def get_type(): + return "LIBRARY" + +def get_desc(): + return "squirrel script interpreter (std wrapping)" + +def get_licence(): + return "MIT" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "squirrel" + +def get_maintainer(): + return ["Alberto Demichelis "] + +def get_version(): + return [3,1] + +def configure(target, my_module): + my_module.add_src_file([ + 'squirrel/sqstdlib/sqstdaux.cpp', + 'squirrel/sqstdlib/sqstdstream.cpp', + 'squirrel/sqstdlib/sqstdrex.cpp', + 'squirrel/sqstdlib/sqstdsystem.cpp', + 'squirrel/sqstdlib/sqstdio.cpp', + 'squirrel/sqstdlib/sqstdblob.cpp', + 'squirrel/sqstdlib/sqstdmath.cpp', + 'squirrel/sqstdlib/sqstdstring.cpp', + ]) + my_module.compile_version("c++", 2011) + my_module.add_depend([ + 'squirrel-core' + ]) + my_module.add_header_file([ + 'squirrel/include/sqstdsystem.h', + 'squirrel/include/sqstdaux.h', + 'squirrel/include/sqstdstring.h', + 'squirrel/include/sqstdblob.h', + 'squirrel/include/sqstdio.h', + 'squirrel/include/sqconfig.h', + 'squirrel/include/squirrel.h', + 'squirrel/include/sqstdmath.h', + ], + destination_path="squirrel") + return True + + diff --git a/lutin_squirrel.py b/lutin_squirrel.py new file mode 100644 index 0000000..2ac4654 --- /dev/null +++ b/lutin_squirrel.py @@ -0,0 +1,40 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + + +def get_type(): + return "BINARY" + +def get_desc(): + return "squirrel command line interpreter" + +def get_licence(): + return "MIT" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "squirrel" + +def get_maintainer(): + return ["Alberto Demichelis "] + +def get_version(): + return [3,1] + +def configure(target, my_module): + my_module.add_src_file([ + 'squirrel/sq/sq.c', + ]) + my_module.compile_version("c++", 2011) + my_module.add_depend([ + 'squirrel-core', + 'squirrel-std', + 'cxx', + ]) + return True + + diff --git a/squirrel b/squirrel new file mode 160000 index 0000000..02b773b --- /dev/null +++ b/squirrel @@ -0,0 +1 @@ +Subproject commit 02b773b4ae2ca32db51d74d75ab99e366b592d8a