• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@echo off
2rem produce the Win CE binary files for snapshots
3rem !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!!
4
5if "x%VSINSTALLDIR%"=="x" goto usage
6
7if "x%WINCE_TARGET_DIR_BASE%"=="x" set WINCE_TARGET_DIR_BASE=E:\dailies
8if "x%WINCE_TARGET_ARCHES%"=="x" set WINCE_TARGET_ARCHES=ARMV4I MIPSII MIPSII_FP MIPSIV MIPSIV_FP SH4 x86
9
10
11set WINCE_TARGET_DIR=%WINCE_TARGET_DIR_BASE%\%DATE:/=-%
12set MSBUILD_CMD=msbuild.exe
13set MSBUILD_TARGET=Rebuild
14set MSBUILD_CONFIGURATION=Release
15set WINCE_SLN=msvc\libusb_wince.sln
16set PLATFORM_PREFIX=STANDARDSDK_500 (
17set PLATFORM_POSTFIX=)
18
19
20set PWD=%~dp0
21cd ..
22
23mkdir %WINCE_TARGET_DIR%
24mkdir %WINCE_TARGET_DIR%\include\libusb-1.0
25copy libusb\libusb-1.0.def %WINCE_TARGET_DIR%
26copy libusb\libusb.h %WINCE_TARGET_DIR%\include\libusb-1.0
27for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\%%A
28for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\%%A\static
29for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\%%A\dll
30for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\examples\%%A
31mkdir %WINCE_TARGET_DIR%\examples\source
32copy examples\listdevs.c %WINCE_TARGET_DIR%\examples\source
33copy examples\xusb.c %WINCE_TARGET_DIR%\examples\source
34copy msvc\stdint.h %WINCE_TARGET_DIR%\examples\source
35copy .private\wbs_wince.txt %WINCE_TARGET_DIR%\README.txt
36copy COPYING %WINCE_TARGET_DIR%\COPYING
37
38rem Perform the rebuild
39for %%A in (%WINCE_TARGET_ARCHES%) do %MSBUILD_CMD% %WINCE_SLN% /property:Platform="%PLATFORM_PREFIX%%%A%PLATFORM_POSTFIX%" /property:Configuration=%MSBUILD_CONFIGURATION% /target:%MSBUILD_TARGET%"
40
41
42rem Copy across the binaries
43for %%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 )
50
51goto done
52
53:usage
54echo must be run in a Visual Studio 2005 build environment!
55
56:done
57cd %PWD%