FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

lua: Build on win32 · netdebug/hexchat@fb7f27f · GitHub

forked from hexchat/hexchat

Commit fb7f27f

Browse files
committed
lua: Build on win32
1 parent 2e2b895 commit fb7f27f

6 files changed

Lines changed: 81 additions & 0 deletions

File tree

‎plugins/lua/lua.vcxproj‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup Label="Configuration">
4+
<PlatformToolset>v140</PlatformToolset>
5+
<ConfigurationType>DynamicLibrary</ConfigurationType>
6+
</PropertyGroup>
7+
<ItemGroup Label="ProjectConfigurations">
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Release|x64">
13+
<Configuration>Release</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
</ItemGroup>
17+
<PropertyGroup Label="Globals">
18+
<ProjectGuid>{4C0F3940-2EEE-4646-82F7-6CE75B9A72F4}</ProjectGuid>
19+
<Keyword>Win32Proj</Keyword>
20+
<RootNamespace>lua</RootNamespace>
21+
</PropertyGroup>
22+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
23+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
24+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
25+
<Import Project="..\..\win32\hexchat.props" />
26+
<PropertyGroup>
27+
<TargetName>$(LuaOutput)</TargetName>
28+
<OutDir>$(HexChatRel)plugins\</OutDir>
29+
</PropertyGroup>
30+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
31+
<ClCompile>
32+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;$(OwnFlags);%(PreprocessorDefinitions)</PreprocessorDefinitions>
33+
<AdditionalIncludeDirectories>$(Glib);$(LuaInclude);..\..\src\common;$(HexChatLib);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
34+
</ClCompile>
35+
<Link>
36+
<AdditionalDependencies>"$(LuaLib).lib";$(DepLibs);%(AdditionalDependencies)</AdditionalDependencies>
37+
<AdditionalLibraryDirectories>$(DepsRoot)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
38+
</Link>
39+
</ItemDefinitionGroup>
40+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
41+
<ClCompile>
42+
<PreprocessorDefinitions>WIN32;_WIN64;_AMD64_;NDEBUG;_WINDOWS;_USRDLL;$(OwnFlags);%(PreprocessorDefinitions)</PreprocessorDefinitions>
43+
<AdditionalIncludeDirectories>$(Glib);$(LuaInclude);..\..\src\common;$(HexChatLib);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
44+
</ClCompile>
45+
<Link>
46+
<AdditionalDependencies>"$(LuaLib).lib";$(DepLibs);%(AdditionalDependencies)</AdditionalDependencies>
47+
<AdditionalLibraryDirectories>$(DepsRoot)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
48+
</Link>
49+
</ItemDefinitionGroup>
50+
<ItemGroup>
51+
<ClCompile Include="lua.c" />
52+
</ItemGroup>
53+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
54+
</Project>

‎plugins/lua/lua.vcxproj.filters‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{f4eaf231-f095-42d3-8427-b2b6006cacb1}</UniqueIdentifier>
6+
</Filter>
7+
<Filter Include="Resource Files">
8+
<UniqueIdentifier>{0166c0f9-7968-4a09-9ef5-a5179c7746eb}</UniqueIdentifier>
9+
</Filter>
10+
</ItemGroup>
11+
<ItemGroup>
12+
<ClCompile Include="lua.c" />
13+
</ItemGroup>
14+
</Project>

‎src/common/plugin.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ plugin_auto_load (session *sess)
455455
for_files (lib_dir, "hcdoat.dll", plugin_auto_load_cb);
456456
for_files (lib_dir, "hcexec.dll", plugin_auto_load_cb);
457457
for_files (lib_dir, "hcfishlim.dll", plugin_auto_load_cb);
458+
for_files(lib_dir, "hclua.dll", plugin_auto_load_cb);
458459
for_files (lib_dir, "hcmpcinfo.dll", plugin_auto_load_cb);
459460
for_files (lib_dir, "hcperl.dll", plugin_auto_load_cb);
460461
for_files (lib_dir, "hcpython2.dll", plugin_auto_load_cb);

‎win32/hexchat.props‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
<Python3Path>$(YourPython3Path)\$(PlatformName)</Python3Path>
3030
<Python3Lib>python35</Python3Lib>
3131
<Python3Output>hcpython3</Python3Output>
32+
<LuaInclude>$(DepsRoot)\include\luajit-2.0</LuaInclude>
33+
<LuaOutput>hclua</LuaOutput>
34+
<LuaLib>lua51</LuaLib>
3235
<Glib>$(DepsRoot)\include\glib-2.0;$(DepsRoot)\lib\glib-2.0\include;$(DepsRoot)\include\libxml2</Glib>
3336
<Gtk>$(DepsRoot)\include\gtk-2.0;$(DepsRoot)\lib\gtk-2.0\include;$(DepsRoot)\include\atk-1.0;$(DepsRoot)\include\cairo;$(DepsRoot)\include\pango-1.0;$(DepsRoot)\include\gdk-pixbuf-2.0</Gtk>
3437
<DepLibs>gtk-win32-2.0.lib;gdk-win32-2.0.lib;atk-1.0.lib;gio-2.0.lib;gdk_pixbuf-2.0.lib;pangowin32-1.0.lib;pangocairo-1.0.lib;pango-1.0.lib;cairo.lib;gobject-2.0.lib;gmodule-2.0.lib;glib-2.0.lib;libintl.lib;libxml2.lib;libeay32.lib;ssleay32.lib;wininet.lib;winmm.lib;ws2_32.lib</DepLibs>

‎win32/hexchat.sln‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libenchant_win8", "..\src\l
131131
{87554B59-006C-4D94-9714-897B27067BA3} = {87554B59-006C-4D94-9714-897B27067BA3}
132132
EndProjectSection
133133
EndProject
134+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lua", "..\plugins\lua\lua.vcxproj", "{4C0F3940-2EEE-4646-82F7-6CE75B9A72F4}"
135+
EndProject
134136
Global
135137
GlobalSection(SolutionConfigurationPlatforms) = preSolution
136138
Release|Win32 = Release|Win32
@@ -221,6 +223,10 @@ Global
221223
{BF0EBC16-68AD-4CD1-864C-5B56836EBE2A}.Release|Win32.Build.0 = Release|Win32
222224
{BF0EBC16-68AD-4CD1-864C-5B56836EBE2A}.Release|x64.ActiveCfg = Release|x64
223225
{BF0EBC16-68AD-4CD1-864C-5B56836EBE2A}.Release|x64.Build.0 = Release|x64
226+
{4C0F3940-2EEE-4646-82F7-6CE75B9A72F4}.Release|Win32.ActiveCfg = Release|Win32
227+
{4C0F3940-2EEE-4646-82F7-6CE75B9A72F4}.Release|Win32.Build.0 = Release|Win32
228+
{4C0F3940-2EEE-4646-82F7-6CE75B9A72F4}.Release|x64.ActiveCfg = Release|x64
229+
{4C0F3940-2EEE-4646-82F7-6CE75B9A72F4}.Release|x64.Build.0 = Release|x64
224230
EndGlobalSection
225231
GlobalSection(SolutionProperties) = preSolution
226232
HideSolutionNode = FALSE
@@ -247,5 +253,6 @@ Global
247253
{C2321A03-0BA7-45B3-8740-ABD82B36B0BF} = {D237DA6B-BD5F-46C0-8BEA-50E9A1340240}
248254
{C53145CC-D021-40C9-B97C-0249AB9A43C9} = {561126F4-FA18-45FC-A2BF-8F858F161D6D}
249255
{BF0EBC16-68AD-4CD1-864C-5B56836EBE2A} = {021EC1D0-FF67-4700-9AB2-EAABF1159C09}
256+
{4C0F3940-2EEE-4646-82F7-6CE75B9A72F4} = {D237DA6B-BD5F-46C0-8BEA-50E9A1340240}
250257
EndGlobalSection
251258
EndGlobal

‎win32/installer/hexchat.iss.tt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Name: "plugins\sysinfo"; Description: "SysInfo"; Types: custom; Flags: disableno
7272
Name: "plugins\upd"; Description: "Update Checker"; Types: normal custom; Flags: disablenouninstallwarning
7373
Name: "plugins\winamp"; Description: "Winamp"; Types: custom; Flags: disablenouninstallwarning
7474
Name: "langs"; Description: "Language Interfaces"; Types: custom; Flags: disablenouninstallwarning
75+
Name: "langs\lua"; Description: "Lua"; Types: normal custom; Flags: disablenouninstallwarning
7576
Name: "langs\perl"; Description: "Perl (requires Perl 5.20)"; Types: custom; Flags: disablenouninstallwarning
7677
Name: "langs\python"; Description: "Python Interface"; Types: custom; Flags: disablenouninstallwarning
7778
Name: "langs\python\python2"; Description: "Python (requires Python 2.7)"; Types: custom; Flags: disablenouninstallwarning exclusive
@@ -171,6 +172,7 @@ Source: "plugins\hcsysinfo.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion;
171172
Source: "plugins\hcpython2.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\python\python2
172173
Source: "plugins\hcpython3.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\python\python3
173174
Source: "plugins\hcperl.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\perl
175+
Source: "plugins\hclua.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\lua
174176

175177
Source: "hexchat.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
176178
Source: "hexchat-text.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: xctext

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL