2007-12-31 07:46:22 +01:00
|
|
|
// Copyright (c) 2007, Rodrigo Braz Monteiro
|
|
|
|
// All rights reserved.
|
|
|
|
//
|
|
|
|
// Redistribution and use in source and binary forms, with or without
|
|
|
|
// modification, are permitted provided that the following conditions are met:
|
|
|
|
//
|
|
|
|
// * Redistributions of source code must retain the above copyright notice,
|
|
|
|
// this list of conditions and the following disclaimer.
|
|
|
|
// * Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
// this list of conditions and the following disclaimer in the documentation
|
|
|
|
// and/or other materials provided with the distribution.
|
|
|
|
// * Neither the name of the Aegisub Group nor the names of its contributors
|
|
|
|
// may be used to endorse or promote products derived from this software
|
|
|
|
// without specific prior written permission.
|
|
|
|
//
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
|
|
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
// POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
//
|
2009-07-29 07:43:02 +02:00
|
|
|
// Aegisub Project http://www.aegisub.org/
|
2007-12-31 07:46:22 +01:00
|
|
|
//
|
2009-07-29 07:43:02 +02:00
|
|
|
// $Id$
|
|
|
|
|
|
|
|
/// @file config/config_windows0.h
|
|
|
|
/// @brief Base configuration for Windows builds, to be copied to config_windows.h and edited by the developer
|
|
|
|
/// @ingroup build
|
|
|
|
///
|
2007-12-31 07:46:22 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2008-01-10 22:27:53 +01:00
|
|
|
// Build credit: Set this to a string with your name as you want it to appear on the program
|
2008-01-19 18:39:50 +01:00
|
|
|
#ifndef BUILD_CREDIT
|
2008-01-10 22:27:53 +01:00
|
|
|
#define BUILD_CREDIT "Anonymous"
|
2008-01-19 18:39:50 +01:00
|
|
|
#endif
|
2008-01-10 22:27:53 +01:00
|
|
|
|
2008-07-03 03:56:26 +02:00
|
|
|
// Endianness: We don't support any Windows version that runs on big endian
|
|
|
|
#define HAVE_LITTLE_ENDIAN
|
|
|
|
#undef HAVE_BIG_ENDIAN
|
|
|
|
|
2008-01-10 22:13:50 +01:00
|
|
|
////////////// HIGH PRIORITY /////////////
|
|
|
|
|
2008-03-05 00:17:07 +01:00
|
|
|
// Enable Automation 4 Lua
|
|
|
|
// Requires: Lua 5.1 (in repository)
|
2009-01-04 07:42:49 +01:00
|
|
|
#define WITH_AUTO4_LUA
|
2008-03-05 00:17:07 +01:00
|
|
|
|
2007-12-31 07:46:22 +01:00
|
|
|
// Enable DirectSound audio player
|
2008-01-10 22:13:50 +01:00
|
|
|
// Requires: DirectX SDK
|
2009-03-14 21:52:01 +01:00
|
|
|
#define WITH_DIRECTSOUND
|
2012-01-11 21:03:46 +01:00
|
|
|
#ifdef WITH_DIRECTSOUND
|
|
|
|
#pragma comment(lib, "dsound.lib")
|
|
|
|
#pragma comment(lib, "dxguid.lib")
|
|
|
|
#endif
|
2007-12-31 07:46:22 +01:00
|
|
|
|
2008-01-22 03:54:16 +01:00
|
|
|
// Enable Avisynth
|
2012-01-11 21:03:46 +01:00
|
|
|
// Requires: nothing (just the avisynth dlls at runtime)
|
2009-01-04 07:42:49 +01:00
|
|
|
#define WITH_AVISYNTH
|
2008-01-22 03:54:16 +01:00
|
|
|
|
|
|
|
|
2012-01-11 21:03:46 +01:00
|
|
|
// Enable FFMS2 video and audio providers
|
|
|
|
// Requires: FFMS2 SDK
|
2011-12-22 22:25:49 +01:00
|
|
|
//#define WITH_FFMS2
|
2012-01-11 21:03:46 +01:00
|
|
|
#ifdef WITH_FFMS2
|
|
|
|
#pragma comment(lib, "ffms2.lib")
|
|
|
|
#endif
|
2009-07-16 21:08:40 +02:00
|
|
|
|
2012-01-11 21:03:46 +01:00
|
|
|
///////////// MEDIUM PRIORITY ////////////
|
2009-07-16 21:08:40 +02:00
|
|
|
|
2012-01-11 21:03:46 +01:00
|
|
|
// Enable FreeType2 font lister for the fonts collector
|
|
|
|
// Make sure the version numbers are correct, as the library names change
|
|
|
|
// Requires: FreeType2
|
|
|
|
#define WITH_FREETYPE2
|
|
|
|
#ifdef WITH_FREETYPE2
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#pragma comment(lib, "freetype235_D.lib")
|
|
|
|
#else
|
|
|
|
#pragma comment(lib, "freetype235.lib")
|
|
|
|
#endif
|
2009-07-16 21:08:40 +02:00
|
|
|
|
2008-01-17 02:45:42 +01:00
|
|
|
|
2007-12-31 07:46:22 +01:00
|
|
|
// Enable FreeType2 font lister for the fonts collector
|
2008-01-11 01:18:15 +01:00
|
|
|
// If you're on Visual Studio, also uncomment the library names and make sure they match the files that you have
|
2007-12-31 07:46:22 +01:00
|
|
|
// Requires: FreeType2
|
2009-03-14 21:52:01 +01:00
|
|
|
#define WITH_FREETYPE2
|
|
|
|
#define FT2_LIB_RELEASE "freetype235.lib"
|
|
|
|
#define FT2_LIB_DEBUG "freetype235_D.lib"
|
2007-12-31 07:46:22 +01:00
|
|
|
|
|
|
|
|
2008-01-10 22:13:50 +01:00
|
|
|
// Enable CSRI, required for styles previews in the style editor and some video providers
|
2008-01-11 01:18:15 +01:00
|
|
|
// Requires: csri (in repository)
|
2009-01-04 07:42:49 +01:00
|
|
|
#define WITH_CSRI
|
2008-01-10 22:13:50 +01:00
|
|
|
|
|
|
|
|
2007-12-31 07:46:22 +01:00
|
|
|
// Enable Hunspell-based spellchecker
|
2008-01-13 07:08:45 +01:00
|
|
|
// Requires: hunspell (in repository for Win32)
|
2009-03-14 21:52:01 +01:00
|
|
|
#define WITH_HUNSPELL
|
2007-12-31 07:46:22 +01:00
|
|
|
|
|
|
|
|
2010-12-08 04:36:10 +01:00
|
|
|
// Use FFTW instead of shipped FFT code
|
|
|
|
// FFTW <http://fftw.org/> is a very fast library for computing the discrete fourier transform, but is a bit
|
|
|
|
// tricky to get working on Windows, and has the additional problem of being GPL licensed.
|
|
|
|
// Enable this option to use FFTW to get faster rendering of the audio spectrogram
|
2011-12-22 22:25:49 +01:00
|
|
|
//#define WITH_FFTW3
|
2012-01-11 21:03:46 +01:00
|
|
|
#ifdef WITH_FFTW3
|
|
|
|
#pragma comment(lib,libfftw.lib)
|
|
|
|
#endif
|
2010-06-05 22:16:30 +02:00
|
|
|
// Specify tags the update checker accepts
|
|
|
|
// See <http://devel.aegisub.org/wiki/Technical/UpdateChecker> for details on tags.
|
|
|
|
// Depending on who will be using your build, you may or may not want to have the
|
|
|
|
// "source" tag in here. If the string is empty, the update checker will reject any
|
|
|
|
// update offered.
|
|
|
|
#if defined(_M_IX86)
|
|
|
|
# define UPDATE_CHECKER_ACCEPT_TAGS "windows source"
|
|
|
|
#elif defined(_M_X64)
|
|
|
|
# define UPDATE_CHECKER_ACCEPT_TAGS "win64 source"
|
|
|
|
#endif
|
|
|
|
|
2012-06-21 04:09:40 +02:00
|
|
|
// Where the update checker should look for updates
|
|
|
|
#define UPDATE_CHECKER_SERVER "updates.aegisub.org"
|
|
|
|
#define UPDATE_CHECKER_BASE_URL "/trunk"
|
2008-01-17 02:45:42 +01:00
|
|
|
|
|
|
|
///////////// NOT RECOMMENDED /////////////
|
|
|
|
|
2007-12-31 07:46:22 +01:00
|
|
|
// Enable FontConfig
|
|
|
|
// Requires: fontconfig
|
|
|
|
//#define WITH_FONTCONFIG
|
2012-01-11 21:03:46 +01:00
|
|
|
#ifdef WITH_FONTCONFIG
|
|
|
|
#pragma comment(lib,"libfontconfig.lib")
|
|
|
|
#endif
|
2007-12-31 07:46:22 +01:00
|
|
|
|
|
|
|
// Enable libass
|
|
|
|
// Requires: libass
|
2008-01-01 23:42:29 +01:00
|
|
|
//#define WITH_LIBASS
|
2012-01-11 21:03:46 +01:00
|
|
|
#ifdef WITH_LIBASS
|
|
|
|
#pragma comment(lib, "libass.lib")
|
|
|
|
#endif
|
2008-01-01 23:42:29 +01:00
|
|
|
|
2008-01-21 21:57:20 +01:00
|
|
|
// Enable PortAudio audio player
|
2009-04-17 21:44:07 +02:00
|
|
|
// Requires PortAudio release 19
|
2009-08-04 23:17:33 +02:00
|
|
|
//#define WITH_PORTAUDIO
|
2012-01-11 21:03:46 +01:00
|
|
|
#ifdef WITH_PORTAUDIO
|
|
|
|
#pragma comment(lib,"portaudio_x86.lib")
|
|
|
|
#endif
|
2009-04-17 21:44:07 +02:00
|
|
|
|
2008-01-21 21:57:20 +01:00
|
|
|
// Enable ALSA audio player
|
|
|
|
// Requires Linux and libasound
|
|
|
|
//#define WITH_ALSA
|
|
|
|
|
|
|
|
// Enable OpenAL audio player
|
|
|
|
// Requires OpenAL development libraries and headers
|
|
|
|
//#define WITH_OPENAL
|
|
|
|
|
|
|
|
// Enable Pulse Audio audio player
|
|
|
|
// Requires libpulse (and a *NIX compatible system and a running sound server to actually use)
|
2011-12-22 22:25:49 +01:00
|
|
|
//#define WITH_LIBPULSE
|
2009-06-12 19:13:22 +02:00
|
|
|
|
|
|
|
// Display trace-level diagnostic messages during startup
|
|
|
|
// Only enable for making special builds for end users having trouble with starting Aegisub
|
|
|
|
//#define WITH_STARTUPLOG
|