blob: 4d490b336b06d69d05c83287eb8f92fc6a68c5ef (
plain) (
tree)
|
|
@rem Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
@rem This file is part of the "Windows 7 drivers" project.
@rem For details, see https://github.com/egor-tensin/windows7-drivers.
@rem Distributed under the MIT License.
@echo off
set "proj_build_dir=%~dp0%"
set "proj_dir=%proj_build_dir%\..\..\.."
for /f "delims=" %%i in ("%proj_dir%") do set "proj_dir=%%~fi"
set "proj_src_dir=%proj_dir%\km\src"
set "proj_bin_dir=%proj_build_dir%\bin"
set "proj_lib_dir=%proj_build_dir%\lib"
set target_configuration=Release
if not defined _BUILDARCH (
echo Error: %%_BUILDARCH%% is not defined ^(have you set up the WinDDK environment?^) >&2
exit /b 1
)
if "%_BUILDARCH%" == "AMD64" (
set target_platform=x64
exit /b 0
)
if "%_BUILDARCH%" == "x86" (
set target_platform=x86
exit /b 0
)
echo Error: invalid %%_BUILDARCH%% value "%_BUILDARCH%" ^(the only supported architecture is x86^(-64^)^) >&2
exit /b 1
|