Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2013-01-07 22:55:34 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2013-01-08 14:38:15 +0400
commitacad0a851870034968f8746cd0135a35d40f87b8 (patch)
tree9200537619c28e4f9a73c2dd3aae0e206f816c50 /distrib
parent8848e8f9778a25b4669ccab200b86b888130abf6 (diff)
Add VS2012 support.
* We use the same project files as VS2010 which makes things easier to maintain. * We don't use any MFC hack to reduce the binaries' size. We use the _AFX_NO_MFC_CONTROLS_IN_DIALOGS define for the standalone filters which has the same effect and it's cleaner. MPC-HC itself is a little bigger uncompressed, but its compressed size is the same.
Diffstat (limited to 'distrib')
-rw-r--r--distrib/mpc-hc_setup.iss14
1 files changed, 12 insertions, 2 deletions
diff --git a/distrib/mpc-hc_setup.iss b/distrib/mpc-hc_setup.iss
index 8578eb75e..2ffe7f8dc 100644
--- a/distrib/mpc-hc_setup.iss
+++ b/distrib/mpc-hc_setup.iss
@@ -29,6 +29,7 @@
#endif
; If you want to compile the 64-bit version define "x64build" (uncomment the define below or use build.bat)
+;#define VS2012
;#define x64Build
;#define MPCHC_LITE
@@ -54,14 +55,19 @@
#define app_verhash = "(" + str(MPCHC_HASH) + ")"
#define quick_launch "{userappdata}\Microsoft\Internet Explorer\Quick Launch"
+#if defined(VS2012)
+ #define base_bindir = "..\bin12"
+#else
+ #define base_bindir = "..\bin"
+#endif
#ifdef x64Build
- #define bindir = "..\bin\mpc-hc_x64"
+ #define bindir = base_bindir + "\mpc-hc_x64"
#define mpchc_exe = "mpc-hc64.exe"
#define mpchc_ini = "mpc-hc64.ini"
#define OutFilename = app_name + "." + app_version + ".x64"
#else
- #define bindir = "..\bin\mpc-hc_x86"
+ #define bindir = base_bindir + "\mpc-hc_x86"
#define mpchc_exe = "mpc-hc.exe"
#define mpchc_ini = "mpc-hc.ini"
#define OutFilename = app_name + "." + app_version + ".x86"
@@ -73,6 +79,10 @@
#define OutFilename = OutFilename + ".en"
#endif
+#if defined(VS2012)
+ #define OutFilename = OutFilename + ".VS2012"
+#endif
+
#ifnexist bindir + "\" + mpchc_exe
#error Compile MPC-HC first
#endif