Add wxWidgets project

This commit is contained in:
Thomas Goyne 2012-11-16 19:37:19 -08:00
parent b6c2cf887f
commit 39e642d20e
14 changed files with 448 additions and 92 deletions

View File

@ -62,6 +62,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{CEAEFC
.nuget\NuGet.targets = .nuget\NuGet.targets
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wxWidgets", "aegisub\build\wx\wxWidgets.vcxproj", "{0518D6C0-7BF6-4FD1-91FB-191BD10DB2AC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
@ -210,6 +212,14 @@ Global
{472212DF-99E8-4B73-9736-8500616D8A80}.Debug|x64.ActiveCfg = Debug|Win32
{472212DF-99E8-4B73-9736-8500616D8A80}.Release|Win32.ActiveCfg = Debug|Win32
{472212DF-99E8-4B73-9736-8500616D8A80}.Release|x64.ActiveCfg = Debug|Win32
{0518D6C0-7BF6-4FD1-91FB-191BD10DB2AC}.Debug|Win32.ActiveCfg = Debug|Win32
{0518D6C0-7BF6-4FD1-91FB-191BD10DB2AC}.Debug|Win32.Build.0 = Debug|Win32
{0518D6C0-7BF6-4FD1-91FB-191BD10DB2AC}.Debug|x64.ActiveCfg = Debug|x64
{0518D6C0-7BF6-4FD1-91FB-191BD10DB2AC}.Debug|x64.Build.0 = Debug|x64
{0518D6C0-7BF6-4FD1-91FB-191BD10DB2AC}.Release|Win32.ActiveCfg = Release|Win32
{0518D6C0-7BF6-4FD1-91FB-191BD10DB2AC}.Release|Win32.Build.0 = Release|Win32
{0518D6C0-7BF6-4FD1-91FB-191BD10DB2AC}.Release|x64.ActiveCfg = Release|x64
{0518D6C0-7BF6-4FD1-91FB-191BD10DB2AC}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -176,6 +176,9 @@
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<AdditionalLibraryDirectories>$(AegisubLibraryDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<!-- Add property pages -->

View File

@ -26,7 +26,6 @@
<!-- Aegisub project configuration -->
<PropertyGroup Label="AegisubConfiguration">
<AegisubProjectType>exe</AegisubProjectType>
<AegisubUseWxWidgets>true</AegisubUseWxWidgets>
<SrcDir>..\..\src\</SrcDir>
</PropertyGroup>
<ImportGroup Label="PropertySheets">
@ -87,6 +86,9 @@
<ProjectReference Include="..\universalchardet\universalchardet.vcxproj">
<Project>{7b56955d-5162-4698-aa5b-47484edc8783}</Project>
</ProjectReference>
<ProjectReference Include="..\wx\wxWidgets.vcxproj">
<Project>{0518d6c0-7bf6-4fd1-91fb-191bd10db2ac}</Project>
</ProjectReference>
</ItemGroup>
<!-- Source files -->
<ItemGroup>

View File

@ -148,28 +148,6 @@
Description="Root directory of a copy of msys with git installed. Only required if it is not on your PATH."
/>
<StringProperty
Subtype="folder"
Name="WxBasePath"
Category="Paths"
DisplayName="wxWidgets root"
Description="Root directory of the wxWidgets installation to use"
/>
<StringProperty
Subtype="folder"
Name="WxLibraryPath"
Category="Paths"
DisplayName="wxWidgets library path"
Description="Location of compiled wxWidgets library files. Defaults to $(WxBasePath)\lib32 or $(WxBasePath)\lib64."
/>
<StringProperty
Subtype="folder"
Name="WxIncludePath"
Category="Paths"
DisplayName="wxWidgets include path"
Description="Location of wxWidgets header files. Defaults to $(WxBasePath)\include"
/>
<StringProperty
Subtype="folder"
Name="CsriLibraryPath"
@ -249,6 +227,14 @@
Description="Location of libass source code."
/>
<StringProperty
Subtype="folder"
Name="WxSrcDir"
Category="Paths"
DisplayName="wxWidgets source path"
Description="Location of wxWidgets source code."
/>
<StringProperty
Subtype="folder"
Name="ZlibSrcDir"

View File

@ -51,7 +51,6 @@
<StartupLog>false</StartupLog>
<UpdateCheckerServer>updates.aegisub.org</UpdateCheckerServer>
<UpdateCheckerURL>/trunk</UpdateCheckerURL>
<WxBasePath>$(AegisubSourceBase)wxlib</WxBasePath>
<FfmsSrcDir>..\..\..\deps\ffms2</FfmsSrcDir>
<FfmpegSrcDir>..\..\..\deps\ffmpeg</FfmpegSrcDir>
@ -60,6 +59,7 @@
<FribidiSrcDir>..\..\..\deps\fribidi</FribidiSrcDir>
<FontconfigSrcDir>..\..\..\deps\fontconfig</FontconfigSrcDir>
<LibassSrcDir>..\..\..\deps\libass</LibassSrcDir>
<WxSrcDir>..\..\..\deps\wxWidgets</WxSrcDir>
<ZlibSrcDir>..\..\..\deps\zlib</ZlibSrcDir>
</PropertyGroup>

View File

@ -40,12 +40,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Label="LocalAppDataPlatform" />
<!-- If this comes before the Microsoft.Cpp.targets include the
AdditionalLibraryDirectories value gets cleared (but nothing else).
I'm not sure why. -->
<Import Project="$(MSBuildThisFileDirectory)wx.props" Condition="'$(AegisubUseWxWidgets)' == 'true'" />
<ImportGroup Label="Targets">
<Import Project="$(MSBuildThisFileDirectory)install.targets" />
</ImportGroup>
<ImportGroup Label="Targets">
<Import Project="$(MSBuildThisFileDirectory)install.targets" />
</ImportGroup>
</Project>

View File

@ -32,6 +32,7 @@ Aegisub Project http://www.aegisub.org/
<GitProject Include="git://anongit.freedesktop.org/fribidi/fribidi" />
<GitProject Include="git://git.sv.nongnu.org/freetype/freetype2.git" />
<GitProject Include="git://github.com/madler/zlib.git" />
<GitProject Include="git://github.com/wxWidgets/wxWidgets.git" />
<GitProject Include="git://source.ffmpeg.org/ffmpeg.git">
<!-- FFmpeg's build system manages to not work with Windows newlines, so
disable autocrlf even if the user has it enabled globally -->

View File

@ -27,7 +27,6 @@
<!-- Aegisub project configuration -->
<PropertyGroup Label="AegisubConfiguration">
<AegisubProjectType>lib</AegisubProjectType>
<AegisubUseWxWidgets>true</AegisubUseWxWidgets>
<SrcDir>..\..\src\libresrc\</SrcDir>
</PropertyGroup>
<ImportGroup Label="PropertySheets">
@ -66,4 +65,12 @@
<ItemGroup>
<ClInclude Include="$(SrcDir)libresrc.h" />
</ItemGroup>
</Project>
<ItemGroup>
<ProjectReference Include="..\respack\respack.vcxproj">
<Project>{08af2bcc-fcdd-4f0e-8b41-59a6e634f2e8}</Project>
</ProjectReference>
<ProjectReference Include="..\wx\wxWidgets.vcxproj">
<Project>{0518d6c0-7bf6-4fd1-91fb-191bd10db2ac}</Project>
</ProjectReference>
</ItemGroup>
</Project>

View File

@ -19,6 +19,9 @@
<PreprocessorDefinitions>WIN32;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(AegisubSourceBase)src\msvc;$(AegisubSourceBase)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<ResourceCompile>
<AdditionalIncludeDirectories>$(AegisubSourceBase)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ResourceCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>

View File

@ -7,7 +7,6 @@
<ItemGroup>
<ExecShellScript Include=".">
<CC>cl</CC>
<CPP>cl -E</CPP>
<CFLAGS>-nologo</CFLAGS>
<PATH>$(MsysBasePath)\bin;$(NativeExecutablePath)</PATH>
<INCLUDE>$(MSBuildProjectDirectory);$(AegisubSourceBase)\src\msvc;$(AegisubSourceBase)\include;$(IncludePath)</INCLUDE>

View File

@ -1,57 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_PropertySheetDisplayName>wxWidgets support</_PropertySheetDisplayName>
</PropertyGroup>
<PropertyGroup>
<!-- Some helper affixes -->
<WxLibDbgSuffix Condition="'$(Configuration)'=='Debug'">d</WxLibDbgSuffix>
<WxLibDbgSuffix Condition="'$(Configuration)'=='Release'"></WxLibDbgSuffix>
<!-- The derived paths are set here rather than the defaults as otherwise
the base path is expanded before it's overridden by the user value -->
<WxIncludePath Condition="'$(WxIncludePath)'==''">$(WxBasePath)\include</WxIncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(WxLibraryPath)'==''">
<WxLibraryPath Condition="'$(Platform)'=='Win32'">$(WxBasePath)\lib32</WxLibraryPath>
<WxLibraryPath Condition="'$(Platform)'=='x64'">$(WxBasePath)\lib64</WxLibraryPath>
</PropertyGroup>
<ItemDefinitionGroup>
<!-- Tell the compiler where to search for wx headers and libraries -->
<ClCompile>
<AdditionalIncludeDirectories>
$(WxLibraryPath)\mswu$(WxLibDbgSuffix);
$(WxIncludePath);
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
</ClCompile>
<ResourceCompile>
<AdditionalIncludeDirectories>$(WxIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ResourceCompile>
<Link>
<AdditionalLibraryDirectories>
$(WxLibraryPath);
%(AdditionalLibraryDirectories)
</AdditionalLibraryDirectories>
<!-- Tell the linker to use the appropriate wx libraries -->
<AdditionalDependencies>
wxbase29u$(WxLibDbgSuffix).lib;
wxbase29u$(WxLibDbgSuffix)_net.lib;
wxbase29u$(WxLibDbgSuffix)_xml.lib;
wxmsw29u$(WxLibDbgSuffix)_core.lib;
wxmsw29u$(WxLibDbgSuffix)_adv.lib;
wxmsw29u$(WxLibDbgSuffix)_gl.lib;
wxmsw29u$(WxLibDbgSuffix)_stc.lib;
wxscintilla$(WxLibDbgSuffix).lib;
wxzlib$(WxLibDbgSuffix).lib;
wxexpat$(WxLibDbgSuffix).lib;
wxregexu$(WxLibDbgSuffix).lib;
wxpng$(WxLibDbgSuffix).lib;
%(AdditionalDependencies)
</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
</Project>

View File

@ -0,0 +1,62 @@
#include "wx/version.h"
#include "wx/cpp.h"
#ifdef _DEBUG
#define wxSUFFIX_DEBUG "d"
#define wxSUFFIX d
#define wxCONFIGURATION Debug
#else
#define wxSUFFIX_DEBUG ""
#define wxSUFFIX
#define wxCONFIGURATION Release
#endif
#ifndef _M_X64
#define wxSETUPH_PATH wxCONCAT5(../../lib/Win32/, wxCONFIGURATION, /msw, wxSUFFIX, /wx/setup.h)
#else
#define wxSETUPH_PATH wxCONCAT5(../../lib/x64/, wxCONFIGURATION, /msw, wxSUFFIX, /wx/setup.h)
#endif
#define wxSETUPH_PATH_STR wxSTRINGIZE(wxSETUPH_PATH)
#include wxSETUPH_PATH_STR
#define wxSUFFIX_STR wxSTRINGIZE(wxSUFFIX)
#define wxSHORT_VERSION_STRING wxSTRINGIZE(wxMAJOR_VERSION) wxSTRINGIZE(wxMINOR_VERSION)
#define wxWX_LIB_NAME(name, subname) "wx" name wxSHORT_VERSION_STRING wxSUFFIX_STR subname
#define wxBASE_LIB_NAME(name) wxWX_LIB_NAME("base", "_" name)
#define wxMSW_LIB_NAME(name) wxWX_LIB_NAME("msw", "_" name)
#define wx3RD_PARTY_LIB_NAME(name) "wx" name wxSUFFIX_DEBUG
#define wx3RD_PARTY_LIB_NAME_U(name) "wx" name wxSUFFIX_STR
#pragma comment(lib, wxWX_LIB_NAME("base", ""))
#pragma comment(lib, wxBASE_LIB_NAME("net"))
#pragma comment(lib, wxBASE_LIB_NAME("xml"))
#pragma comment(lib, wx3RD_PARTY_LIB_NAME_U("regex"))
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("expat"))
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("jpeg"))
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("png"))
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("tiff"))
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("zlib"))
#pragma comment(lib, wxMSW_LIB_NAME("core"))
#pragma comment(lib, wxMSW_LIB_NAME("adv"))
#pragma comment(lib, wxMSW_LIB_NAME("html"))
#pragma comment(lib, wxMSW_LIB_NAME("gl"))
#pragma comment(lib, wxMSW_LIB_NAME("qa"))
#pragma comment(lib, wxMSW_LIB_NAME("propgrid"))
#pragma comment(lib, wxMSW_LIB_NAME("ribbon"))
#pragma comment(lib, wxMSW_LIB_NAME("richtext"))
#pragma comment(lib, wxMSW_LIB_NAME("stc"))
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("scintilla"))
#pragma comment(lib, "kernel32")
#pragma comment(lib, "user32")
#pragma comment(lib, "gdi32")
#pragma comment(lib, "comdlg32")
#pragma comment(lib, "winspool")
#pragma comment(lib, "winmm")
#pragma comment(lib, "shell32")
#pragma comment(lib, "comctl32")
#pragma comment(lib, "ole32")
#pragma comment(lib, "oleaut32")
#pragma comment(lib, "uuid")
#pragma comment(lib, "rpcrt4")
#pragma comment(lib, "advapi32")
#pragma comment(lib, "wsock32")

250
aegisub/build/wx/setup.h Normal file
View File

@ -0,0 +1,250 @@
#ifndef _WX_SETUP_H_
#define _WX_SETUP_H_
#define wxUSE_GUI 1
#define WXWIN_COMPATIBILITY_2_4 0
#define WXWIN_COMPATIBILITY_2_6 0
#define WXWIN_COMPATIBILITY_2_8 0
#define wxDIALOG_UNIT_COMPATIBILITY 0
#define wxUSE_ON_FATAL_EXCEPTION 1
#define wxUSE_STACKWALKER 1
#define wxUSE_DEBUGREPORT 1
#define wxUSE_DEBUG_CONTEXT 0
#define wxUSE_MEMORY_TRACING 0
#define wxUSE_GLOBAL_MEMORY_OPERATORS 0
#define wxUSE_DEBUG_NEW_ALWAYS 0
#define wxUSE_UNICODE 1
#define wxUSE_WCHAR_T 1
#define wxUSE_EXCEPTIONS 1
#define wxUSE_EXTENDED_RTTI 0
#define wxUSE_STL 0
#define wxUSE_LOG 1
#define wxUSE_LOGWINDOW 1
#define wxUSE_LOGGUI 1
#define wxUSE_LOG_DIALOG 1
#define wxUSE_CMDLINE_PARSER 0
#define wxUSE_THREADS 1
#define wxUSE_STREAMS 1
#define wxUSE_STD_IOSTREAM 1
#define wxUSE_STD_STRING 1
#define wxUSE_PRINTF_POS_PARAMS 1
#define wxUSE_LONGLONG 1
#define wxUSE_BASE64 0
#define wxUSE_CONSOLE_EVENTLOOP 1
#define wxUSE_FILE 1
#define wxUSE_FFILE 1
#define wxUSE_FSVOLUME 0
#define wxUSE_STDPATHS 1
#define wxUSE_TEXTBUFFER 1
#define wxUSE_TEXTFILE 1
#define wxUSE_INTL 1
#define wxUSE_XLOCALE 1
#define wxUSE_DATETIME 1
#define wxUSE_TIMER 1
#define wxUSE_STOPWATCH 1
#define wxUSE_FSWATCHER 0
#define wxUSE_CONFIG 0
#define wxUSE_CONFIG_NATIVE 0
#define wxUSE_DIALUP_MANAGER 0
#define wxUSE_DYNLIB_CLASS 1
#define wxUSE_DYNAMIC_LOADER 1
#define wxUSE_SOCKETS 1
#define wxUSE_IPV6 0
#define wxUSE_FILESYSTEM 1
#define wxUSE_FS_ZIP 1
#define wxUSE_FS_ARCHIVE 1
#define wxUSE_FS_INET 0
#define wxUSE_ARCHIVE_STREAMS 1
#define wxUSE_ZIPSTREAM 1
#define wxUSE_TARSTREAM 0
#define wxUSE_ZLIB 1
#define wxUSE_APPLE_IEEE 0
#define wxUSE_JOYSTICK 0
#define wxUSE_FONTENUM 1
#define wxUSE_FONTMAP 1
#define wxUSE_MIMETYPE 1
#define wxUSE_PROTOCOL 1
#define wxUSE_PROTOCOL_FILE 0
#define wxUSE_PROTOCOL_FTP 0
#define wxUSE_PROTOCOL_HTTP 1
#define wxUSE_URL 0
#define wxUSE_URL_NATIVE 0
#define wxUSE_VARIANT 1
#define wxUSE_ANY 1
#define wxUSE_REGEX 1
#define wxUSE_SYSTEM_OPTIONS 1
#define wxUSE_SOUND 0
#define wxUSE_MEDIACTRL 0
#define wxUSE_GSTREAMER 0
#define wxUSE_XRC 0
#define wxUSE_XML 1
#define wxUSE_AUI 0
#define wxUSE_RIBBON 0
#define wxUSE_PROPGRID 0
#define wxUSE_STC 1
#define wxUSE_GRAPHICS_CONTEXT 1
#define wxUSE_CONTROLS 1
#define wxUSE_POPUPWIN 1
#define wxUSE_TIPWINDOW 0
#define wxUSE_ANIMATIONCTRL 1
#define wxUSE_BUTTON 1
#define wxUSE_BMPBUTTON 1
#define wxUSE_CALENDARCTRL 1
#define wxUSE_CHECKBOX 1
#define wxUSE_CHECKLISTBOX 1
#define wxUSE_CHOICE 1
#define wxUSE_COLLPANE 1
#define wxUSE_COLOURPICKERCTRL 1
#define wxUSE_COMBOBOX 1
#define wxUSE_DATAVIEWCTRL 1
#define wxUSE_DATEPICKCTRL 1
#define wxUSE_DIRPICKERCTRL 1
#define wxUSE_EDITABLELISTBOX 1
#define wxUSE_FILECTRL 1
#define wxUSE_FILEPICKERCTRL 1
#define wxUSE_FONTPICKERCTRL 1
#define wxUSE_GAUGE 1
#define wxUSE_HEADERCTRL 1
#define wxUSE_HYPERLINKCTRL 1
#define wxUSE_LISTBOX 1
#define wxUSE_LISTCTRL 1
#define wxUSE_RADIOBOX 1
#define wxUSE_RADIOBTN 1
#define wxUSE_SCROLLBAR 1
#define wxUSE_SEARCHCTRL 1
#define wxUSE_SLIDER 1
#define wxUSE_SPINBTN 1
#define wxUSE_SPINCTRL 1
#define wxUSE_STATBOX 1
#define wxUSE_STATLINE 1
#define wxUSE_STATTEXT 1
#define wxUSE_STATBMP 1
#define wxUSE_TEXTCTRL 1
#define wxUSE_TOGGLEBTN 1
#define wxUSE_TREECTRL 1
#define wxUSE_STATUSBAR 1
#define wxUSE_NATIVE_STATUSBAR 1
#define wxUSE_TOOLBAR 1
#define wxUSE_TOOLBAR_NATIVE 1
#define wxUSE_NOTEBOOK 1
#define wxUSE_LISTBOOK 1
#define wxUSE_CHOICEBOOK 1
#define wxUSE_TREEBOOK 1
#define wxUSE_TOOLBOOK 1
#define wxUSE_TASKBARICON 0
#define wxUSE_TAB_DIALOG 0
#define wxUSE_GRID 1
#define wxUSE_MINIFRAME 0
#define wxUSE_COMBOCTRL 1
#define wxUSE_ODCOMBOBOX 1
#define wxUSE_BITMAPCOMBOBOX 0
#define wxUSE_REARRANGECTRL 1
#define wxUSE_ACCEL 1
#define wxUSE_HOTKEY 1
#define wxUSE_CARET 1
#define wxUSE_DISPLAY 1
#define wxUSE_GEOMETRY 1
#define wxUSE_IMAGLIST 1
#define wxUSE_INFOBAR 1
#define wxUSE_MENUS 1
#define wxUSE_NOTIFICATION_MESSAGE 1
#define wxUSE_SASH 1
#define wxUSE_SPLITTER 1
#define wxUSE_TOOLTIPS 1
#define wxUSE_VALIDATORS 1
#define wxUSE_COMMON_DIALOGS 1
#define wxUSE_BUSYINFO 1
#define wxUSE_CHOICEDLG 1
#define wxUSE_COLOURDLG 1
#define wxUSE_DIRDLG 1
#define wxUSE_FILEDLG 1
#define wxUSE_FINDREPLDLG 0
#define wxUSE_FONTDLG 1
#define wxUSE_MSGDLG 1
#define wxUSE_PROGRESSDLG 0
#define wxUSE_STARTUP_TIPS 1
#define wxUSE_TEXTDLG 1
#define wxUSE_NUMBERDLG 1
#define wxUSE_SPLASH 0
#define wxUSE_WIZARDDLG 0
#define wxUSE_ABOUTDLG 1
#define wxUSE_METAFILE 0
#define wxUSE_ENH_METAFILE 0
#define wxUSE_WIN_METAFILES_ALWAYS 0
#define wxUSE_MDI 0
#define wxUSE_DOC_VIEW_ARCHITECTURE 0
#define wxUSE_MDI_ARCHITECTURE 0
#define wxUSE_PRINTING_ARCHITECTURE 0
#define wxUSE_HTML 1
#define wxUSE_GLCANVAS 1
#define wxUSE_RICHTEXT 1
#define wxUSE_CLIPBOARD 1
#define wxUSE_DATAOBJ 1
#define wxUSE_DRAG_AND_DROP 1
#define wxUSE_ACCESSIBILITY 0
#define wxUSE_SNGLINST_CHECKER 1
#define wxUSE_DRAGIMAGE 1
#define wxUSE_IPC 0
#define wxUSE_HELP 0
#define wxUSE_MS_HTML_HELP 0
#define wxUSE_WXHTML_HELP 0
#define wxUSE_RESOURCES 0
#define wxUSE_CONSTRAINTS 0
#define wxUSE_SPLINES 0
#define wxUSE_MOUSEWHEEL 1
#define wxUSE_POSTSCRIPT 0
#define wxUSE_AFM_FOR_POSTSCRIPT 0
#define wxUSE_SVG 0
#define wxODBC_FWD_ONLY_CURSORS 1
#define wxODBC_BACKWARD_COMPATABILITY 0
#define wxUSE_IOSTREAMH 0
#define wxUSE_IMAGE 1
#define wxUSE_LIBPNG 1
#define wxUSE_LIBJPEG 0
#define wxUSE_LIBTIFF 0
#define wxUSE_TGA 0
#define wxUSE_GIF 0
#define wxUSE_PNM 0
#define wxUSE_PCX 0
#define wxUSE_IFF 0
#define wxUSE_XPM 0
#define wxUSE_ICO_CUR 1
#define wxUSE_PALETTE 1
#define wxUSE_ALL_THEMES 1
#define wxUSE_UNICODE_MSLU 0
#define wxUSE_MFC 0
#define wxUSE_OLE 1
#define wxUSE_OLE_AUTOMATION 0
#define wxUSE_ACTIVEX 0
#define wxUSE_DC_CACHEING 1
#define wxUSE_DIB_FOR_BITMAP 0
#define wxUSE_WXDIB 1
#define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 0
#define wxUSE_REGKEY 1
#define wxUSE_RICHEDIT 1
#define wxUSE_RICHEDIT2 1
#define wxUSE_OWNER_DRAWN 1
#define wxUSE_TASKBARICON_BALLOONS 0
#define wxUSE_UXTHEME 1
#define wxUSE_UXTHEME_AUTO 1
#define wxUSE_INKEDIT 0
#define wxUSE_INICONF 0
#define wxUSE_DATEPICKCTRL_GENERIC 0
#define wxUSE_CRASHREPORT 1
#define wxUSE_AUTOID_MANAGEMENT 1
#define wxUSE_FILE_HISTORY 0
#define wxUSE_UIACTIONSIMULATOR 0
#define wxUSE_CAIRO 0
#define wxUSE_COMMANDLINKBUTTON 0
#define wxUSE_RICHMSGDLG 0
#define wxUSE_STD_CONTAINERS 1
#define wxUSE_STD_STRING_CONV_IN_WXSTRING 0
#define wxUSE_ARTPROVIDER_STD 0
#define wxUSE_ARTPROVIDER_TANGO 0
#define wxUSE_DC_TRANSFORM_MATRIX 0
#define wxUSE_MARKUP 0
#define wxUSE_TREELISTCTRL 1
#define wxUSE_TIMEPICKCTRL 1
#define wxUSE_WEBVIEW 0
#define wxUSE_RICHTOOLTIP 0
#define wxUSE_COMPILER_TLS 1
#endif

View File

@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- VC boilerplate -->
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{0518D6C0-7BF6-4FD1-91FB-191BD10DB2AC}</ProjectGuid>
<Keyword>MakeFileProj</Keyword>
<ConfigurationType>Makefile</ConfigurationType>
</PropertyGroup>
<!-- Aegisub project configuration -->
<ImportGroup Label="PropertySheets">
<Import Project="$(MSBuildThisFileDirectory)..\aegisub.props" />
</ImportGroup>
<PropertyGroup Label="wx">
<WxTargetCpu Condition="$(Platform) == 'Win32'">X86</WxTargetCpu>
<WxTargetCpu Condition="$(Platform) == 'x64'">X64</WxTargetCpu>
<WxBuild Condition="$(Configuration) == 'Debug'">debug</WxBuild>
<WxBuild Condition="$(Configuration) == 'Release'">release</WxBuild>
<NMakeArgs>LIBDIRNAME=$(AegisubLibraryDir) OBJS=$(AegisubObjectDir) SHARED=0 UNICODE=0 USE_OPENGL=1 VENDOR=aegisub TARGET_CPU=$(WxTargetCpu) BUILD=$(WxBuild)</NMakeArgs>
<LibraryNameSuffix Condition="$(Configuration) == 'Debug'">d</LibraryNameSuffix>
</PropertyGroup>
<ItemGroup>
<WxHeader Include="$(WxSrcDir)\src\png\png.h" />
<WxHeader Include="$(WxSrcDir)\src\png\pngconf.h" />
<WxHeader Include="$(WxSrcDir)\include\**\*.h" />
<WxHeader Include="$(WxSrcDir)\include\**\*.rc" />
<WxHeader Include="$(WxSrcDir)\include\**\*.cur" />
<WxHeader Include="$(WxSrcDir)\include\**\*.bmp" />
<WxHeader Include="$(WxSrcDir)\include\**\*.ico" />
<WxSource Include="$(WxSrcDir)\src\**\*.cpp" />
<WxSource Include="$(WxSrcDir)\src\**\*.cxx" />
<WxSource Include="$(WxSrcDir)\src\**\*.c" />
<!-- Specifically list one of them to ensure there's an output listed for
a clean build -->
<WxLibrary Include="$(AegisubLibraryDir)\wxbase29$(LibraryNameSuffix).lib" />
<WxLibrary Include="$(AegisubLibraryDir)\wx*.lib" />
</ItemGroup>
<Target Name="Build"
Inputs="@(WxHeader);@(WxSource)"
Outputs="@(WxLibrary)"
>
<Copy
SourceFiles="setup.h"
DestinationFolder="$(WxSrcDir)\include\wx\msw"
SkipUnchangedFiles="true"
/>
<Exec
Command="nmake -f makefile.vc $(NMakeArgs)"
WorkingDirectory="$(WxSrcDir)\build\msw"
/>
<Copy
SourceFiles="@(WxHeader)"
DestinationFolder="$(AegisubSourceBase)include\%(RecursiveDir)"
SkipUnchangedFiles="true"
/>
<Copy
SourceFiles="setup-installed.h"
DestinationFiles="$(AegisubSourceBase)include\wx\setup.h"
SkipUnchangedFiles="true"
/>
</Target>
<Target Name="Clean">
<RemoveDir Directories="$(AegisubObjectDir)" ContinueOnError="WarnAndContinue" />
</Target>
<Target Name="Rebuild">
<CallTarget Targets="Clean;Build" />
</Target>
</Project>