summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-23 08:51:53 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-23 08:51:53 +0000
commit43c0d8e91c16cc136d622f3b3b6442044baa079c (patch)
tree6899638ee8caf9945c6a71fc68b2bc9cf6956b14
parent8fd79dd4eef7c2bc84b9701cefc69af84893d927 (diff)
added precompiled header
git-svn-id: http://svn.miranda-ng.org/main/trunk@3697 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/BASS_interface/Bass_interface_11.vcxproj14
-rw-r--r--plugins/BASS_interface/Bass_interface_11.vcxproj.filters3
-rw-r--r--plugins/BASS_interface/src/Bass_interface.h12
-rw-r--r--plugins/BASS_interface/src/Main.cpp6
-rw-r--r--plugins/BASS_interface/src/stdafx.cpp18
5 files changed, 41 insertions, 12 deletions
diff --git a/plugins/BASS_interface/Bass_interface_11.vcxproj b/plugins/BASS_interface/Bass_interface_11.vcxproj
index 43f6b59426..787ce5ecc8 100644
--- a/plugins/BASS_interface/Bass_interface_11.vcxproj
+++ b/plugins/BASS_interface/Bass_interface_11.vcxproj
@@ -85,6 +85,8 @@
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeaderFile>Bass_interface.h</PrecompiledHeaderFile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -108,6 +110,8 @@
<WarningLevel>Level3</WarningLevel>
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>Bass_interface.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -136,6 +140,8 @@
<WarningLevel>Level3</WarningLevel>
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>Bass_interface.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@@ -167,6 +173,8 @@
<WarningLevel>Level3</WarningLevel>
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>Bass_interface.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@@ -195,6 +203,12 @@
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\Main.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
+ </ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/plugins/BASS_interface/Bass_interface_11.vcxproj.filters b/plugins/BASS_interface/Bass_interface_11.vcxproj.filters
index 9549add1f3..eab8ca7503 100644
--- a/plugins/BASS_interface/Bass_interface_11.vcxproj.filters
+++ b/plugins/BASS_interface/Bass_interface_11.vcxproj.filters
@@ -40,5 +40,8 @@
<ClCompile Include="src\Main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\stdafx.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
</Project> \ No newline at end of file
diff --git a/plugins/BASS_interface/src/Bass_interface.h b/plugins/BASS_interface/src/Bass_interface.h
index a350f2bb57..09821041cd 100644
--- a/plugins/BASS_interface/src/Bass_interface.h
+++ b/plugins/BASS_interface/src/Bass_interface.h
@@ -2,9 +2,6 @@
Copyright (C) 2010, 2011 tico-tico
*/
-#ifndef __BASS_INTERFACE_H__
-#define __BASS_INTERFACE_H__
-
#include <windows.h>
#include <commctrl.h>
#include <Uxtheme.h>
@@ -26,13 +23,6 @@ Copyright (C) 2010, 2011 tico-tico
#include "resource.h"
#include "version.h"
-#define BASSDEF(f) (WINAPI *f)
-#include "bass.h"
-
-#define BASS_TCHAR BASS_UNICODE
-
-#define LOADBASSFUNCTION(f) (*((void**)&f)=(void*)GetProcAddress(hBass,#f))
-
#define ModuleName LPGEN("Bass Interface")
#define OPT_VOLUME "Volume"
@@ -44,5 +34,3 @@ Copyright (C) 2010, 2011 tico-tico
#define OPT_TIME2 "Time2"
#define OPT_STATUS "StatMask"
#define OPT_PREVIEW "Preview"
-
-#endif
diff --git a/plugins/BASS_interface/src/Main.cpp b/plugins/BASS_interface/src/Main.cpp
index 91f68091e8..e72a855339 100644
--- a/plugins/BASS_interface/src/Main.cpp
+++ b/plugins/BASS_interface/src/Main.cpp
@@ -3,6 +3,12 @@ Copyright (C) 2010, 2011 tico-tico
*/
#include "bass_interface.h"
+#define BASSDEF(f) (WINAPI *f)
+#include "bass.h"
+
+#define BASS_TCHAR BASS_UNICODE
+
+#define LOADBASSFUNCTION(f) (*((void**)&f)=(void*)GetProcAddress(hBass,#f))
HINSTANCE hInst;
int hLangpack;
diff --git a/plugins/BASS_interface/src/stdafx.cpp b/plugins/BASS_interface/src/stdafx.cpp
new file mode 100644
index 0000000000..dda881ef8e
--- /dev/null
+++ b/plugins/BASS_interface/src/stdafx.cpp
@@ -0,0 +1,18 @@
+/*
+Copyright (C) 2012-13 Miranda NG Project (http://miranda-ng.org)
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation version 2
+of the License.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "Bass_interface.h" \ No newline at end of file