Core: Fix writing of log lines a single fprintf call
[libusbx.git] / .private / bwince.cmd
blob91a0b2f17d8a590f5a5b45f2190a5ac2513174a0
1 @echo off
2 rem produce the Win CE binary files for snapshots
3 rem !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!!
5 if "x%VSINSTALLDIR%"=="x" goto usage
7 if "x%WINCE_TARGET_DIR_BASE%"=="x" set WINCE_TARGET_DIR_BASE=E:\dailies
8 if "x%WINCE_TARGET_ARCHES%"=="x" set WINCE_TARGET_ARCHES=ARMV4I MIPSII MIPSII_FP MIPSIV MIPSIV_FP SH4 x86
11 set WINCE_TARGET_DIR=%WINCE_TARGET_DIR_BASE%\%DATE:/=-%
12 set MSBUILD_CMD=msbuild.exe
13 set MSBUILD_TARGET=Rebuild
14 set MSBUILD_CONFIGURATION=Release
15 set WINCE_SLN=msvc\libusbx_wince.sln
16 set PLATFORM_PREFIX=STANDARDSDK_500 (
17 set PLATFORM_POSTFIX=)
20 set PWD=%~dp0
21 cd ..
23 mkdir %WINCE_TARGET_DIR%
24 mkdir %WINCE_TARGET_DIR%\include\libusbx-1.0
25 copy libusb\libusb-1.0.def %WINCE_TARGET_DIR%
26 copy libusb\libusb.h %WINCE_TARGET_DIR%\include\libusbx-1.0
27 for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\%%A
28 for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\%%A\static
29 for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\%%A\dll
30 for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\examples\%%A
31 mkdir %WINCE_TARGET_DIR%\examples\source
32 copy examples\listdevs.c %WINCE_TARGET_DIR%\examples\source
33 copy examples\xusb.c %WINCE_TARGET_DIR%\examples\source
34 copy msvc\stdint.h %WINCE_TARGET_DIR%\examples\source
35 copy .private\wbs_wince.txt %WINCE_TARGET_DIR%\README.txt
36 copy COPYING %WINCE_TARGET_DIR%\COPYING
38 rem Perform the rebuild
39 for %%A in (%WINCE_TARGET_ARCHES%) do %MSBUILD_CMD% %WINCE_SLN% /property:Platform="%PLATFORM_PREFIX%%%A%PLATFORM_POSTFIX%" /property:Configuration=%MSBUILD_CONFIGURATION% /target:%MSBUILD_TARGET%"
42 rem Copy across the binaries
43 for %%A in (%WINCE_TARGET_ARCHES%) do (
44 copy %%A\%MSBUILD_CONFIGURATION%\lib\libusb-1.0.lib %WINCE_TARGET_DIR%\%%A\static
45 copy %%A\%MSBUILD_CONFIGURATION%\examples\listdevs.exe %WINCE_TARGET_DIR%\examples\%%A
46 copy %%A\%MSBUILD_CONFIGURATION%\examples\xusb.exe %WINCE_TARGET_DIR%\examples\%%A
47 copy %%A\%MSBUILD_CONFIGURATION%\dll\libusb-1.0.lib %WINCE_TARGET_DIR%\%%A\dll
48 copy %%A\%MSBUILD_CONFIGURATION%\dll\libusb-1.0.dll %WINCE_TARGET_DIR%\%%A\dll
49 copy %%A\%MSBUILD_CONFIGURATION%\dll\libusb-1.0.pdb %WINCE_TARGET_DIR%\%%A\dll )
51 goto done
53 :usage
54 echo must be run in a Visual Studio 2005 build environment!
56 :done
57 cd %PWD%