From a9388b73b1aaa709e3d10ca84eef600f1f36c283 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Thu, 22 May 2014 23:05:22 +0100 Subject: build: Use CURLX_* file lists for Visual Studio curl tool project generation --- projects/README | 1 - projects/Windows/VC10/src/curlsrc.tmpl | 12 ++-------- projects/Windows/VC11/src/curlsrc.tmpl | 12 ++-------- projects/Windows/VC12/src/curlsrc.tmpl | 12 ++-------- projects/Windows/VC6/src/curlsrc.tmpl | 42 ++------------------------------- projects/Windows/VC7.1/src/curlsrc.tmpl | 32 ++----------------------- projects/Windows/VC7/src/curlsrc.tmpl | 32 ++----------------------- projects/Windows/VC8/src/curlsrc.tmpl | 42 ++------------------------------- projects/Windows/VC9/src/curlsrc.tmpl | 42 ++------------------------------- projects/generate.bat | 16 ++++++++++++- 10 files changed, 31 insertions(+), 212 deletions(-) (limited to 'projects') diff --git a/projects/README b/projects/README index 95a248aff..2701f26e3 100644 --- a/projects/README +++ b/projects/README @@ -98,7 +98,6 @@ TODO * Support WinIDN * Use of static runtime libraries * Generate *.vcxproj.filters files for VC10, VC11 and VC12 - * Use CURLX_* definitions for curl tool project generation * Support for other development IDEs Any additional help would be appreciated ;-) \ No newline at end of file diff --git a/projects/Windows/VC10/src/curlsrc.tmpl b/projects/Windows/VC10/src/curlsrc.tmpl index 1e8e4c2eb..0731630d1 100644 --- a/projects/Windows/VC10/src/curlsrc.tmpl +++ b/projects/Windows/VC10/src/curlsrc.tmpl @@ -2435,19 +2435,11 @@ - - - - +CURL_SRC_X_C_FILES CURL_SRC_C_FILES - - - - - - +CURL_SRC_X_H_FILES CURL_SRC_H_FILES diff --git a/projects/Windows/VC11/src/curlsrc.tmpl b/projects/Windows/VC11/src/curlsrc.tmpl index 6e6a56572..a4a835555 100644 --- a/projects/Windows/VC11/src/curlsrc.tmpl +++ b/projects/Windows/VC11/src/curlsrc.tmpl @@ -2475,19 +2475,11 @@ - - - - +CURL_SRC_X_C_FILES CURL_SRC_C_FILES - - - - - - +CURL_SRC_X_H_FILES CURL_SRC_H_FILES diff --git a/projects/Windows/VC12/src/curlsrc.tmpl b/projects/Windows/VC12/src/curlsrc.tmpl index 8949f5ea1..719cfa77e 100644 --- a/projects/Windows/VC12/src/curlsrc.tmpl +++ b/projects/Windows/VC12/src/curlsrc.tmpl @@ -2475,19 +2475,11 @@ - - - - +CURL_SRC_X_C_FILES CURL_SRC_C_FILES - - - - - - +CURL_SRC_X_H_FILES CURL_SRC_H_FILES diff --git a/projects/Windows/VC6/src/curlsrc.tmpl b/projects/Windows/VC6/src/curlsrc.tmpl index e2f1e222b..874136c56 100644 --- a/projects/Windows/VC6/src/curlsrc.tmpl +++ b/projects/Windows/VC6/src/curlsrc.tmpl @@ -569,51 +569,13 @@ LINK32=link.exe # Begin Group "Source Files" # PROP Default_Filter "" -# Begin Source File - -SOURCE=..\..\..\..\lib\nonblock.c -# End Source File -# Begin Source File - -SOURCE=..\..\..\..\lib\rawstr.c -# End Source File -# Begin Source File - -SOURCE=..\..\..\..\lib\strtoofft.c -# End Source File -# Begin Source File - -SOURCE=..\..\..\..\lib\warnless.c -# End Source File +CURL_SRC_X_C_FILES CURL_SRC_C_FILES # End Group # Begin Group "Header Files" # PROP Default_Filter "" -# Begin Source File - -SOURCE="..\..\..\..\lib\config-win32.h" -# End Source File -# Begin Source File - -SOURCE=..\..\..\..\lib\curl_setup.h -# End Source File -# Begin Source File - -SOURCE=..\..\..\..\lib\nonblock.h -# End Source File -# Begin Source File - -SOURCE=..\..\..\..\lib\rawstr.h -# End Source File -# Begin Source File - -SOURCE=..\..\..\..\lib\strtoofft.h -# End Source File -# Begin Source File - -SOURCE=..\..\..\..\lib\warnless.h -# End Source File +CURL_SRC_X_H_FILES CURL_SRC_H_FILES # End Group # Begin Group "Resource Files" diff --git a/projects/Windows/VC7.1/src/curlsrc.tmpl b/projects/Windows/VC7.1/src/curlsrc.tmpl index 98d0c8396..5482eff4c 100644 --- a/projects/Windows/VC7.1/src/curlsrc.tmpl +++ b/projects/Windows/VC7.1/src/curlsrc.tmpl @@ -1217,41 +1217,13 @@ - - - - - - - - +CURL_SRC_X_C_FILES CURL_SRC_C_FILES - - - - - - - - - - - - +CURL_SRC_X_H_FILES CURL_SRC_H_FILES - - - - - - - - +CURL_SRC_X_C_FILES CURL_SRC_C_FILES - - - - - - - - - - - - +CURL_SRC_X_H_FILES CURL_SRC_H_FILES - - - - - - - - +CURL_SRC_X_C_FILES CURL_SRC_C_FILES - - - - - - - - - - - - +CURL_SRC_X_H_FILES CURL_SRC_H_FILES - - - - - - - - +CURL_SRC_X_C_FILES CURL_SRC_C_FILES - - - - - - - - - - - - +CURL_SRC_X_H_FILES CURL_SRC_H_FILES +rem * Copyright (C) 2014, Steve Holme, . rem * rem * This software is licensed as described in the file COPYING, which rem * you should have received as part of this distribution. The terms @@ -92,6 +92,20 @@ rem for /f "delims=" %%h in ('dir /b ..\src\*.h') do call :element %1 src "%%h" %3 ) else if "!var!" == "CURL_SRC_RC_FILES" ( for /f "delims=" %%r in ('dir /b ..\src\*.rc') do call :element %1 src "%%r" %3 + ) else if "!var!" == "CURL_SRC_X_C_FILES" ( + call :element %1 lib "strtoofft.c" %3 + call :element %1 lib "strdup.c" %3 + call :element %1 lib "rawstr.c" %3 + call :element %1 lib "nonblock.c" %3 + call :element %1 lib "warnless.c" %3 + ) else if "!var!" == "CURL_SRC_X_H_FILES" ( + call :element %1 lib "config-win32.h" %3 + call :element %1 lib "curl_setup.h" %3 + call :element %1 lib "strtoofft.h" %3 + call :element %1 lib "strdup.h" %3 + call :element %1 lib "rawstr.h" %3 + call :element %1 lib "nonblock.h" %3 + call :element %1 lib "warnless.h" %3 ) else if "!var!" == "CURL_LIB_C_FILES" ( for /f "delims=" %%c in ('dir /b ..\lib\*.c') do call :element %1 lib "%%c" %3 ) else if "!var!" == "CURL_LIB_H_FILES" ( -- cgit v1.2.3