"packages/KeraLua.1.0.6/lib/MonoAndroid/KeraLua.xml" did not exist on "0432ec9310e9cda077d9aaa33ca008bb924df3c6"
Commit 0893940d authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Fixed iOS build.

parent 4bb35292
...@@ -540,12 +540,16 @@ end ...@@ -540,12 +540,16 @@ end
int oldTop = LuaLib.LuaGetTop (luaState); int oldTop = LuaLib.LuaGetTop (luaState);
string[] path = fullPath.Split (new char[] { '.' }); string[] path = fullPath.Split (new char[] { '.' });
LuaLib.LuaGetGlobal (luaState, path [0]); LuaLib.LuaGetGlobal (luaState, path [0]);
returnValue = translator.GetObject (luaState, -1); returnValue = translator.GetObject (luaState, -1);
LuaBase dispose = null;
if (path.Length > 1) { if (path.Length > 1) {
dispose = returnValue as LuaBase;
string[] remainingPath = new string[path.Length - 1]; string[] remainingPath = new string[path.Length - 1];
Array.Copy (path, 1, remainingPath, 0, path.Length - 1); Array.Copy (path, 1, remainingPath, 0, path.Length - 1);
returnValue = GetObject (remainingPath); returnValue = GetObject (remainingPath);
if (dispose != null)
dispose.Dispose ();
} }
LuaLib.LuaSetTop (luaState, oldTop); LuaLib.LuaSetTop (luaState, oldTop);
......
...@@ -105,12 +105,11 @@ ...@@ -105,12 +105,11 @@
<Reference Include="monotouch" /> <Reference Include="monotouch" />
<Reference Include="MonoTouch.NUnitLite" /> <Reference Include="MonoTouch.NUnitLite" />
</ItemGroup> </ItemGroup>
<ItemGroup />
<ItemGroup> <ItemGroup>
<Folder Include="Resources\" /> <BundleResource Include="..\..\tests\test_32.luac">
<Folder Include="Icons\" /> <Link>Resources\test_32.luac</Link>
<Folder Include="LuaTests\" /> </BundleResource>
</ItemGroup>
<ItemGroup>
<None Include="Info.plist" /> <None Include="Info.plist" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
......
#!/bin/sh #!/bin/sh
cd Core/KeraLua cd Core/KeraLua
make -f Makefile.iOS make -f Makefile.iOS
xbuild KeraLua.sln /p:Configuration=Release
cd ../../ cd ../../
make -f Makefile.iOS run make -f Makefile.iOS run
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