code:
[Project]
FileName=AngelScript.dev
Name=AngelScript
UnitCount=68
Type=2
Ver=1
ObjFiles=
Includes=
Libs=
PrivateResource=
ResourceIncludes=
MakeIncludes=
Compiler=
CppCompiler=
Linker=
IsCpp=1
Icon=
ExeOutput=..\..\lib
ObjectOutput=obj
OverrideOutput=0
OverrideOutputName=AngelScript.a
HostApplication=
Folders=
CommandLine=
UseCustomMakefile=0
CustomMakefile=
IncludeVersionInfo=0
SupportXPThemes=0
CompilerSet=0
CompilerSettings=0000000000000001000000

[Unit1]
FileName=..\..\include\angelscript.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit2]
FileName=..\..\source\as_variablescope.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit3]
FileName=..\..\source\as_arrayobject.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit4]
FileName=..\..\source\as_arrayobject.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit5]
FileName=..\..\source\as_builder.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit6]
FileName=..\..\source\as_builder.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit7]
FileName=..\..\source\as_bytecode.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit8]
FileName=..\..\source\as_bytecode.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit9]
FileName=..\..\source\as_bytecodedef.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit10]
FileName=..\..\source\as_callfunc.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit11]
FileName=..\..\source\as_callfunc_x86.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit12]
FileName=..\..\source\as_compiler.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit13]
FileName=..\..\source\as_compiler.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit14]
FileName=..\..\source\as_config.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit15]
FileName=..\..\source\as_context.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit16]
FileName=..\..\source\as_context.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit17]
FileName=..\..\source\as_datatype.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit18]
FileName=..\..\source\as_datatype.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit19]
FileName=..\..\source\as_debug.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit20]
FileName=..\..\source\as_map.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit21]
FileName=..\..\source\as_memory.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit22]
FileName=..\..\source\as_module.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit23]
FileName=..\..\source\as_module.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit24]
FileName=..\..\source\as_objecttype.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit25]
FileName=..\..\source\as_objecttype.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit26]
FileName=..\..\source\as_outputbuffer.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit27]
FileName=..\..\source\as_outputbuffer.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit28]
FileName=..\..\source\as_parser.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit29]
FileName=..\..\source\as_parser.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit30]
FileName=..\..\source\as_property.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit31]
FileName=..\..\source\as_restore.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit32]
FileName=..\..\source\as_restore.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit33]
FileName=..\..\source\as_scriptcode.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit34]
FileName=..\..\source\as_scriptcode.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit35]
FileName=..\..\source\as_scriptengine.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit36]
FileName=..\..\source\as_scriptengine.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit37]
FileName=..\..\source\as_scriptfunction.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit38]
FileName=..\..\source\as_scriptfunction.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit39]
FileName=..\..\source\as_scriptnode.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit40]
FileName=..\..\source\as_scriptnode.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit41]
FileName=..\..\source\as_string.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit42]
FileName=..\..\source\as_string.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit43]
FileName=..\..\source\as_string_util.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit44]
FileName=..\..\source\as_string_util.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit45]
FileName=..\..\source\as_structs.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit46]
FileName=..\..\source\as_texts.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit47]
FileName=..\..\source\as_thread.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit48]
FileName=..\..\source\as_thread.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit49]
FileName=..\..\source\as_tokendef.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit50]
FileName=..\..\source\as_tokenizer.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit51]
FileName=..\..\source\as_tokenizer.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit52]
FileName=..\..\source\as_typeinfo.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit53]
FileName=..\..\source\as_typeinfo.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit54]
FileName=..\..\source\as_types.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit55]
FileName=..\..\source\as_variablescope.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit56]
FileName=..\..\source\as_array.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit57]
FileName=..\..\source\as_callfunc_sh4.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit58]
FileName=..\..\source\as_generic.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit59]
FileName=..\..\source\as_generic.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit60]
FileName=..\..\source\as_callfunc.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[VersionInfo]
Major=0
Minor=1
Release=1
Build=1
LanguageID=1033
CharsetID=1252
CompanyName=
FileVersion=
FileDescription=Developed using the Dev-C++ IDE
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=
AutoIncBuildNr=0

[Unit61]
FileName=..\..\source\as_scriptobject.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit62]
FileName=..\..\source\as_scriptobject.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit63]
FileName=..\..\source\as_gcobject.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit64]
FileName=..\..\source\as_gcobject.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit65]
FileName=..\..\source\as_anyobject.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit66]
FileName=..\..\source\as_anyobject.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit67]
FileName=..\..\source\as_configgroup.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit68]
FileName=..\..\source\as_configgroup.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit69]
FileName=..\..\source\as_configgroup.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit70]
FileName=..\..\source\as_configgroup.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit71]
FileName=..\..\source\as_configgroup.h
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit72]
FileName=..\..\source\as_configgroup.cpp
CompileCpp=1
Folder=AngelScript
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=


code:
# Project: AngelScript
# Makefile created by Dev-C++ 4.9.9.1

CPP  = g++.exe -D__DEBUG__
CC   = gcc.exe -D__DEBUG__
WINDRES = windres.exe
RES  =
OBJ  = obj/as_arrayobject.o obj/as_builder.o obj/as_bytecode.o obj/as_callfunc_x86.o obj/as_compiler.o obj/as_context.o obj/as_datatype.o obj/as_module.o obj/as_objecttype.o obj/as_outputbuffer.o obj/as_parser.o obj/as_restore.o obj/as_scriptcode.o obj/as_scriptengine.o obj/as_scriptfunction.o obj/as_scriptnode.o obj/as_string.o obj/as_string_util.o obj/as_thread.o obj/as_tokenizer.o obj/as_typeinfo.o obj/as_variablescope.o obj/as_callfunc_sh4.o obj/as_generic.o obj/as_callfunc.o obj/as_scriptstruct.o obj/as_gcobject.o obj/as_anyobject.o obj/as_configgroup.o $(RES)
LINKOBJ  = obj/as_arrayobject.o obj/as_builder.o obj/as_bytecode.o obj/as_callfunc_x86.o obj/as_compiler.o obj/as_context.o obj/as_datatype.o obj/as_module.o obj/as_objecttype.o obj/as_outputbuffer.o obj/as_parser.o obj/as_restore.o obj/as_scriptcode.o obj/as_scriptengine.o obj/as_scriptfunction.o obj/as_scriptnode.o obj/as_string.o obj/as_string_util.o obj/as_thread.o obj/as_tokenizer.o obj/as_typeinfo.o obj/as_variablescope.o obj/as_callfunc_sh4.o obj/as_generic.o obj/as_callfunc.o obj/as_scriptstruct.o obj/as_gcobject.o obj/as_anyobject.o obj/as_configgroup.o $(RES)
LIBS =  -L"C:/Dev-Cpp/lib"  -g3
INCS =  -I"C:/Dev-Cpp/include"
CXXINCS =  -I"C:/Dev-Cpp/include/c++/3.3.1"  -I"C:/Dev-Cpp/include/c++/3.3.1/mingw32"  -I"C:/Dev-Cpp/include/c++/3.3.1/backward"  -I"C:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include"  -I"C:/Dev-Cpp/include"
BIN  = ../../lib/AngelScript.a
CXXFLAGS = $(CXXINCS)   -g3
CFLAGS = $(INCS)   -g3

.PHONY: all all-before all-after clean clean-custom

all: all-before ../../lib/AngelScript.a all-after

clean: clean-custom
	rm -f $(OBJ) $(BIN)

$(BIN): $(LINKOBJ)
	ar r $(BIN) $(LINKOBJ)
	ranlib $(BIN)

obj/as_arrayobject.o: ../../source/as_arrayobject.cpp
	$(CPP) -c ../../source/as_arrayobject.cpp -o obj/as_arrayobject.o $(CXXFLAGS)

obj/as_builder.o: ../../source/as_builder.cpp
	$(CPP) -c ../../source/as_builder.cpp -o obj/as_builder.o $(CXXFLAGS)

obj/as_bytecode.o: ../../source/as_bytecode.cpp
	$(CPP) -c ../../source/as_bytecode.cpp -o obj/as_bytecode.o $(CXXFLAGS)

obj/as_callfunc_x86.o: ../../source/as_callfunc_x86.cpp
	$(CPP) -c ../../source/as_callfunc_x86.cpp -o obj/as_callfunc_x86.o $(CXXFLAGS)

obj/as_compiler.o: ../../source/as_compiler.cpp
	$(CPP) -c ../../source/as_compiler.cpp -o obj/as_compiler.o $(CXXFLAGS)

obj/as_context.o: ../../source/as_context.cpp
	$(CPP) -c ../../source/as_context.cpp -o obj/as_context.o $(CXXFLAGS)

obj/as_datatype.o: ../../source/as_datatype.cpp
	$(CPP) -c ../../source/as_datatype.cpp -o obj/as_datatype.o $(CXXFLAGS)

obj/as_module.o: ../../source/as_module.cpp
	$(CPP) -c ../../source/as_module.cpp -o obj/as_module.o $(CXXFLAGS)

obj/as_objecttype.o: ../../source/as_objecttype.cpp
	$(CPP) -c ../../source/as_objecttype.cpp -o obj/as_objecttype.o $(CXXFLAGS)

obj/as_outputbuffer.o: ../../source/as_outputbuffer.cpp
	$(CPP) -c ../../source/as_outputbuffer.cpp -o obj/as_outputbuffer.o $(CXXFLAGS)

obj/as_parser.o: ../../source/as_parser.cpp
	$(CPP) -c ../../source/as_parser.cpp -o obj/as_parser.o $(CXXFLAGS)

obj/as_restore.o: ../../source/as_restore.cpp
	$(CPP) -c ../../source/as_restore.cpp -o obj/as_restore.o $(CXXFLAGS)

obj/as_scriptcode.o: ../../source/as_scriptcode.cpp
	$(CPP) -c ../../source/as_scriptcode.cpp -o obj/as_scriptcode.o $(CXXFLAGS)

obj/as_scriptengine.o: ../../source/as_scriptengine.cpp
	$(CPP) -c ../../source/as_scriptengine.cpp -o obj/as_scriptengine.o $(CXXFLAGS)

obj/as_scriptfunction.o: ../../source/as_scriptfunction.cpp
	$(CPP) -c ../../source/as_scriptfunction.cpp -o obj/as_scriptfunction.o $(CXXFLAGS)

obj/as_scriptnode.o: ../../source/as_scriptnode.cpp
	$(CPP) -c ../../source/as_scriptnode.cpp -o obj/as_scriptnode.o $(CXXFLAGS)

obj/as_string.o: ../../source/as_string.cpp
	$(CPP) -c ../../source/as_string.cpp -o obj/as_string.o $(CXXFLAGS)

obj/as_string_util.o: ../../source/as_string_util.cpp
	$(CPP) -c ../../source/as_string_util.cpp -o obj/as_string_util.o $(CXXFLAGS)

obj/as_thread.o: ../../source/as_thread.cpp
	$(CPP) -c ../../source/as_thread.cpp -o obj/as_thread.o $(CXXFLAGS)

obj/as_tokenizer.o: ../../source/as_tokenizer.cpp
	$(CPP) -c ../../source/as_tokenizer.cpp -o obj/as_tokenizer.o $(CXXFLAGS)

obj/as_typeinfo.o: ../../source/as_typeinfo.cpp
	$(CPP) -c ../../source/as_typeinfo.cpp -o obj/as_typeinfo.o $(CXXFLAGS)

obj/as_variablescope.o: ../../source/as_variablescope.cpp
	$(CPP) -c ../../source/as_variablescope.cpp -o obj/as_variablescope.o $(CXXFLAGS)

obj/as_callfunc_sh4.o: ../../source/as_callfunc_sh4.cpp
	$(CPP) -c ../../source/as_callfunc_sh4.cpp -o obj/as_callfunc_sh4.o $(CXXFLAGS)

obj/as_generic.o: ../../source/as_generic.cpp
	$(CPP) -c ../../source/as_generic.cpp -o obj/as_generic.o $(CXXFLAGS)

obj/as_callfunc.o: ../../source/as_callfunc.cpp
	$(CPP) -c ../../source/as_callfunc.cpp -o obj/as_callfunc.o $(CXXFLAGS)

obj/as_scriptstruct.o: ../../source/as_scriptstruct.cpp
	$(CPP) -c ../../source/as_scriptstruct.cpp -o obj/as_scriptstruct.o $(CXXFLAGS)

obj/as_gcobject.o: ../../source/as_gcobject.cpp
	$(CPP) -c ../../source/as_gcobject.cpp -o obj/as_gcobject.o $(CXXFLAGS)

obj/as_anyobject.o: ../../source/as_anyobject.cpp
	$(CPP) -c ../../source/as_anyobject.cpp -o obj/as_anyobject.o $(CXXFLAGS)

obj/as_configgroup.o: ../../source/as_configgroup.cpp
	$(CPP) -c ../../source/as_configgroup.cpp -o obj/as_configgroup.o $(CXXFLAGS)

repo_name: Antidote/openrpgeditor

license: mit


code:
#
# GNU make Makefile for Angelscript
#

TARGET = libangelscript.a

CC_FILES   := $(shell ls -1 as_*.cpp)
OBJS = $(patsubst %.cpp, %.o, $(CC_FILES))

all: ../include/memory.h defaultall

../include/memory.h:
	echo "#include <string.h>" >> ../include/memory.h

include $(KOS_BASE)/addons/Makefile.prefab

KOS_CFLAGS += -Dmemory=string -D__dreamcast__ -I../include -I.

clean:
	rm -f *~ *.o *.a


code:
Author of sh4 specifics
-----------------------
Fredrik Ehnbom - original version in May, 2004
Fredrik Ehnbom - updated version for 2.0.0wip2 in Jan, 2005

Howto use
-----------------------
This assumes a working kallistios installation. It was developed with
kallistios 1.3.x subversion revision 183 and sh-elf-gcc 3.4.3. Though,
it does not really rely on anything kallistios specific, so it should
be possible to get it up and running on other sh4-based architectures.

AngelScript uses memory.h which does not seem to be provided with kos.
Don't worry though, the makefile creates one for you ;)

To build the library, just go to angelscript/source and type

make -f ../projects/dreamcast/Makefile

or wherever you put the makefile shipped with this textdocument.
The library will be in $KOS_BASE/addons/lib/dreamcast/ together with
all the other kos addon libraries.


code:
# Angelscript makefile for linux (based on MingW makefile)
# Type 'make' then 'make install' to complete the installation of the library

# For 'make install' to work, set LOCAL according to your system configuration
LOCAL = /usr/local

# If you want to build a shared library, then run make with SHARED=1 and VERSION=version
LIB = libangelscript.a
DEVLIB = libangelscript.dylib
BUNDLE = libangelscript.so
INC = angelscript.h

SRCDIR = ../../source
INCDIR = ../../include
OBJDIR = obj
LIBDIR = ../../lib
CXX = c++
AFLAGS= -arch i386 -arch x86_64
CXXFLAGS = -g -Wall -fPIC $(AFLAGS)
CXXBFLAGS = $(CXXFLAGS) -fno-common

DELETER = rm -f
COPIER = cp -a

SRCNAMES = \
  as_atomic.cpp \
  as_builder.cpp  \
  as_bytecode.cpp \
  as_callfunc.cpp \
  as_callfunc_arm.cpp \
  as_callfunc_mips.cpp \
  as_callfunc_ppc.cpp \
  as_callfunc_ppc_64.cpp \
  as_callfunc_sh4.cpp \
  as_callfunc_x86.cpp \
  as_callfunc_x64_gcc.cpp \
  as_compiler.cpp \
  as_context.cpp \
  as_configgroup.cpp \
  as_datatype.cpp \
  as_generic.cpp \
  as_gc.cpp \
  as_globalproperty.cpp \
  as_memory.cpp \
  as_module.cpp \
  as_objecttype.cpp \
  as_outputbuffer.cpp \
  as_parser.cpp \
  as_restore.cpp \
  as_scriptcode.cpp \
  as_scriptengine.cpp \
  as_scriptfunction.cpp \
  as_scriptnode.cpp \
  as_scriptobject.cpp \
  as_string.cpp \
  as_string_util.cpp \
  as_thread.cpp \
  as_tokenizer.cpp \
  as_typeinfo.cpp \
  as_variablescope.cpp \

OBJ = $(addprefix $(OBJDIR)/, $(notdir $(SRCNAMES:.cpp=.o)))
BOBJ = $(addprefix $(OBJDIR)/, $(notdir $(SRCNAMES:.cpp=.lo)))
TARG = $(LIBDIR)/$(LIB) $(LIBDIR)/$(DEVLIB) $(LIBDIR)/$(BUNDLE)

all: $(TARG)
$(LIBDIR)/$(LIB): $(OBJDIR) $(LIBDIR) $(OBJ)
	rm -f $(LIBDIR)/$(LIB)
	ar r $(LIBDIR)/$(LIB) $(OBJ)
	ranlib $(LIBDIR)/$(LIB)
	file $(LIBDIR)/$(LIB)

$(LIBDIR)/$(DEVLIB): $(OBJDIR) $(LIBDIR) $(OBJ)
	rm -f $(LIBDIR)/$(DEVLIB)
	$(CXX) $(AFLAGS) -dynamiclib -o $(DEVLIB) $(OBJ)
	mv $(DEVLIB) $(LIBDIR)/$(DEVLIB)
	file  $(LIBDIR)/$(DEVLIB)

$(LIBDIR)/$(BUNDLE): $(OBJDIR) $(LIBDIR) $(BOBJ)
	rm -f $(LIBDIR)/$(BUNDLE)
	$(CXX) $(AFLAGS) -bundle -flat_namespace -undefined suppress -o $(LIBDIR)/$(BUNDLE) $(BOBJ)
	file  $(LIBDIR)/$(BUNDLE)

	@echo -------------------------------------------------------------------
	@echo Done. As root, type 'make install' to install the library.

$(OBJDIR):
	mkdir $(OBJDIR)

$(LIBDIR):
	mkdir $(LIBDIR)

$(OBJDIR)/%.o: $(SRCDIR)/%.cpp
	$(CXX) $(CXXFLAGS) -o $@ -c $<

$(OBJDIR)/%.o: $(SRCDIR)/%.S
	$(CXX) $(CXXFLAGS) -o $@ -c $<

$(OBJDIR)/%.o: $(SRCDIR)/%.s
	$(CXX) $(CXXFLAGS) -o $@ -c $<

$(OBJDIR)/%.lo: $(SRCDIR)/%.cpp
	$(CXX) $(CXXBFLAGS) -o $@ -c $<

$(OBJDIR)/%.lo: $(SRCDIR)/%.S
	$(CXX) $(CXXBFLAGS) -o $@ -c $<

$(OBJDIR)/%.lo: $(SRCDIR)/%.s
	$(CXX) $(CXXBFLAGS) -o $@ -c $<

clean:
	$(DELETER) $(OBJ) $(BOBJ) $(TARG)

install: $(TARG)
	@echo Installing to: $(LOCAL)/lib and $(LOCAL)/include...
	@echo -------------------------------------------------------------------
ifdef SHARED
	$(COPIER) $(LIBDIR)/$(DEVLIB) $(LOCAL)/lib
endif
	$(COPIER) $(TARG) $(LOCAL)/lib
	$(COPIER) $(INCDIR)/$(INC) $(LOCAL)/include
	@echo -------------------------------------------------------------------
	@echo Angelscript library installed. Enjoy!

uninstall:
	$(DELETER) $(LOCAL)/include/$(INC) $(LOCAL)/lib/$(LIB) $(LOCAL)/lib/$(DEVLIB)
	@echo -------------------------------------------------------------------
	@echo Angelscript library uninstalled.

.PHONY: all clean install uninstall


code:
** (UN)FREQUENTLY ASKED QUESTIONS **

1. Why do you have to specify PREFIX= even when building
when overriding the default ?

2. When overriding the default prefix, how do you compile
and link my program ?

--
1. Why do you have to specify PREFIX= even when building,
  when overriding the default ?

Because it allows easier linking. The way the Linux
link loader works, if the library name has a slash in it,
then it resolves it that way. If it doesn't it goes through
a series of steps which tries to find it. However, without
updating a certain file it won't find it under '/usr/local'
(and similar with '/tmp'). Therefore, as long as you have
the same PREFIX= (or don't specify it at all), all you need
to do to link to the shared version is link to it (and any
other dependencies; -lpthread comes to mind here). For
example the link options might be :
-langelscript_s -lpthread

--
2. When overriding the default prefix, how do you compile
and link my program ?

An example scenario is the following :
You installed into /opt which means the following
files should exist :

/opt/include/angelscript.h
/opt/lib/libangelscript.so (which is a symbolic link to
                            the current version installed)
/opt/lib/libangelscript.a (the static library).

If you #include angelscript.h you might normally
have :

#include <angelscript.h>

However, when that file is not in the standard directories
the compiler searches, you have to either use :

#include "/opt/include/angelscript.h"
(method one)
or alternatively keep the include (using the angle brackets)
but pass the include path (or paths actually but in this case
path) to the compiler so it knows to search an additional
location. If you're using g++ then the following option
will work (it also works for gcc but I am assuming you
are using C++) :

-I/opt/include

You must however still link. You therefore must pass another
option to the compiler (which will pass it to the linker)
and the option os -L which is used like so (to follow the
scenario) :

-L/opt/lib

The rest is the same.

CONTACT INFO:
If you have any questions or concerns, by all
means have Andreas contact me (at this time I
don't have an email I feel okay sharing - if it
seems this is of use to others I will likely
create an email on my server for this very
purpose). For now Andreas can forward the
message to me.


code:
# AngelScript makefile for Linux.
# Type 'make' then 'make install' to complete
# the installation of the library. You no
# longer have to specify SHARED=1 VERSION=x.y.z
# (the Makefile automatically determines it
# and builds it and the static library).
# See README for how to use the shared library
# instead of the static. The README also
# contains other information and in particular
# specifies on how to override the install
# location should you desire this (you don't
# have to - nor should you - edit this
# file).
#
# One note: I don't have a way to test
# the phone builds. I am an old-timer
# and I _still_ miss customer-owned
# coin-operated telephones. In fact
# I still _miss_ the rotary telephone!

# Use export CXXFLAGS="{options}" before running make to set type of compilation:
#
# For debugging I suggest using: -O0 -ggdb
# For release I suggest using: -O2

## library names and versions
LIBNAME=libangelscript
AS_VER:=$(shell awk -F\" '/\#define ANGELSCRIPT_VERSION_STRING/{print $$2}' ../../include/angelscript.h | cut -d" " -f1)
SHLIB=$(LIBNAME).so.$(AS_VER)
ARLIB=$(LIBNAME).a

## install directories
ifeq ($(PREFIX),)
PREFIX=/usr/local
endif
INCLUDEDIR_DEST=$(PREFIX)/include
LIBDIR_DEST=$(PREFIX)/lib
DOCDIR_BASEDIR=$(PREFIX)/share/doc/angelscript-$(AS_VER)
DOXYGEN_DEST=$(DOCDIR_BASEDIR)/html
SAMPLES_DEST=$(DOCDIR_BASEDIR)/samples

## install commands
INSTALL = install
INSTALL_DIR = $(INSTALL) -d
INSTALL_SHLIB = $(INSTALL) -m 755
INSTALL_ARLIB = $(INSTALL) -m 644
INSTALL_HEADER = $(INSTALL) -m 644
CP_SYMLINK = cp --no-dereference --preserve=links
CP_R = cp -R

HEADER = angelscript.h
SRCDIR = ../../source
INCDIR = ../../include

## platform specific settings
ifeq ($(TARGETPLATFORM), iphone)
	IPHONEBIN =  /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
	OBJDIR = obj-iphone
	LIBDIR = ../../lib-iphone
	CXX ?= $(IPHONEBIN)/clang++
	CXXFLAGS += -Wall -fPIC -fno-strict-aliasing -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -miphoneos-version-min=3.0
else ifeq ($(TARGETPLATFORM), iphonesimulator)
	IPHONEBIN =  /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
	OBJDIR = obj-iphone
	LIBDIR = ../../lib-iphone
	CXX ?= $(IPHONEBIN)/clang++
	CXXFLAGS += -Wall -fPIC -fno-strict-aliasing -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -miphoneos-version-min=3.0
else ifeq ($(TARGETPLATFORM), android)
	ANDROIDNDKROOT = /cygdrive/c/android/android-ndk-1.6_r1
	ANDROIDBIN = $(ANDROIDNDKROOT)/build/prebuilt/windows/arm-eabi-4.2.1/bin
	SYSROOT = $(ANDROIDNDKROOT)/build/platforms/android-4/arch-arm
	OBJDIR = obj-android
	LIBDIR = ../../lib-android
	CXX ?= $(ANDROIDBIN)/arm-eabi-gcc
	CXXFLAGS += -I$(SYSROOT)/usr/include \
	-Wall \
	-DANDROID \
	-fno-exceptions \
	-march=armv6 -mthumb-interwork \
	-mfloat-abi=softfp -fno-rtti
else
	OBJDIR = obj
	LIBDIR = ../../lib
	CXX ?= g++
	# On i686 architecture you may need to add -march=i686 if you get
	# an undefined symbol for __sync_sub_and_fetch_4 in as_atomic.cpp.
	CXXFLAGS += -Wall -fPIC -fno-strict-aliasing
endif

## Detect if targetting ARM CPU and if so tell assembler to accept implicit IT constructs in thumb mode
GCC_ARCH := $(shell $(CXX) -dumpmachine)
$(info GCC ARCH: $(GCC_ARCH))
ifneq (,$(findstring arm-,$(GCC_ARCH)))
	CXXFLAGS += -Wa,-mimplicit-it=thumb
else ifneq (,$(findstring armv7-, $(GCC_ARCH)))
	CXXFLAGS += -Wa,-mimplicit-it=thumb
endif

## toolchain
AR ?= ar
RANLIB ?= ranlib

SRCNAMES = \
  as_atomic.cpp \
  as_builder.cpp  \
  as_bytecode.cpp \
  as_callfunc.cpp \
  as_callfunc_arm.cpp \
  as_callfunc_arm64.cpp \
  as_callfunc_mips.cpp \
  as_callfunc_ppc.cpp \
  as_callfunc_ppc_64.cpp \
  as_callfunc_riscv64.cpp \
  as_callfunc_sh4.cpp \
  as_callfunc_x86.cpp \
  as_callfunc_x64_gcc.cpp \
  as_callfunc_x64_mingw.cpp \
  as_compiler.cpp \
  as_context.cpp \
  as_configgroup.cpp \
  as_datatype.cpp \
  as_generic.cpp \
  as_gc.cpp \
  as_globalproperty.cpp \
  as_memory.cpp \
  as_module.cpp \
  as_objecttype.cpp \
  as_outputbuffer.cpp \
  as_parser.cpp \
  as_restore.cpp \
  as_scriptcode.cpp \
  as_scriptengine.cpp \
  as_scriptfunction.cpp \
  as_scriptnode.cpp \
  as_scriptobject.cpp \
  as_string.cpp \
  as_string_util.cpp \
  as_thread.cpp \
  as_tokenizer.cpp \
  as_typeinfo.cpp \
  as_variablescope.cpp \

OBJ = $(addprefix $(OBJDIR)/, $(notdir $(SRCNAMES:.cpp=.o)))

ifeq ($(TARGETPLATFORM), iphone)
	OBJ += $(OBJDIR)/as_callfunc_arm_xcode.o
else
	OBJ += $(OBJDIR)/as_callfunc_arm_gcc.o
	OBJ += $(OBJDIR)/as_callfunc_arm64_gcc.o
	OBJ += $(OBJDIR)/as_callfunc_riscv64_gcc.o
endif

default: all

all: shared static

shared: $(LIBDIR)/$(SHLIB) $(LIBDIR)/$(LIBNAME).so

static: $(LIBDIR) $(OBJDIR) $(LIBDIR)/$(ARLIB)

$(OBJDIR):
	mkdir -p "$(OBJDIR)"

$(LIBDIR):
	mkdir -p "$(LIBDIR)"

$(OBJDIR)/%.o: $(SRCDIR)/%.cpp
	$(CXX) $(CXXFLAGS) -o $@ -c $<

$(OBJDIR)/%.o: $(SRCDIR)/%.S
	$(CXX) $(CXXFLAGS) -o $@ -c $<

$(OBJDIR)/%.o: $(SRCDIR)/%.s
	$(CXX) $(CXXFLAGS) -o $@ -c $<

$(LIBDIR)/$(SHLIB): $(OBJ)
	$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -Wl,-soname,$(SHLIB) -o "$(LIBDIR)"/$(SHLIB) $(OBJ)

$(LIBDIR)/$(LIBNAME).so: $(LIBDIR)/$(SHLIB)
	@( cd "$(LIBDIR)" && ln -s $(SHLIB) $(LIBNAME).so )

$(LIBDIR)/$(ARLIB): $(OBJ)
	$(AR) r "$(LIBDIR)"/$(ARLIB) $(OBJ)
	$(RANLIB) "$(LIBDIR)"/$(ARLIB)

## install rules
install_header: $(INCDIR)/$(HEADER)
	$(INSTALL_DIR) "$(DESTDIR)/$(INCLUDEDIR_DEST)"
	$(INSTALL_HEADER) "$(INCDIR)"/$(HEADER) "$(DESTDIR)/$(INCLUDEDIR_DEST)/"$(HEADER)

install_shared:
	$(INSTALL_DIR) "$(DESTDIR)/$(LIBDIR_DEST)"
	$(INSTALL_SHLIB) "$(LIBDIR)"/$(SHLIB) "$(DESTDIR)/$(LIBDIR_DEST)/"$(SHLIB)
	$(CP_SYMLINK) "$(LIBDIR)"/$(LIBNAME).so "$(DESTDIR)/$(LIBDIR_DEST)/"$(LIBNAME).so

install_static: $(LIBDIR)/$(ARLIB) $(LIBDIR)/$(SHLIB)
	$(INSTALL_DIR) "$(DESTDIR)/$(LIBDIR_DEST)"
	$(INSTALL_ARLIB) "$(LIBDIR)"/$(ARLIB) "$(DESTDIR)/$(LIBDIR_DEST)/"$(ARLIB)

install_docs: ./../../../docs
	$(INSTALL_DIR) "$(DESTDIR)/$(DOCDIR_BASEDIR)"
	$(CP_R) ./../../../docs "$(DESTDIR)/$(DOXYGEN_DEST)"

install_samples: ./../../../samples
	$(INSTALL_DIR) "$(DESTDIR)/$(DOCDIR_BASEDIR)"
	$(CP_R) ./../../../samples "$(DESTDIR)/$(SAMPLES_DEST)"

install_all: install_docs install_samples install

install: install_header install_shared install_static

uninstall:
	rm -f "$(DESTDIR)/$(INCLUDEDIR_DEST)/$(HEADER)" "$(DESTDIR)/$(LIBDIR_DEST)"/$(LIBNAME)*

help:
	@echo -------------------------------------------------------------------
	@echo 'BUILDING:'
	@echo '  make all: build shared and static libs'
	@echo '  make shared: build shared lib only'
	@echo '  make static: build static lib only'
	@echo
	@echo 'INSTALLING:'
	@echo '  make install: install headers, shared and static libs'
	@echo '  make install_header: install only the headers'
	@echo '  make install_shared: install only the shared libs'
	@echo '  make install_static: install only the static libs'
	@echo '  make install_docs: install only the documentation'
	@echo '  make install_samples: install only the samples'
	@echo '  make install_all: install everything, including docs and samples'
	@echo
	@echo 'PARAMETERS (pass to make, as in PARAM=value):'
	@echo '  PREFIX: installation prefix (default /usr/local)'
	@echo '  INCLUDEDIR_DEST: where to install headers (default PREFIX/include)'
	@echo '  LIBDIR_DEST: where to install libraries (default PREFIX/lib)'
	@echo '  DOCDIR_BASEDIR: where the basedir of the documentation lies'
	@echo '                  (default PREFIX/share/doc/angelscript-AS_VER)'
	@echo '  DOXYGEN_DEST: where to install doxygen documentation'
	@echo '                (default DOCDIR_BASEDIR/html)'
	@echo '  SAMPLES_DEST: where to install samples'
	@echo '                (default DOCDIR_BASEDIR/samples)'
	@echo '  DESTDIR: destination, prepended to PREFIX, usually used by'
	@echo '           package managers (default empty)'
	@echo -------------------------------------------------------------------

clean:
	rm -f $(OBJ) "$(LIBDIR)"/$(ARLIB) "$(LIBDIR)"/$(SHLIB) "$(LIBDIR)"/$(LIBNAME).so

.PHONY: all clean install install_all install_docs install_header install_samples install_shared install_static shared static uninstall


code:
If you want to override /usr/local as the default prefix
(which means /usr/local/include would have the header file and
/usr/local/lib would have the library files), then run
make, make install and make uninstall (to build, to
install and uninstall respectively - you need it for
all three as I explain below) :

make PREFIX=/tmp
make PREFIX=/tmp install
make PREFIX=/tmp uninstall

The last two will of course have to be done
as root if you need permissions to write to
the directory (for /tmp you wouldn't unless
the files already existed by someone else and
you didn't have permission).

In any case, the above would install header file
under '/tmp/include' and the library file(s) under
'/tmp/lib'.

If you want to know the technical details as to why
you have to (when overriding the install location)
specify PREFIX= even when building, see the FAQ
file (summary: it makes it easier for you when linking
in the shared library).

A word of caution to those overriding prefix :
--
You are more than welcome to disregard this but I feel
it is something I should bring up. If you do override
the prefix I strongly recommend you do not specify
'/usr'. Why one might ask. The typical way is
that user-compiled programs/libraries/etc. go under
'/usr/local' (other times '/opt'). This has multiple
benefits: you keep '/usr' clean and if you have a
package manager then it makes it easy to say:
"The only files under /usr/include and /usr/lib are
those that belong to a package."
In other words it is easier to maintain integrity
and verify everything. Most important of it all
(aside the security implications) is this:
You have less chance of name clashes. If there ever
is a package that installs to /usr and it includes
the files (maybe a package for AngelScript) then you
will have issues.
--

Lastly: I don't have a way to test the phone builds
so I cannot verify the build process (it really
depends on the environment and architecture, like
most things); I'm an old-timer that hates the
"smart" trend (besides: it is a horrible misuse
of the world 'smart').

CONTACT:
If you have any questions or concerns, by all
means have Andreas contact me (at this time I
don't have an email I feel okay sharing - if it
seems this is of use to others I will likely
create an email on my server for this very
purpose). For now Andreas can forward the
message to me.


code:
#!/usr/bin/env mkb

options
{
	enable-exceptions=1
	lib
	module_path="../../source"
}

subproject angelscript_lib

defines
{
}

if {{ defined I3D_ARCH_ARM }}
{
	files
	{
		(../../source)
		as_callfunc_arm_gcc.S
	}
	option buildenv=scons
}
else
{
	files
	{
		(../../source)
		#as_callfunc_x64_msvc_asm.asm
		as_callfunc_arm_msvc.asm
	}
}

files
{
	(../../source)
	as_array.h
	as_atomic.cpp
	as_atomic.h
	as_builder.cpp
	as_builder.h
	as_bytecode.cpp
	as_bytecode.h
	as_callfunc.cpp
	as_callfunc.h
	as_callfunc_arm.cpp
	as_callfunc_mips.cpp
	as_callfunc_ppc.cpp
	as_callfunc_ppc_64.cpp
	as_callfunc_sh4.cpp
	as_callfunc_x64_gcc.cpp
	as_callfunc_x64_mingw.cpp
	as_callfunc_x64_msvc.cpp
	as_callfunc_x86.cpp
	as_callfunc_xenon.cpp
	as_compiler.cpp
	as_compiler.h
	as_config.h
	as_configgroup.cpp
	as_configgroup.h
	as_context.cpp
	as_context.h
	as_criticalsection.h
	as_datatype.cpp
	as_datatype.h
	as_debug.h
	as_gc.cpp
	as_gc.h
	as_generic.cpp
	as_generic.h
	as_globalproperty.cpp
	as_map.h
	as_memory.cpp
	as_memory.h
	as_module.cpp
	as_module.h
	as_objecttype.cpp
	as_objecttype.h
	as_outputbuffer.cpp
	as_outputbuffer.h
	as_parser.cpp
	as_parser.h
	as_property.h
	as_restore.cpp
	as_restore.h
	as_scriptcode.cpp
	as_scriptcode.h
	as_scriptengine.cpp
	as_scriptengine.h
	as_scriptfunction.cpp
	as_scriptfunction.h
	as_scriptnode.cpp
	as_scriptnode.h
	as_scriptobject.cpp
	as_scriptobject.h
	as_string.cpp
	as_string.h
	as_string_util.cpp
	as_string_util.h
	as_texts.h
	as_thread.cpp
	as_thread.h
	as_tokendef.h
	as_tokenizer.cpp
	as_tokenizer.h
	as_typeinfo.cpp
	as_typeinfo.h
	as_variablescope.cpp
	as_variablescope.h
}


code:
#!/usr/bin/env mkb

display_name "AngelScript_Lib"

includepath
{
	../../include
	../../sdk/add_on
}

defines
{
}

library
{
	".,angelscript_lib"
}

files
{
	(../../include)
	angelscript.h
}


code:
import argparse
import os
import re

HEADER = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                      "..", "..", "include", "angelscript.h")

def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("--num", action="store_true", help="Print numeric version")
    args = parser.parse_args()

    if args.num:
        regex = re.compile(r'^#define ANGELSCRIPT_VERSION\s+(\d+)')
    else:
        regex = re.compile(r'^#define ANGELSCRIPT_VERSION_STRING\s+"(\d+\.\d+\.\d+.*)"')

    with open(HEADER, "r") as fobj:
        for l in fobj:
            match = re.match(regex, l)
            if match is not None:
                print(match.group(1))
                return

    assert False, "Can't find version"

if __name__ == "__main__":
    main()


code:
project('angelscript', 'cpp',
        version : run_command(find_program('python3'), 'detect_ver.py').stdout().strip(),
        meson_version : '>=0.28.0',
        license : 'zlib')

threads = dependency('threads')

angel_srcs = [
  '../../source/as_atomic.cpp',
  '../../source/as_builder.cpp',
  '../../source/as_bytecode.cpp',
  '../../source/as_callfunc.cpp',
  '../../source/as_callfunc_mips.cpp',
  '../../source/as_callfunc_ppc.cpp',
  '../../source/as_callfunc_ppc_64.cpp',
  '../../source/as_callfunc_sh4.cpp',
  '../../source/as_callfunc_x86.cpp',
  '../../source/as_callfunc_x64_gcc.cpp',
  '../../source/as_callfunc_x64_mingw.cpp',
  '../../source/as_compiler.cpp',
  '../../source/as_context.cpp',
  '../../source/as_configgroup.cpp',
  '../../source/as_datatype.cpp',
  '../../source/as_generic.cpp',
  '../../source/as_gc.cpp',
  '../../source/as_globalproperty.cpp',
  '../../source/as_memory.cpp',
  '../../source/as_module.cpp',
  '../../source/as_objecttype.cpp',
  '../../source/as_outputbuffer.cpp',
  '../../source/as_parser.cpp',
  '../../source/as_restore.cpp',
  '../../source/as_scriptcode.cpp',
  '../../source/as_scriptengine.cpp',
  '../../source/as_scriptfunction.cpp',
  '../../source/as_scriptnode.cpp',
  '../../source/as_scriptobject.cpp',
  '../../source/as_string.cpp',
  '../../source/as_string_util.cpp',
  '../../source/as_thread.cpp',
  '../../source/as_tokenizer.cpp',
  '../../source/as_typeinfo.cpp',
  '../../source/as_variablescope.cpp',
]
if host_machine.cpu_family() == 'arm'
  add_languages('c')
  angel_srcs += [
    '../../source/as_callfunc_arm.cpp',
    '../../source/as_callfunc_arm_gcc.S',
  ]
endif

if host_machine.cpu_family() == 'aarch64'
  add_languages('c')
  angel_srcs += [
    '../../source/as_callfunc_arm64.cpp',
    '../../source/as_callfunc_arm64_gcc.S',
  ]
endif

angelscript_version_num = run_command(find_program('python3'), 'detect_ver.py', '--num').stdout().strip()
angelscript_lib = library(
  'angelscript',
  sources : angel_srcs,
  dependencies : threads,
  version : angelscript_version_num,
  install : true,
  cpp_args:'-Wfatal-errors'
)
angelscript_inc = include_directories('../../include')
angelscript_dep  = declare_dependency(
  link_with : angelscript_lib,
  include_directories : angelscript_inc,
  version : meson.project_version(),
)

install_headers('../../include/angelscript.h')


code:
# Angelscript MingW makefile
# Type 'make' then 'make install' to complete the installation of the library

CXX ?= g++
AR ?= ar
# Debug flags: -ggdb -DAS_DEBUG
# Release flags: -O2
#  to exclude the script compiler: -DAS_NO_COMPILER
#  to use only generic calling convention: -DAS_MAX_PORTABILITY
CXXFLAGS ?= -O2
SRCDIR = ../../source
OBJDIR = obj
SRCNAMES = \
  as_atomic.cpp \
  as_builder.cpp \
  as_bytecode.cpp \
  as_callfunc.cpp \
  as_callfunc_mips.cpp \
  as_callfunc_ppc_64.cpp \
  as_callfunc_ppc.cpp \
  as_callfunc_sh4.cpp \
  as_callfunc_x86.cpp \
  as_callfunc_x64_mingw.cpp \
  as_compiler.cpp \
  as_configgroup.cpp \
  as_context.cpp \
  as_datatype.cpp \
  as_generic.cpp \
  as_gc.cpp \
  as_globalproperty.cpp \
  as_memory.cpp \
  as_module.cpp \
  as_objecttype.cpp \
  as_outputbuffer.cpp \
  as_parser.cpp \
  as_restore.cpp \
  as_scriptcode.cpp \
  as_scriptengine.cpp \
  as_scriptfunction.cpp \
  as_scriptnode.cpp \
  as_scriptobject.cpp \
  as_string.cpp \
  as_string_util.cpp \
  as_thread.cpp \
  as_tokenizer.cpp \
  as_typeinfo.cpp \
  as_variablescope.cpp \

OBJ = $(addprefix $(OBJDIR)/, $(notdir $(SRCNAMES:.cpp=.o)))
BIN = ../../lib/libangelscript.a
OBJ_D = $(subst /,\,$(OBJ))
BIN_D = $(subst /,\,$(BIN))
DELETER = del /f
COPIER = copy /y
INCLUDEFILES_D = ..\..\include\angelscript.h
UNINSTALLFILES_D = $(MINGDIR)\lib\libangelscript.a $(MINGDIR)\include\angelscript.h

all: $(BIN)

$(BIN): $(OBJ)
	$(AR) rcs $(BIN) $(OBJ)
	@echo -------------------------------------------------------------------
	@echo Done. Now type 'make install' to install the library on your MinGW.

$(OBJDIR)/%.o: $(SRCDIR)/%.cpp
	$(CXX) $(CXXFLAGS) -o $@ -c $<

clean:
	$(DELETER) $(OBJ_D) $(BIN_D)

install: $(BIN)
	$(COPIER) $(BIN_D) $(MINGDIR)\lib
	$(COPIER) $(INCLUDEFILES_D) $(MINGDIR)\include
	@echo -------------------------------------------------------------------
	@echo Angelscript library installed. Enjoy!

uninstall:
	$(DELETER) $(UNINSTALLFILES_D)
	@echo -------------------------------------------------------------------
	@echo Angelscript library uninstalled.

.PHONY: all clean install uninstall


code:
If you haven't done that already set up an environment variable named MINGDIR
pointing the the directory where your MinGW is, e.g. "C:\MINGW"

To compile the library, just type in the command line:

make
make install

Sent in by Jakub "krajzega" Wasilewski


code:
# Microsoft Developer Studio Project File - Name="angelscript lib" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **

# TARGTYPE "Win32 (x86) Static Library" 0x0104

CFG=angelscript lib - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "angelscript.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "angelscript.mak" CFG="angelscript lib - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "angelscript lib - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "angelscript lib - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE "angelscript lib - Win32 Debug with stats" (based on "Win32 (x86) Static Library")
!MESSAGE

# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe

!IF  "$(CFG)" == "angelscript lib - Win32 Release"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
# ADD CPP /nologo /MT /W3 /O2 /Oy- /Ob2 /D "AS_NO_EXCEPTIONS" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "ANGELSCRIPT_EXPORT" /YX /FD /opt:nowin98 /c
# ADD BASE RSC /l 0x416 /d "NDEBUG"
# ADD RSC /l 0x416 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"..\..\..\lib\angelscript.lib"

!ELSEIF  "$(CFG)" == "angelscript lib - Win32 Debug"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /ZI /Od /D "AS_NO_EXCEPTIONS" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "ANGELSCRIPT_EXPORT" /YX /FD /opt:nowin98 /GZ /c
# ADD BASE RSC /l 0x416 /d "_DEBUG"
# ADD RSC /l 0x416 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"..\..\..\lib\angelscriptd.lib"

!ELSEIF  "$(CFG)" == "angelscript lib - Win32 Debug with stats"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "angelscript_lib___Win32_Debug_with_stats"
# PROP BASE Intermediate_Dir "angelscript_lib___Win32_Debug_with_stats"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug_with_stats"
# PROP Intermediate_Dir "Debug_with_stats"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MDd /W3 /Gm /ZI /Od /D "AS_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "ANGELSCRIPT_EXPORT" /YX /FD /opt:nowin98 /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /ZI /Od /D "AS_NO_EXCEPTIONS" /D "AS_DEBUG_STATS" /D "AS_USE_NAMESPACE" /D "AS_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "ANGELSCRIPT_EXPORT" /FR /YX /FD /opt:nowin98 /GZ /c
# ADD BASE RSC /l 0x416 /d "_DEBUG"
# ADD RSC /l 0x416 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo /out:"..\..\..\lib\angelscript.lib"
# ADD LIB32 /nologo /out:"..\..\..\lib\angelscriptd.lib"

!ENDIF

# Begin Target

# Name "angelscript lib - Win32 Release"
# Name "angelscript lib - Win32 Debug"
# Name "angelscript lib - Win32 Debug with stats"
# Begin Group "Source Files"

# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File

SOURCE=..\..\..\source\as_atomic.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_builder.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_bytecode.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_callfunc.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_callfunc_arm.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_callfunc_mips.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_callfunc_ppc.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_callfunc_ppc_64.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_callfunc_sh4.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_callfunc_x64_gcc.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_callfunc_x64_msvc.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_callfunc_x86.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_callfunc_xenon.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_compiler.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_configgroup.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_context.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_datatype.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_gc.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_generic.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_globalproperty.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_memory.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_module.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_objecttype.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_outputbuffer.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_parser.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_restore.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_scriptcode.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_scriptengine.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_scriptfunction.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_scriptnode.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_scriptobject.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_string.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_string_util.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_thread.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_tokenizer.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_typeinfo.cpp
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_variablescope.cpp
# End Source File
# End Group
# Begin Group "Header Files"

# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File

SOURCE=..\..\..\source\as_array.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_atomic.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_builder.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_bytecode.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_callfunc.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_compiler.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_config.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_configgroup.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_context.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_criticalsection.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_datatype.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_debug.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_gc.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_generic.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_map.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_memory.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_module.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_objecttype.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_outputbuffer.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_parser.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_property.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_restore.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_scriptcode.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_scriptengine.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_scriptfunction.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_scriptnode.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_scriptobject.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_string.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_string_util.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_symboltable.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_texts.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_thread.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_tokendef.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_tokenizer.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_typeinfo.h
# End Source File
# Begin Source File

SOURCE=..\..\..\source\as_variablescope.h
# End Source File
# End Group
# Begin Group "Interface"

# PROP Default_Filter ""
# Begin Source File

SOURCE=..\..\..\include\angelscript.h
# End Source File
# End Group
# End Target
# End Project


code:
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
	ProjectType="Visual C++"
	Version="7.10"
	Name="msvc7"
	ProjectGUID="{42D445F6-0462-4870-87CD-01E964EA8B97}"
	RootNamespace="msvc7"
	Keyword="Win32Proj">
	<Platforms>
		<Platform
			Name="Win32"/>
	</Platforms>
	<Configurations>
		<Configuration
			Name="Debug|Win32"
			OutputDirectory="../../lib"
			IntermediateDirectory="Debug"
			ConfigurationType="4"
			CharacterSet="2">
			<Tool
				Name="VCCLCompilerTool"
				Optimization="0"
				PreprocessorDefinitions="AS_USE_NAMESPACE;AS_DEBUG;WIN32;_DEBUG;_LIB;AS_C_INTERFACE"
				MinimalRebuild="TRUE"
				BasicRuntimeChecks="3"
				RuntimeLibrary="5"
				UsePrecompiledHeader="0"
				WarningLevel="4"
				Detect64BitPortabilityProblems="TRUE"
				DebugInformationFormat="4"/>
			<Tool
				Name="VCCustomBuildTool"/>
			<Tool
				Name="VCLibrarianTool"
				OutputFile="$(OutDir)/angelscriptd.lib"/>
			<Tool
				Name="VCMIDLTool"/>
			<Tool
				Name="VCPostBuildEventTool"/>
			<Tool
				Name="VCPreBuildEventTool"/>
			<Tool
				Name="VCPreLinkEventTool"/>
			<Tool
				Name="VCResourceCompilerTool"/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"/>
			<Tool
				Name="VCXMLDataGeneratorTool"/>
			<Tool
				Name="VCManagedWrapperGeneratorTool"/>
			<Tool
				Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
		</Configuration>
		<Configuration
			Name="Release|Win32"
			OutputDirectory="../../lib"
			IntermediateDirectory="Release"
			ConfigurationType="4"
			CharacterSet="2">
			<Tool
				Name="VCCLCompilerTool"
				PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
				StringPooling="TRUE"
				RuntimeLibrary="0"
				UsePrecompiledHeader="0"
				WarningLevel="3"
				Detect64BitPortabilityProblems="TRUE"
				DebugInformationFormat="3"/>
			<Tool
				Name="VCCustomBuildTool"/>
			<Tool
				Name="VCLibrarianTool"
				OutputFile="$(OutDir)/angelscript.lib"/>
			<Tool
				Name="VCMIDLTool"/>
			<Tool
				Name="VCPostBuildEventTool"/>
			<Tool
				Name="VCPreBuildEventTool"/>
			<Tool
				Name="VCPreLinkEventTool"/>
			<Tool
				Name="VCResourceCompilerTool"/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"/>
			<Tool
				Name="VCXMLDataGeneratorTool"/>
			<Tool
				Name="VCManagedWrapperGeneratorTool"/>
			<Tool
				Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
		</Configuration>
	</Configurations>
	<References>
	</References>
	<Files>
		<Filter
			Name="Source Files"
			Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
			<File
				RelativePath="..\..\source\as_atomic.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_builder.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_bytecode.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_callfunc.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_mips.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_ppc.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_sh4.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_x64_gcc.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_x86.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_xenon.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_compiler.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_configgroup.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_context.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_datatype.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_gc.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_generic.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_globalproperty.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_memory.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_module.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_objecttype.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_outputbuffer.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_parser.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_restore.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_scriptcode.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_scriptengine.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_scriptfunction.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_scriptnode.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_scriptobject.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_string.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_string_util.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_thread.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_tokenizer.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_typeinfo.cpp">
			</File>
			<File
				RelativePath="..\..\source\as_variablescope.cpp">
			</File>
		</Filter>
		<Filter
			Name="Header Files"
			Filter="h;hpp;hxx;hm;inl;inc;xsd"
			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
			<File
				RelativePath="..\..\include\angelscript.h">
			</File>
			<File
				RelativePath="..\..\source\as_array.h">
			</File>
			<File
				RelativePath="..\..\source\as_atomic.h">
			</File>
			<File
				RelativePath="..\..\source\as_builder.h">
			</File>
			<File
				RelativePath="..\..\source\as_bytecode.h">
			</File>
			<File
				RelativePath="..\..\source\as_bytecodedef.h">
			</File>
			<File
				RelativePath="..\..\source\as_callfunc.h">
			</File>
			<File
				RelativePath="..\..\source\as_compiler.h">
			</File>
			<File
				RelativePath="..\..\source\as_config.h">
			</File>
			<File
				RelativePath="..\..\source\as_configgroup.h">
			</File>
			<File
				RelativePath="..\..\source\as_context.h">
			</File>
			<File
				RelativePath="..\..\source\as_criticalsection.h">
			</File>
			<File
				RelativePath="..\..\source\as_datatype.h">
			</File>
			<File
				RelativePath="..\..\source\as_debug.h">
			</File>
			<File
				RelativePath="..\..\source\as_gc.h">
			</File>
			<File
				RelativePath="..\..\source\as_generic.h">
			</File>
			<File
				RelativePath="..\..\source\as_map.h">
			</File>
			<File
				RelativePath="..\..\source\as_memory.h">
			</File>
			<File
				RelativePath="..\..\source\as_module.h">
			</File>
			<File
				RelativePath="..\..\source\as_objecttype.h">
			</File>
			<File
				RelativePath="..\..\source\as_outputbuffer.h">
			</File>
			<File
				RelativePath="..\..\source\as_parser.h">
			</File>
			<File
				RelativePath="..\..\source\as_property.h">
			</File>
			<File
				RelativePath="..\..\source\as_restore.h">
			</File>
			<File
				RelativePath="..\..\source\as_scriptcode.h">
			</File>
			<File
				RelativePath="..\..\source\as_scriptengine.h">
			</File>
			<File
				RelativePath="..\..\source\as_scriptfunction.h">
			</File>
			<File
				RelativePath="..\..\source\as_scriptnode.h">
			</File>
			<File
				RelativePath="..\..\source\as_scriptobject.h">
			</File>
			<File
				RelativePath="..\..\source\as_string.h">
			</File>
			<File
				RelativePath="..\..\source\as_string_util.h">
			</File>
			<File
				RelativePath="..\..\source\as_texts.h">
			</File>
			<File
				RelativePath="..\..\source\as_thread.h">
			</File>
			<File
				RelativePath="..\..\source\as_tokendef.h">
			</File>
			<File
				RelativePath="..\..\source\as_tokenizer.h">
			</File>
			<File
				RelativePath="..\..\source\as_typeinfo.h">
			</File>
			<File
				RelativePath="..\..\source\as_variablescope.h">
			</File>
		</Filter>
		<Filter
			Name="Resource Files"
			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
		</Filter>
	</Files>
	<Globals>
	</Globals>
</VisualStudioProject>


code:
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
	ProjectType="Visual C++"
	Version="8.00"
	Name="angelscript"
	ProjectGUID="{39E6AF97-6BA3-4A72-8C61-BCEBF214EBFD}"
	RootNamespace="angelscript"
	>
	<Platforms>
		<Platform
			Name="Win32"
		/>
	</Platforms>
	<ToolFiles>
	</ToolFiles>
	<Configurations>
		<Configuration
			Name="Debug|Win32"
			OutputDirectory="..\..\lib"
			IntermediateDirectory="$(ConfigurationName)"
			ConfigurationType="4"
			WholeProgramOptimization="1"
			>
			<Tool
				Name="VCPreBuildEventTool"
			/>
			<Tool
				Name="VCCustomBuildTool"
			/>
			<Tool
				Name="VCXMLDataGeneratorTool"
			/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"
			/>
			<Tool
				Name="VCMIDLTool"
			/>
			<Tool
				Name="VCCLCompilerTool"
				Optimization="0"
				WholeProgramOptimization="false"
				PreprocessorDefinitions="ANGELSCRIPT_EXPORT;AS_DEBUG;WIN32;_DEBUG;_LIB"
				StringPooling="true"
				ExceptionHandling="1"
				BasicRuntimeChecks="3"
				SmallerTypeCheck="false"
				RuntimeLibrary="3"
				RuntimeTypeInfo="false"
				WarningLevel="3"
				Detect64BitPortabilityProblems="true"
				DebugInformationFormat="3"
				DisableSpecificWarnings="4996;4244"
			/>
			<Tool
				Name="VCManagedResourceCompilerTool"
			/>
			<Tool
				Name="VCResourceCompilerTool"
			/>
			<Tool
				Name="VCPreLinkEventTool"
			/>
			<Tool
				Name="VCLibrarianTool"
				OutputFile="$(OutDir)\$(ProjectName)d.lib"
			/>
			<Tool
				Name="VCALinkTool"
			/>
			<Tool
				Name="VCXDCMakeTool"
			/>
			<Tool
				Name="VCBscMakeTool"
			/>
			<Tool
				Name="VCFxCopTool"
			/>
			<Tool
				Name="VCPostBuildEventTool"
			/>
		</Configuration>
		<Configuration
			Name="Release|Win32"
			OutputDirectory="../../lib"
			IntermediateDirectory="$(ConfigurationName)"
			ConfigurationType="4"
			>
			<Tool
				Name="VCPreBuildEventTool"
			/>
			<Tool
				Name="VCCustomBuildTool"
			/>
			<Tool
				Name="VCXMLDataGeneratorTool"
			/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"
			/>
			<Tool
				Name="VCMIDLTool"
			/>
			<Tool
				Name="VCCLCompilerTool"
				WholeProgramOptimization="true"
				PreprocessorDefinitions="ANGELSCRIPT_EXPORT;WIN32;NDEBUG;_LIB"
				StringPooling="true"
				ExceptionHandling="1"
				RuntimeLibrary="2"
				BufferSecurityCheck="false"
				RuntimeTypeInfo="false"
				WarningLevel="3"
				Detect64BitPortabilityProblems="true"
				DisableSpecificWarnings="4996;4244"
			/>
			<Tool
				Name="VCManagedResourceCompilerTool"
			/>
			<Tool
				Name="VCResourceCompilerTool"
			/>
			<Tool
				Name="VCPreLinkEventTool"
			/>
			<Tool
				Name="VCLibrarianTool"
			/>
			<Tool
				Name="VCALinkTool"
			/>
			<Tool
				Name="VCXDCMakeTool"
			/>
			<Tool
				Name="VCBscMakeTool"
			/>
			<Tool
				Name="VCFxCopTool"
			/>
			<Tool
				Name="VCPostBuildEventTool"
			/>
		</Configuration>
	</Configurations>
	<References>
	</References>
	<Files>
		<Filter
			Name="Source Files"
			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
			>
			<File
				RelativePath="..\..\source\as_atomic.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_builder.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_bytecode.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_mips.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_sh4.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_x86.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_compiler.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_configgroup.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_context.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_datatype.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_gc.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_generic.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_globalproperty.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_memory.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_module.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_objecttype.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_outputbuffer.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_parser.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_restore.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptcode.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptengine.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptfunction.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptnode.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptobject.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_string.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_string_util.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_thread.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_tokenizer.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_typeinfo.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_variablescope.cpp"
				>
			</File>
		</Filter>
		<Filter
			Name="Header Files"
			Filter="h;hpp;hxx;hm;inl;inc;xsd"
			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
			>
			<File
				RelativePath="..\..\include\angelscript.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_array.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_builder.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_bytecode.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_bytecodedef.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_compiler.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_config.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_configgroup.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_context.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_datatype.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_debug.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_generic.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_map.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_module.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_objecttype.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_outputbuffer.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_parser.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_property.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_restore.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptcode.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptengine.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptfunction.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptnode.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptobject.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_string.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_string_util.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_texts.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_thread.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_tokendef.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_tokenizer.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_typeinfo.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_variablescope.h"
				>
			</File>
		</Filter>
		<Filter
			Name="Resource Files"
			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
			>
		</Filter>
	</Files>
	<Globals>
	</Globals>
</VisualStudioProject>


code:
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
	ProjectType="Visual C++"
	Version="9,00"
	Name="angelscript"
	ProjectGUID="{39E6AF97-6BA3-4A72-8C61-BCEBF214EBFD}"
	RootNamespace="angelscript"
	TargetFrameworkVersion="131072"
	>
	<Platforms>
		<Platform
			Name="Win32"
		/>
		<Platform
			Name="x64"
		/>
	</Platforms>
	<ToolFiles>
		<DefaultToolFile
			FileName="masm.rules"
		/>
	</ToolFiles>
	<Configurations>
		<Configuration
			Name="Debug|Win32"
			OutputDirectory="..\..\lib"
			IntermediateDirectory="$(ConfigurationName)"
			ConfigurationType="4"
			WholeProgramOptimization="1"
			>
			<Tool
				Name="VCPreBuildEventTool"
			/>
			<Tool
				Name="VCCustomBuildTool"
			/>
			<Tool
				Name="MASM"
			/>
			<Tool
				Name="VCXMLDataGeneratorTool"
			/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"
			/>
			<Tool
				Name="VCMIDLTool"
			/>
			<Tool
				Name="VCCLCompilerTool"
				Optimization="0"
				WholeProgramOptimization="false"
				PreprocessorDefinitions="ANGELSCRIPT_EXPORT;AS_DEBUG;WIN32;_DEBUG;_LIB"
				StringPooling="true"
				ExceptionHandling="1"
				BasicRuntimeChecks="3"
				SmallerTypeCheck="false"
				RuntimeLibrary="1"
				RuntimeTypeInfo="false"
				WarningLevel="4"
				WarnAsError="true"
				DebugInformationFormat="3"
			/>
			<Tool
				Name="VCManagedResourceCompilerTool"
			/>
			<Tool
				Name="VCResourceCompilerTool"
			/>
			<Tool
				Name="VCPreLinkEventTool"
			/>
			<Tool
				Name="VCLibrarianTool"
				LinkLibraryDependencies="true"
				OutputFile="$(OutDir)\$(ProjectName)d.lib"
			/>
			<Tool
				Name="VCALinkTool"
			/>
			<Tool
				Name="VCXDCMakeTool"
			/>
			<Tool
				Name="VCBscMakeTool"
			/>
			<Tool
				Name="VCFxCopTool"
			/>
			<Tool
				Name="VCPostBuildEventTool"
			/>
		</Configuration>
		<Configuration
			Name="Release|Win32"
			OutputDirectory="../../lib"
			IntermediateDirectory="$(ConfigurationName)"
			ConfigurationType="4"
			>
			<Tool
				Name="VCPreBuildEventTool"
			/>
			<Tool
				Name="VCCustomBuildTool"
			/>
			<Tool
				Name="MASM"
			/>
			<Tool
				Name="VCXMLDataGeneratorTool"
			/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"
			/>
			<Tool
				Name="VCMIDLTool"
			/>
			<Tool
				Name="VCCLCompilerTool"
				Optimization="3"
				FavorSizeOrSpeed="1"
				WholeProgramOptimization="true"
				PreprocessorDefinitions="ANGELSCRIPT_EXPORT;WIN32;NDEBUG;_LIB"
				StringPooling="true"
				ExceptionHandling="1"
				RuntimeLibrary="0"
				BufferSecurityCheck="false"
				RuntimeTypeInfo="false"
				WarningLevel="3"
			/>
			<Tool
				Name="VCManagedResourceCompilerTool"
			/>
			<Tool
				Name="VCResourceCompilerTool"
			/>
			<Tool
				Name="VCPreLinkEventTool"
			/>
			<Tool
				Name="VCLibrarianTool"
			/>
			<Tool
				Name="VCALinkTool"
			/>
			<Tool
				Name="VCXDCMakeTool"
			/>
			<Tool
				Name="VCBscMakeTool"
			/>
			<Tool
				Name="VCFxCopTool"
			/>
			<Tool
				Name="VCPostBuildEventTool"
			/>
		</Configuration>
		<Configuration
			Name="Debug|x64"
			OutputDirectory="$(PlatformName)\$(ConfigurationName)"
			IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
			ConfigurationType="4"
			WholeProgramOptimization="1"
			>
			<Tool
				Name="VCPreBuildEventTool"
			/>
			<Tool
				Name="VCCustomBuildTool"
			/>
			<Tool
				Name="MASM"
			/>
			<Tool
				Name="VCXMLDataGeneratorTool"
			/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"
			/>
			<Tool
				Name="VCMIDLTool"
				TargetEnvironment="3"
			/>
			<Tool
				Name="VCCLCompilerTool"
				Optimization="0"
				WholeProgramOptimization="false"
				PreprocessorDefinitions="ANGELSCRIPT_EXPORT;AS_DEBUG;_DEBUG;_LIB"
				StringPooling="true"
				ExceptionHandling="1"
				BasicRuntimeChecks="3"
				SmallerTypeCheck="false"
				RuntimeLibrary="1"
				RuntimeTypeInfo="false"
				WarningLevel="4"
				DebugInformationFormat="3"
			/>
			<Tool
				Name="VCManagedResourceCompilerTool"
			/>
			<Tool
				Name="VCResourceCompilerTool"
			/>
			<Tool
				Name="VCPreLinkEventTool"
			/>
			<Tool
				Name="VCLibrarianTool"
				LinkLibraryDependencies="true"
				OutputFile="..\..\lib\angelscript64d.lib"
			/>
			<Tool
				Name="VCALinkTool"
			/>
			<Tool
				Name="VCXDCMakeTool"
			/>
			<Tool
				Name="VCBscMakeTool"
			/>
			<Tool
				Name="VCFxCopTool"
			/>
			<Tool
				Name="VCPostBuildEventTool"
			/>
		</Configuration>
		<Configuration
			Name="Release|x64"
			OutputDirectory="$(PlatformName)\$(ConfigurationName)"
			IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
			ConfigurationType="4"
			WholeProgramOptimization="1"
			>
			<Tool
				Name="VCPreBuildEventTool"
			/>
			<Tool
				Name="VCCustomBuildTool"
			/>
			<Tool
				Name="MASM"
			/>
			<Tool
				Name="VCXMLDataGeneratorTool"
			/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"
			/>
			<Tool
				Name="VCMIDLTool"
				TargetEnvironment="3"
			/>
			<Tool
				Name="VCCLCompilerTool"
				Optimization="3"
				InlineFunctionExpansion="2"
				EnableIntrinsicFunctions="true"
				FavorSizeOrSpeed="1"
				WholeProgramOptimization="true"
				PreprocessorDefinitions="ANGELSCRIPT_EXPORT;NDEBUG;_LIB"
				StringPooling="true"
				ExceptionHandling="1"
				RuntimeLibrary="0"
				BufferSecurityCheck="false"
				RuntimeTypeInfo="false"
				WarningLevel="4"
			/>
			<Tool
				Name="VCManagedResourceCompilerTool"
			/>
			<Tool
				Name="VCResourceCompilerTool"
			/>
			<Tool
				Name="VCPreLinkEventTool"
			/>
			<Tool
				Name="VCLibrarianTool"
				LinkLibraryDependencies="true"
				OutputFile="..\..\lib\angelscript64.lib"
			/>
			<Tool
				Name="VCALinkTool"
			/>
			<Tool
				Name="VCXDCMakeTool"
			/>
			<Tool
				Name="VCBscMakeTool"
			/>
			<Tool
				Name="VCFxCopTool"
			/>
			<Tool
				Name="VCPostBuildEventTool"
			/>
		</Configuration>
	</Configurations>
	<References>
	</References>
	<Files>
		<Filter
			Name="Source Files"
			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
			>
			<File
				RelativePath="..\..\source\as_atomic.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_builder.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_bytecode.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_arm.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_mips.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_ppc.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_ppc_64.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_sh4.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_x64_gcc.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_x64_mingw.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_x64_msvc.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_x64_msvc_asm.asm"
				>
				<FileConfiguration
					Name="Debug|Win32"
					ExcludedFromBuild="true"
					>
					<Tool
						Name="MASM"
					/>
				</FileConfiguration>
				<FileConfiguration
					Name="Release|Win32"
					ExcludedFromBuild="true"
					>
					<Tool
						Name="MASM"
					/>
				</FileConfiguration>
				<FileConfiguration
					Name="Debug|x64"
					>
					<Tool
						Name="VCCustomBuildTool"
						CommandLine="ml64.exe /c  /nologo /Fo$(OutDir)\as_callfunc_x64_msvc_asm.obj /W3 /Zi /Ta $(InputDir)\$(InputFileName)
"
						Outputs="$(OutDir)\as_callfunc_x64_msvc_asm.obj"
					/>
				</FileConfiguration>
				<FileConfiguration
					Name="Release|x64"
					>
					<Tool
						Name="VCCustomBuildTool"
						CommandLine="ml64.exe /c  /nologo /Fo$(OutDir)\as_callfunc_x64_msvc_asm.obj /W3 /Zi /Ta $(InputDir)\$(InputFileName)
"
						Outputs="$(OutDir)\as_callfunc_x64_msvc_asm.obj"
					/>
				</FileConfiguration>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_x86.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc_xenon.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_compiler.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_configgroup.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_context.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_datatype.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_gc.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_generic.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_globalproperty.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_memory.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_module.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_objecttype.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_outputbuffer.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_parser.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_restore.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptcode.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptengine.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptfunction.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptnode.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptobject.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_string.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_string_util.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_thread.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_tokenizer.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_typeinfo.cpp"
				>
			</File>
			<File
				RelativePath="..\..\source\as_variablescope.cpp"
				>
			</File>
		</Filter>
		<Filter
			Name="Header Files"
			Filter="h;hpp;hxx;hm;inl;inc;xsd"
			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
			>
			<File
				RelativePath="..\..\include\angelscript.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_array.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_atomic.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_builder.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_bytecode.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_callfunc.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_compiler.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_config.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_configgroup.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_context.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_criticalsection.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_datatype.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_debug.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_gc.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_generic.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_map.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_memory.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_module.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_objecttype.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_outputbuffer.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_parser.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_property.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_restore.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptcode.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptengine.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptfunction.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptnode.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_scriptobject.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_string.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_string_util.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_symboltable.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_texts.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_thread.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_tokendef.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_tokenizer.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_typeinfo.h"
				>
			</File>
			<File
				RelativePath="..\..\source\as_variablescope.h"
				>
			</File>
		</Filter>
		<Filter
			Name="Resource Files"
			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
			>
		</Filter>
	</Files>
	<Globals>
	</Globals>
</VisualStudioProject>


code:
TEMPLATE = lib

DEPENDPATH += ../../source ../../include
INCLUDEPATH += ../../include

QMAKE_CXXFLAGS += -Wno-strict-aliasing

CONFIG -= debug debug_and_release release app_bundle qt dll

CONFIG += staticlib release

DEFINES += _CRT_SECURE_NO_WARNINGS

DESTDIR = ../../lib

win32: LIBS += -lwinmm

HEADERS += ../../include/angelscript.h \
           ../../source/as_array.h \
           ../../source/as_atomic.h \
           ../../source/as_builder.h \
           ../../source/as_bytecode.h \
           ../../source/as_callfunc.h \
           ../../source/as_compiler.h \
           ../../source/as_config.h \
           ../../source/as_configgroup.h \
           ../../source/as_context.h \
           ../../source/as_criticalsection.h \
           ../../source/as_datatype.h \
           ../../source/as_debug.h \
           ../../source/as_gc.h \
           ../../source/as_generic.h \
           ../../source/as_map.h \
           ../../source/as_memory.h \
           ../../source/as_module.h \
           ../../source/as_objecttype.h \
           ../../source/as_outputbuffer.h \
           ../../source/as_parser.h \
           ../../source/as_property.h \
           ../../source/as_restore.h \
           ../../source/as_scriptcode.h \
           ../../source/as_scriptengine.h \
           ../../source/as_scriptfunction.h \
           ../../source/as_scriptnode.h \
           ../../source/as_scriptobject.h \
           ../../source/as_string.h \
           ../../source/as_string_util.h \
           ../../source/as_symboltable.h \
           ../../source/as_texts.h \
           ../../source/as_thread.h \
           ../../source/as_tokendef.h \
           ../../source/as_tokenizer.h \
           ../../source/as_typeinfo.h \
           ../../source/as_variablescope.h

SOURCES += ../../source/as_atomic.cpp \
           ../../source/as_builder.cpp \
           ../../source/as_bytecode.cpp \
           ../../source/as_callfunc.cpp \
           ../../source/as_callfunc_mips.cpp \
           ../../source/as_callfunc_ppc.cpp \
           ../../source/as_callfunc_ppc_64.cpp \
           ../../source/as_callfunc_sh4.cpp \
           ../../source/as_callfunc_x64_gcc.cpp \
           ../../source/as_callfunc_x64_mingw.cpp \
           ../../source/as_callfunc_x64_msvc.cpp \
           ../../source/as_callfunc_x86.cpp \
           ../../source/as_callfunc_xenon.cpp \
           ../../source/as_compiler.cpp \
           ../../source/as_configgroup.cpp \
           ../../source/as_context.cpp \
           ../../source/as_datatype.cpp \
           ../../source/as_gc.cpp \
           ../../source/as_generic.cpp \
           ../../source/as_globalproperty.cpp \
           ../../source/as_memory.cpp \
           ../../source/as_module.cpp \
           ../../source/as_objecttype.cpp \
           ../../source/as_outputbuffer.cpp \
           ../../source/as_parser.cpp \
           ../../source/as_restore.cpp \
           ../../source/as_scriptcode.cpp \
           ../../source/as_scriptengine.cpp \
           ../../source/as_scriptfunction.cpp \
           ../../source/as_scriptnode.cpp \
           ../../source/as_scriptobject.cpp \
           ../../source/as_string.cpp \
           ../../source/as_string_util.cpp \
           ../../source/as_thread.cpp \
           ../../source/as_tokenizer.cpp \
           ../../source/as_typeinfo.cpp \
           ../../source/as_variablescope.cpp

HEADERS += ../../../add_on/scriptany/scriptany.h \
           ../../../add_on/scriptarray/scriptarray.h \
           ../../../add_on/scriptdictionary/scriptdictionary.h \
           ../../../add_on/scriptmath/scriptmath.h \
           ../../../add_on/scripthandle/scripthandle.h \
           ../../../add_on/scriptstdstring/scriptstdstring.h \
           ../../../add_on/scriptbuilder/scriptbuilder.h

SOURCES += ../../../add_on/scriptany/scriptany.cpp \
           ../../../add_on/scriptarray/scriptarray.cpp \
           ../../../add_on/scriptdictionary/scriptdictionary.cpp \
           ../../../add_on/scriptmath/scriptmath.cpp \
           ../../../add_on/scripthandle/scripthandle.cpp \
           ../../../add_on/scriptstdstring/scriptstdstring.cpp \
           ../../../add_on/scriptstdstring/scriptstdstring_utils.cpp \
           ../../../add_on/scriptbuilder/scriptbuilder.cpp

OBJECTS_DIR = tmp
MOC_DIR = tmp
UI_DIR = tmp
RCC_DIR = tmp

!win32-g++:win32:contains(QMAKE_HOST.arch, x86_64):{
    asm_compiler.commands = ml64 /c
    asm_compiler.commands +=  /Fo ${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
    asm_compiler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
    asm_compiler.input = ASM_SOURCES
    asm_compiler.variable_out = OBJECTS
    asm_compiler.name = compiling[asm] ${QMAKE_FILE_IN}
    silent:asm_compiler.commands = @echo compiling[asm] ${QMAKE_FILE_IN} && $$asm_compiler.commands
    QMAKE_EXTRA_COMPILERS += asm_compiler

    ASM_SOURCES += \
        $$PWD/angelscript/source/as_callfunc_x64_msvc_asm.asm

    if(win32-msvc2008|win32-msvc2010):equals(TEMPLATE_PREFIX, "vc") {
        SOURCES += \
            $$PWD/angelscript/source/as_callfunc_x64_msvc_asm.asm
    }
}

# QMAKE_CXXFLAGS_RELEASE += /MP