Commit be9f0df6 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Renamed LuaInterface -> NLua

parent 2e203153
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -25,10 +25,10 @@ ...@@ -25,10 +25,10 @@
using System; using System;
using System.Threading; using System.Threading;
using LuaInterface; using NLua;
/* /*
* Application to run Lua scripts that can use LuaInterface * Application to run Lua scripts that can use NLua
* from the console * from the console
* *
* Author: Fabio Mascarenhas * Author: Fabio Mascarenhas
......
...@@ -66,9 +66,9 @@ ...@@ -66,9 +66,9 @@
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Core\LuaInterface\LuaInterface.csproj"> <ProjectReference Include="..\..\Core\NLua\NLua.csproj">
<Project>{F55CABBB-4108-4A39-94E1-581FD46DC021}</Project> <Project>{F55CABBB-4108-4A39-94E1-581FD46DC021}</Project>
<Name>LuaInterface</Name> <Name>NLua</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
......
...@@ -9,12 +9,12 @@ ASSEMBLY = ../../Run/Debug/LuaRunner.exe ...@@ -9,12 +9,12 @@ ASSEMBLY = ../../Run/Debug/LuaRunner.exe
ASSEMBLY_MDB = $(ASSEMBLY).mdb ASSEMBLY_MDB = $(ASSEMBLY).mdb
COMPILE_TARGET = exe COMPILE_TARGET = exe
PROJECT_REFERENCES = \ PROJECT_REFERENCES = \
../../Run/Debug/LuaInterface.dll ../../Run/Debug/NLua.dll
BUILD_DIR = ../../Run/Debug BUILD_DIR = ../../Run/Debug
LUARUNNER_EXE_MDB_SOURCE=../../Run/Debug/LuaRunner.exe.mdb LUARUNNER_EXE_MDB_SOURCE=../../Run/Debug/LuaRunner.exe.mdb
LUARUNNER_EXE_MDB=$(BUILD_DIR)/LuaRunner.exe.mdb LUARUNNER_EXE_MDB=$(BUILD_DIR)/LuaRunner.exe.mdb
LUAINTERFACE_DLL_SOURCE=../../Run/Debug/LuaInterface.dll LUAINTERFACE_DLL_SOURCE=../../Run/Debug/NLua.dll
KOPILUA_DLL_SOURCE=../../Run/Debug/KopiLua.dll KOPILUA_DLL_SOURCE=../../Run/Debug/KopiLua.dll
endif endif
...@@ -26,11 +26,11 @@ ASSEMBLY = ../../Run/Release/LuaRunner.exe ...@@ -26,11 +26,11 @@ ASSEMBLY = ../../Run/Release/LuaRunner.exe
ASSEMBLY_MDB = ASSEMBLY_MDB =
COMPILE_TARGET = exe COMPILE_TARGET = exe
PROJECT_REFERENCES = \ PROJECT_REFERENCES = \
../../Run/Release/LuaInterface.dll ../../Run/Release/NLua.dll
BUILD_DIR = ../../Run/Release BUILD_DIR = ../../Run/Release
LUARUNNER_EXE_MDB= LUARUNNER_EXE_MDB=
LUAINTERFACE_DLL_SOURCE=../../Run/Release/LuaInterface.dll LUAINTERFACE_DLL_SOURCE=../../Run/Release/NLua.dll
KOPILUA_DLL_SOURCE=../../Run/Release/KopiLua.dll KOPILUA_DLL_SOURCE=../../Run/Release/KopiLua.dll
endif endif
...@@ -42,12 +42,12 @@ ASSEMBLY = ../../Run/Debug_x64/LuaRunner.exe ...@@ -42,12 +42,12 @@ ASSEMBLY = ../../Run/Debug_x64/LuaRunner.exe
ASSEMBLY_MDB = $(ASSEMBLY).mdb ASSEMBLY_MDB = $(ASSEMBLY).mdb
COMPILE_TARGET = exe COMPILE_TARGET = exe
PROJECT_REFERENCES = \ PROJECT_REFERENCES = \
../../Run/Debug_x64/LuaInterface.dll ../../Run/Debug_x64/NLua.dll
BUILD_DIR = ../../Run/Debug_x64 BUILD_DIR = ../../Run/Debug_x64
LUARUNNER_EXE_MDB_SOURCE=../../Run/Debug_x64/LuaRunner.exe.mdb LUARUNNER_EXE_MDB_SOURCE=../../Run/Debug_x64/LuaRunner.exe.mdb
LUARUNNER_EXE_MDB=$(BUILD_DIR)/LuaRunner.exe.mdb LUARUNNER_EXE_MDB=$(BUILD_DIR)/LuaRunner.exe.mdb
LUAINTERFACE_DLL_SOURCE=../../Run/Debug_x64/LuaInterface.dll LUAINTERFACE_DLL_SOURCE=../../Run/Debug_x64/NLua.dll
KOPILUA_DLL_SOURCE=../../Run/Debug_x64/KopiLua.dll KOPILUA_DLL_SOURCE=../../Run/Debug_x64/KopiLua.dll
endif endif
...@@ -59,11 +59,11 @@ ASSEMBLY = ../../Run/Release_x64/LuaRunner.exe ...@@ -59,11 +59,11 @@ ASSEMBLY = ../../Run/Release_x64/LuaRunner.exe
ASSEMBLY_MDB = ASSEMBLY_MDB =
COMPILE_TARGET = exe COMPILE_TARGET = exe
PROJECT_REFERENCES = \ PROJECT_REFERENCES = \
../../Run/Release_x64/LuaInterface.dll ../../Run/Release_x64/NLua.dll
BUILD_DIR = ../../Run/Release_x64 BUILD_DIR = ../../Run/Release_x64
LUARUNNER_EXE_MDB= LUARUNNER_EXE_MDB=
LUAINTERFACE_DLL_SOURCE=../../Run/Release_x64/LuaInterface.dll LUAINTERFACE_DLL_SOURCE=../../Run/Release_x64/NLua.dll
KOPILUA_DLL_SOURCE=../../Run/Release_x64/KopiLua.dll KOPILUA_DLL_SOURCE=../../Run/Release_x64/KopiLua.dll
endif endif
...@@ -106,7 +106,7 @@ CLEANFILES = $(PROGRAMFILES) $(BINARIES) ...@@ -106,7 +106,7 @@ CLEANFILES = $(PROGRAMFILES) $(BINARIES)
include $(top_srcdir)/Makefile.include include $(top_srcdir)/Makefile.include
LUAINTERFACE_DLL = $(BUILD_DIR)/LuaInterface.dll LUAINTERFACE_DLL = $(BUILD_DIR)/NLua.dll
KOPILUA_DLL = $(BUILD_DIR)/KopiLua.dll KOPILUA_DLL = $(BUILD_DIR)/KopiLua.dll
LUARUNNER = $(BUILD_DIR)/luarunner LUARUNNER = $(BUILD_DIR)/luarunner
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -27,18 +27,18 @@ using System; ...@@ -27,18 +27,18 @@ using System;
using System.Reflection; using System.Reflection;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using LuaInterface.Config; using NLua.Config;
// Information about this assembly is defined by the following attributes. // Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project. // Change them to the values specific to your project.
[assembly: AssemblyTitle("LuaRunner")] [assembly: AssemblyTitle("LuaRunner")]
[assembly: AssemblyDescription(Consts.LuaInterfaceDescription)] [assembly: AssemblyDescription(Consts.NLuaDescription)]
[assembly: AssemblyConfiguration(Consts.LuaInterfaceConfiguration)] [assembly: AssemblyConfiguration(Consts.NLuaConfiguration)]
[assembly: AssemblyCompany(Consts.LuaInterfaceCompany)] [assembly: AssemblyCompany(Consts.NLuaCompany)]
[assembly: AssemblyProduct(Consts.LuaInterfaceProduct)] [assembly: AssemblyProduct(Consts.NLuaProduct)]
[assembly: AssemblyCopyright(Consts.LuaInterfaceCopyright)] [assembly: AssemblyCopyright(Consts.NLuaCopyright)]
[assembly: AssemblyTrademark(Consts.LuaInterfaceTrademark)] [assembly: AssemblyTrademark(Consts.NLuaTrademark)]
// Setting ComVisible to false makes the types in this assembly not visible // Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from // to COM components. If you need to access a type in this assembly from
......
LuaInterface License NLua License
-------------------- --------------------
LuaInterface is licensed under the terms of the MIT license reproduced below. NLua is licensed under the terms of the MIT license reproduced below.
This mean that LuaInterface is free software and can be used for both academic and This mean that NLua is free software and can be used for both academic and
commercial purposes at absolutely no cost. commercial purposes at absolutely no cost.
=============================================================================== ===============================================================================
......
...@@ -52,9 +52,9 @@ ...@@ -52,9 +52,9 @@
<None Include="App.config" /> <None Include="App.config" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Core\LuaInterface\LuaInterface.csproj"> <ProjectReference Include="..\Core\NLua\NLua.csproj">
<Project>{f55cabbb-4108-4a39-94e1-581fd46dc021}</Project> <Project>{f55cabbb-4108-4a39-94e1-581fd46dc021}</Project>
<Name>LuaInterface</Name> <Name>NLua</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
......
...@@ -3,7 +3,7 @@ using System.Collections.Generic; ...@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using LuaInterface; using NLua;
namespace ConsoleTest namespace ConsoleTest
{ {
...@@ -15,7 +15,7 @@ namespace ConsoleTest ...@@ -15,7 +15,7 @@ namespace ConsoleTest
using (Lua lua = new Lua ()) { using (Lua lua = new Lua ()) {
lua.DoString ("luanet.load_assembly('mscorlib')"); lua.DoString ("luanet.load_assembly('mscorlib')");
lua.DoString ("luanet.load_assembly('ConsoleTest')"); lua.DoString ("luanet.load_assembly('ConsoleTest')");
lua.DoString ("TestClass=luanet.import_type('LuaInterfaceTest.Mock.TestClass')"); lua.DoString ("TestClass=luanet.import_type('NLuaTest.Mock.TestClass')");
lua.DoString ("test=TestClass()"); lua.DoString ("test=TestClass()");
try { try {
......
Name: LuaInterface
Description: LuaInterface
Version: 2.x
Requires:
Libs: -r:@expanded_libdir@/@PACKAGE@/LuaInterface.dll
...@@ -3,14 +3,14 @@ EXTRA_DIST = ...@@ -3,14 +3,14 @@ EXTRA_DIST =
#Warning: This is an automatically generated file, do not edit! #Warning: This is an automatically generated file, do not edit!
if ENABLE_DEBUG_X86 if ENABLE_DEBUG_X86
SUBDIRS = KopiLua LuaInterface SUBDIRS = KopiLua NLua
endif endif
if ENABLE_RELEASE_X86 if ENABLE_RELEASE_X86
SUBDIRS = KopiLua LuaInterface SUBDIRS = KopiLua NLua
endif endif
if ENABLE_DEBUG_X64 if ENABLE_DEBUG_X64
SUBDIRS = KopiLua LuaInterface SUBDIRS = KopiLua NLua
endif endif
if ENABLE_RELEASE_X64 if ENABLE_RELEASE_X64
SUBDIRS = KopiLua LuaInterface SUBDIRS = KopiLua NLua
endif endif
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -25,10 +25,10 @@ ...@@ -25,10 +25,10 @@
using System; using System;
using System.Reflection; using System.Reflection;
using System.Collections.Generic; using System.Collections.Generic;
using LuaInterface.Method; using NLua.Method;
using LuaInterface.Extensions; using NLua.Extensions;
namespace LuaInterface namespace NLua
{ {
#if USE_KOPILUA #if USE_KOPILUA
using LuaCore = KopiLua.Lua; using LuaCore = KopiLua.Lua;
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
* *
...@@ -23,21 +23,21 @@ ...@@ -23,21 +23,21 @@
*/ */
using System; using System;
namespace LuaInterface.Config namespace NLua.Config
{ {
public static class Consts public static class Consts
{ {
public const string LuaInterfaceDescription = "Bridge between the Lua runtime and the CLR"; public const string NLuaDescription = "Bridge between the Lua runtime and the CLR";
#if DEBUG #if DEBUG
public const string LuaInterfaceConfiguration = "Debug"; public const string NLuaConfiguration = "Debug";
#else #else
public const string LuaInterfaceConfiguration = "Release"; public const string NLuaConfiguration = "Release";
#endif #endif
public const string LuaInterfaceCompany = "LuaInterface Productions"; public const string NLuaCompany = "NLua Productions";
public const string LuaInterfaceProduct = "LuaInterface"; public const string NLuaProduct = "NLua";
public const string LuaInterfaceCopyright = "Copyright 2003-2008 Fabio Mascarenhas, Kevin Hesterm and 2012 Megax"; public const string NLuaCopyright = "Copyright 2003-2008 Fabio Mascarenhas, Kevin Hesterm and 2012 Megax";
public const string LuaInterfaceTrademark = "MIT license"; public const string NLuaTrademark = "MIT license";
public const string LuaInterfaceVersion = "2.0.4"; public const string NLuaVersion = "2.0.4";
public const string LuaInterfaceFileVersion = "2.0.4.0"; public const string NLuaFileVersion = "2.0.4.0";
} }
} }
\ No newline at end of file
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
*/ */
using System; using System;
namespace LuaInterface.Event namespace NLua.Event
{ {
#if USE_KOPILUA #if USE_KOPILUA
using LuaCore = KopiLua.Lua; using LuaCore = KopiLua.Lua;
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
*/ */
using System; using System;
namespace LuaInterface.Event namespace NLua.Event
{ {
/// <summary> /// <summary>
/// Event codes for lua hook function /// Event codes for lua hook function
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
*/ */
using System; using System;
namespace LuaInterface.Event namespace NLua.Event
{ {
/// <summary> /// <summary>
/// Event masks for lua hook callback /// Event masks for lua hook callback
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
*/ */
using System; using System;
namespace LuaInterface.Event namespace NLua.Event
{ {
public class HookExceptionEventArgs : EventArgs public class HookExceptionEventArgs : EventArgs
{ {
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
using System; using System;
using System.Runtime.Serialization; using System.Runtime.Serialization;
namespace LuaInterface.Exceptions namespace NLua.Exceptions
{ {
/// <summary> /// <summary>
/// Exceptions thrown by the Lua runtime /// Exceptions thrown by the Lua runtime
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
*/ */
using System; using System;
namespace LuaInterface.Exceptions namespace NLua.Exceptions
{ {
/// <summary> /// <summary>
/// Exceptions thrown by the Lua runtime because of errors in the script /// Exceptions thrown by the Lua runtime because of errors in the script
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
* *
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
*/ */
using System; using System;
namespace LuaInterface.Extensions namespace NLua.Extensions
{ {
/// <summary> /// <summary>
/// Some random extension stuff. /// Some random extension stuff.
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
*/ */
using System; using System;
namespace LuaInterface namespace NLua
{ {
#if USE_KOPILUA #if USE_KOPILUA
using LuaCore = KopiLua.Lua; using LuaCore = KopiLua.Lua;
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -31,9 +31,9 @@ using System.Reflection.Emit; ...@@ -31,9 +31,9 @@ using System.Reflection.Emit;
#endif #endif
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using LuaInterface.Method; using NLua.Method;
namespace LuaInterface namespace NLua
{ {
/* /*
* Dynamically generates new types from existing types and * Dynamically generates new types from existing types and
...@@ -70,11 +70,11 @@ namespace LuaInterface ...@@ -70,11 +70,11 @@ namespace LuaInterface
// Create an assembly name // Create an assembly name
assemblyName = new AssemblyName (); assemblyName = new AssemblyName ();
assemblyName.Name = "LuaInterface_generatedcode"; assemblyName.Name = "NLua_generatedcode";
// Create a new assembly with one module. // Create a new assembly with one module.
#if !MONOTOUCH #if !MONOTOUCH
newAssembly = Thread.GetDomain ().DefineDynamicAssembly (assemblyName, AssemblyBuilderAccess.Run); newAssembly = Thread.GetDomain ().DefineDynamicAssembly (assemblyName, AssemblyBuilderAccess.Run);
newModule = newAssembly.DefineDynamicModule ("LuaInterface_generatedcode"); newModule = newAssembly.DefineDynamicModule ("NLua_generatedcode");
#endif #endif
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment