forked from mia/Aegisub
843e71331f
Aegisub needs Lua built as C++ (for stack unwinding on errors). No one packages it like that, so at the moment we can't actually use systme packages for Lua. Fixes a bunch of memory leaks on Automation errors.
89 lines
3.6 KiB
XML
89 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup Label="Globals">
|
|
<ProjectGuid>{5391A8B1-9C70-4DC4-92AD-D3E34C6B803F}</ProjectGuid>
|
|
<RootNamespace>lua51</RootNamespace>
|
|
</PropertyGroup>
|
|
|
|
<!-- Aegisub project configuration -->
|
|
<PropertyGroup Label="AegisubConfiguration">
|
|
<AegisubProjectType>lib</AegisubProjectType>
|
|
<SrcDir>..\..\vendor\lua\src\</SrcDir>
|
|
</PropertyGroup>
|
|
<ImportGroup Label="PropertySheets">
|
|
<Import Project="$(MSBuildThisFileDirectory)..\aegisub.props" />
|
|
</ImportGroup>
|
|
|
|
<!-- Project specific configuration -->
|
|
<ItemDefinitionGroup>
|
|
<ClCompile>
|
|
<PreprocessorDefinitions>LUA_BUILD_AS_DLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
</ClCompile>
|
|
</ItemDefinitionGroup>
|
|
|
|
<!-- Source files -->
|
|
<ItemGroup>
|
|
<ClCompile Include="$(SrcDir)lapi.cpp" />
|
|
<ClCompile Include="$(SrcDir)lauxlib.cpp" />
|
|
<ClCompile Include="$(SrcDir)lbaselib.cpp" />
|
|
<ClCompile Include="$(SrcDir)lcode.cpp" />
|
|
<ClCompile Include="$(SrcDir)ldblib.cpp" />
|
|
<ClCompile Include="$(SrcDir)ldebug.cpp" />
|
|
<ClCompile Include="$(SrcDir)ldo.cpp" />
|
|
<ClCompile Include="$(SrcDir)ldump.cpp" />
|
|
<ClCompile Include="$(SrcDir)lfunc.cpp" />
|
|
<ClCompile Include="$(SrcDir)lgc.cpp" />
|
|
<ClCompile Include="$(SrcDir)linit.cpp" />
|
|
<ClCompile Include="$(SrcDir)liolib.cpp" />
|
|
<ClCompile Include="$(SrcDir)llex.cpp" />
|
|
<ClCompile Include="$(SrcDir)lmathlib.cpp" />
|
|
<ClCompile Include="$(SrcDir)lmem.cpp" />
|
|
<ClCompile Include="$(SrcDir)loadlib.cpp" />
|
|
<ClCompile Include="$(SrcDir)lobject.cpp" />
|
|
<ClCompile Include="$(SrcDir)lopcodes.cpp" />
|
|
<ClCompile Include="$(SrcDir)loslib.cpp" />
|
|
<ClCompile Include="$(SrcDir)lparser.cpp" />
|
|
<ClCompile Include="$(SrcDir)lstate.cpp" />
|
|
<ClCompile Include="$(SrcDir)lstring.cpp" />
|
|
<ClCompile Include="$(SrcDir)lstrlib.cpp" />
|
|
<ClCompile Include="$(SrcDir)ltable.cpp" />
|
|
<ClCompile Include="$(SrcDir)ltablib.cpp" />
|
|
<ClCompile Include="$(SrcDir)ltm.cpp" />
|
|
<ClCompile Include="$(SrcDir)lundump.cpp" />
|
|
<ClCompile Include="$(SrcDir)lvm.cpp" />
|
|
<ClCompile Include="$(SrcDir)lzio.cpp" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ClInclude Include="$(SrcDir)lapi.h" />
|
|
<ClInclude Include="$(SrcDir)lauxlib.h" />
|
|
<ClInclude Include="$(SrcDir)lcode.h" />
|
|
<ClInclude Include="$(SrcDir)ldebug.h" />
|
|
<ClInclude Include="$(SrcDir)ldo.h" />
|
|
<ClInclude Include="$(SrcDir)lfunc.h" />
|
|
<ClInclude Include="$(SrcDir)lgc.h" />
|
|
<ClInclude Include="$(SrcDir)llex.h" />
|
|
<ClInclude Include="$(SrcDir)llimits.h" />
|
|
<ClInclude Include="$(SrcDir)lmem.h" />
|
|
<ClInclude Include="$(SrcDir)lobject.h" />
|
|
<ClInclude Include="$(SrcDir)lopcodes.h" />
|
|
<ClInclude Include="$(SrcDir)lparser.h" />
|
|
<ClInclude Include="$(SrcDir)lstate.h" />
|
|
<ClInclude Include="$(SrcDir)lstring.h" />
|
|
<ClInclude Include="$(SrcDir)ltable.h" />
|
|
<ClInclude Include="$(SrcDir)ltm.h" />
|
|
<ClInclude Include="$(SrcDir)lua.h" />
|
|
<ClInclude Include="$(SrcDir)luaconf.h" />
|
|
<ClInclude Include="$(SrcDir)lualib.h" />
|
|
<ClInclude Include="$(SrcDir)lundump.h" />
|
|
<ClInclude Include="$(SrcDir)lvm.h" />
|
|
<ClInclude Include="$(SrcDir)lzio.h" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="CopyHeaders" BeforeTargets="Build">
|
|
<Copy
|
|
SourceFiles="$(SrcDir)lua.h;$(SrcDir)lualib.h;$(SrcDir)lauxlib.h;$(SrcDir)luaconf.h"
|
|
DestinationFolder="$(AegisubSourceBase)include"
|
|
SkipUnchangedFiles="true"
|
|
/>
|
|
</Target>
|
|
</Project>
|