[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cinvoke-svn] r19 - in trunk/cinvoke: . lib lib/arch test wintools
From: |
will |
Subject: |
[cinvoke-svn] r19 - in trunk/cinvoke: . lib lib/arch test wintools |
Date: |
14 Jun 2006 23:43:36 -0400 |
Author: will
Date: 2006-06-14 23:43:35 -0400 (Wed, 14 Jun 2006)
New Revision: 19
Added:
trunk/cinvoke/makeinstall.bat
trunk/cinvoke/wintools/
trunk/cinvoke/wintools/copyifnewer.c
trunk/cinvoke/wintools/copyifnewer.exe
Modified:
trunk/cinvoke/TODO
trunk/cinvoke/lib/arch/cl_x86_win.c
trunk/cinvoke/lib/cinvoke.vcproj
trunk/cinvoke/test/test.vcproj
Log:
fixed windows installability
Modified: trunk/cinvoke/TODO
===================================================================
--- trunk/cinvoke/TODO 2006-06-15 02:38:05 UTC (rev 18)
+++ trunk/cinvoke/TODO 2006-06-15 03:43:35 UTC (rev 19)
@@ -1,4 +1,4 @@
Developer documentation
-Project setup
+Public documentation
Language binding(s)
-Website, public documentation
+Website
Modified: trunk/cinvoke/lib/arch/cl_x86_win.c
===================================================================
--- trunk/cinvoke/lib/arch/cl_x86_win.c 2006-06-15 02:38:05 UTC (rev 18)
+++ trunk/cinvoke/lib/arch/cl_x86_win.c 2006-06-15 03:43:35 UTC (rev 19)
@@ -25,8 +25,8 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
-#include "../cinvoke.h"
-#include "../cinvoke-private.h"
+#include "cinvoke.h"
+#include "cinvoke-private.h"
char *GetWin32ErrMsg(DWORD err) {
char *str;
Modified: trunk/cinvoke/lib/cinvoke.vcproj
===================================================================
--- trunk/cinvoke/lib/cinvoke.vcproj 2006-06-15 02:38:05 UTC (rev 18)
+++ trunk/cinvoke/lib/cinvoke.vcproj 2006-06-15 03:43:35 UTC (rev 19)
@@ -4,6 +4,7 @@
Version="7.10"
Name="cinvoke"
ProjectGUID="{D8BA9C97-2E55-4CF2-8085-B8D4EBA0F644}"
+ RootNamespace="cinvoke"
Keyword="Win32Proj">
<Platforms>
<Platform
@@ -38,7 +39,10 @@
<Tool
Name="VCPostBuildEventTool"/>
<Tool
- Name="VCPreBuildEventTool"/>
+ Name="VCPreBuildEventTool"
+ CommandLine="..\wintools\copyifnewer
arch\cl_x86_win.c cinvoke-archspec.c
+..\wintools\copyifnewer arch\cl_x86_win.h cinvoke-archspec.h
+"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
@@ -78,7 +82,10 @@
<Tool
Name="VCPostBuildEventTool"/>
<Tool
- Name="VCPreBuildEventTool"/>
+ Name="VCPreBuildEventTool"
+ CommandLine="..\wintools\copyifnewer
arch\cl_x86_win.c cinvoke-archspec.c
+..\wintools\copyifnewer arch\cl_x86_win.h cinvoke-archspec.h
+"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
@@ -101,15 +108,33 @@
Filter="">
<File
RelativePath=".\arch\cl_x86_win.c">
+ <FileConfiguration
+ Name="Debug|Win32"
+ ExcludedFromBuild="TRUE">
+ <Tool
+ Name="VCCLCompilerTool"/>
+ </FileConfiguration>
</File>
<File
RelativePath=".\arch\cl_x86_win.h">
+ <FileConfiguration
+ Name="Debug|Win32"
+ ExcludedFromBuild="TRUE">
+ <Tool
+ Name="VCCustomBuildTool"/>
+ </FileConfiguration>
</File>
</Filter>
<File
RelativePath=".\cinvoke-arch.h">
</File>
<File
+ RelativePath=".\cinvoke-archspec.c">
+ </File>
+ <File
+ RelativePath=".\cinvoke-archspec.h">
+ </File>
+ <File
RelativePath=".\cinvoke-private.h">
</File>
<File
Added: trunk/cinvoke/makeinstall.bat
===================================================================
--- trunk/cinvoke/makeinstall.bat (rev 0)
+++ trunk/cinvoke/makeinstall.bat 2006-06-15 03:43:35 UTC (rev 19)
@@ -0,0 +1,5 @@
+mkdir install
+copy lib\cinvoke.h install
+copy lib\cinvoke-arch.h install
+copy lib\cinvoke-archspec.h install
+copy lib\Release\cinvoke.lib install
Modified: trunk/cinvoke/test/test.vcproj
===================================================================
--- trunk/cinvoke/test/test.vcproj 2006-06-15 02:38:05 UTC (rev 18)
+++ trunk/cinvoke/test/test.vcproj 2006-06-15 03:43:35 UTC (rev 19)
@@ -68,6 +68,7 @@
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="..\lib"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="4"
UsePrecompiledHeader="0"
Added: trunk/cinvoke/wintools/copyifnewer.c
===================================================================
--- trunk/cinvoke/wintools/copyifnewer.c (rev 0)
+++ trunk/cinvoke/wintools/copyifnewer.c 2006-06-15 03:43:35 UTC (rev 19)
@@ -0,0 +1,34 @@
+// copyifnewer.cpp : Defines the entry point for the console application.
+//
+
+#include <stdio.h>
+#include <windows.h>
+
+int main(int argc, char* argv[])
+{
+ int skip = 0;
+ WIN32_FIND_DATA finddata1, finddata2;
+
+ if (argc != 3) {
+ fprintf(stderr, "Usage: copyifnewer src dst\n");
+ return 1;
+ }
+ if (FindFirstFile(argv[1], &finddata1) == INVALID_HANDLE_VALUE) {
+ fprintf(stderr, "Error opening source file: %d\n",
GetLastError());
+ return 1;
+ }
+ if (FindFirstFile(argv[2], &finddata2) == INVALID_HANDLE_VALUE) {
+ skip = 1;
+ }
+
+ if (skip || CompareFileTime(&finddata1.ftLastWriteTime,
&finddata2.ftLastWriteTime) > 0) {
+ char buf[MAX_PATH * 2 + 9];
+ _snprintf(buf, sizeof(buf), "copy \"%s\" \"%s\"", argv[1],
argv[2]);
+ system(buf);
+ } else {
+ printf("Not copying file because source file is older\n");
+ }
+
+ return 0;
+}
+
Added: trunk/cinvoke/wintools/copyifnewer.exe
===================================================================
(Binary files differ)
Property changes on: trunk/cinvoke/wintools/copyifnewer.exe
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cinvoke-svn] r19 - in trunk/cinvoke: . lib lib/arch test wintools,
will <=