summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-01-21 01:52:52 +0000
committerPete Batard <pbatard@gmail.com>2010-01-21 01:52:52 +0000
commit0c568de2e355ade7ba1965437e9dc9d6459eed5c (patch)
tree567915a63908f879e0b2c42d2cfdd276b51c4b5d
parent0fc4348172aba997fd8a7c9af8584a7630a8f26f (diff)
downloadlibusb-0c568de2e355ade7ba1965437e9dc9d6459eed5c.tar.gz
r95: added .rc file for DLL (Michael Plante & Orin Eman)
-rw-r--r--libusb-dll_2008.vcproj24
-rw-r--r--msvc/libusb-1.0.rc109
-rw-r--r--msvc/resource.h15
3 files changed, 142 insertions, 6 deletions
diff --git a/libusb-dll_2008.vcproj b/libusb-dll_2008.vcproj
index 0c0b1e5..fdc1194 100644
--- a/libusb-dll_2008.vcproj
+++ b/libusb-dll_2008.vcproj
@@ -66,6 +66,7 @@
OutputFile="$(OutDir)\libusb-1.0_debug.dll"
AdditionalLibraryDirectories=".\msvc"
ModuleDefinitionFile="libusb\libusb-1.0.def"
+ EmbedManagedResourceFile="libusb-1.0.rc"
GenerateDebugInformation="true"
/>
<Tool
@@ -139,6 +140,7 @@
OutputFile="$(OutDir)\libusb-1.0_debug.dll"
AdditionalLibraryDirectories=".\msvc"
ModuleDefinitionFile="libusb\libusb-1.0.def"
+ EmbedManagedResourceFile="libusb-1.0.rc"
GenerateDebugInformation="true"
/>
<Tool
@@ -211,7 +213,8 @@
AdditionalDependencies="setupapi.lib pthreadVC2.lib"
OutputFile="$(OutDir)\libusb-1.0.dll"
AdditionalLibraryDirectories=".\msvc"
- ModuleDefinitionFile="libusb\libusb-1.0.def"
+ ModuleDefinitionFile="libusb\libusb-1.0.def"
+ EmbedManagedResourceFile="libusb-1.0.rc"
/>
<Tool
Name="VCALinkTool"
@@ -284,7 +287,8 @@
AdditionalDependencies="setupapi.lib pthreadVC2_x64.lib"
OutputFile="$(OutDir)\libusb-1.0.dll"
AdditionalLibraryDirectories=".\msvc"
- ModuleDefinitionFile="libusb\libusb-1.0.def"
+ ModuleDefinitionFile="libusb\libusb-1.0.def"
+ EmbedManagedResourceFile="libusb-1.0.rc"
/>
<Tool
Name="VCALinkTool"
@@ -330,10 +334,6 @@
>
</File>
<File
- RelativePath=".\libusb\libusb-1.0.def"
- >
- </File>
- <File
RelativePath=".\libusb\sync.c"
>
</File>
@@ -372,6 +372,18 @@
>
</File>
</Filter>
+ <Filter
+ Name="Resource Files"
+ >
+ <File
+ RelativePath=".\libusb\libusb-1.0.def"
+ >
+ </File>
+ <File
+ RelativePath=".\msvc\libusb-1.0.rc"
+ >
+ </File>
+ </Filter>
</Files>
<Globals>
</Globals>
diff --git a/msvc/libusb-1.0.rc b/msvc/libusb-1.0.rc
new file mode 100644
index 0000000..84ca4d6
--- /dev/null
+++ b/msvc/libusb-1.0.rc
@@ -0,0 +1,109 @@
+//Microsoft Developer Studio generated resource script.
+//
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (U.S.) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+#ifdef _WIN32
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+#pragma code_page(1252)
+#endif //_WIN32
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE DISCARDABLE
+BEGIN
+ "resource.h\0"
+END
+
+2 TEXTINCLUDE DISCARDABLE
+BEGIN
+ "#include ""afxres.h""\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE DISCARDABLE
+BEGIN
+ "\r\n"
+ "\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+
+#ifndef _MAC
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 1,0,5,0
+ PRODUCTVERSION 1,0,5,0
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x40004L
+ FILETYPE 0x2L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904b0"
+ BEGIN
+ VALUE "Comments", "\0"
+ VALUE "CompanyName", "libusb.org\0"
+ VALUE "FileDescription", "libusb\0"
+ VALUE "FileVersion", "1, 0, 5, 0\0"
+ VALUE "InternalName", "libusb\0"
+ VALUE "LegalCopyright", "(c) 2010 the Libusb Team, GNU LGPL v2.1 or later.\0"
+ VALUE "LegalTrademarks", "http://www.gnu.org/licenses/lgpl-2.1.html\0"
+ VALUE "OriginalFilename", "libusb-1.0_debug.dll\0"
+ VALUE "PrivateBuild", "\0"
+ VALUE "ProductName", "libusb\0"
+ VALUE "ProductVersion", "1, 0, 5, 0\0"
+ VALUE "SpecialBuild", "\0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1200
+ END
+END
+
+#endif // !_MAC
+
+#endif // English (U.S.) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
diff --git a/msvc/resource.h b/msvc/resource.h
new file mode 100644
index 0000000..d973f20
--- /dev/null
+++ b/msvc/resource.h
@@ -0,0 +1,15 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Developer Studio generated include file.
+// Used by libusb-1.0.rc
+//
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE 101
+#define _APS_NEXT_COMMAND_VALUE 40001
+#define _APS_NEXT_CONTROL_VALUE 1000
+#define _APS_NEXT_SYMED_VALUE 101
+#endif
+#endif