-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide protected and overridable members from public projections (#1319)
- Loading branch information
Showing
21 changed files
with
286 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
@echo off | ||
|
||
setlocal ENABLEDELAYEDEXPANSION | ||
|
||
set target_platform=%1 | ||
set target_configuration=%2 | ||
if "%target_platform%"=="" set target_platform=x64 | ||
|
||
if /I "%target_platform%" equ "all" ( | ||
if "%target_configuration%"=="" ( | ||
set target_configuration=all | ||
) | ||
call %0 x86 !target_configuration! | ||
call %0 x64 !target_configuration! | ||
call %0 arm !target_configuration! | ||
call %0 arm64 !target_configuration! | ||
goto :eof | ||
) | ||
|
||
if /I "%target_configuration%" equ "all" ( | ||
call %0 %target_platform% Debug | ||
call %0 %target_platform% Release | ||
goto :eof | ||
) | ||
|
||
if "%target_configuration%"=="" ( | ||
set target_configuration=Debug | ||
) | ||
|
||
set reference_output=%~p0\_reference\%target_platform%\%target_configuration% | ||
if exist "%reference_output%" ( | ||
echo Removing existing reference projections | ||
rmdir /s /q "%reference_output%" | ||
) | ||
|
||
if not exist ".\.nuget" mkdir ".\.nuget" | ||
if not exist ".\.nuget\nuget.exe" powershell -Command "$ProgressPreference = 'SilentlyContinue' ; Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile .\.nuget\nuget.exe" | ||
|
||
mkdir %reference_output%\package | ||
.\.nuget\nuget.exe install Microsoft.Windows.CppWinRT -o %reference_output%\package | ||
set reference_cppwinrt= | ||
for /F "delims=" %%a in ('dir /s /b %reference_output%\package\cppwinrt.exe') DO set reference_cppwinrt=%%a | ||
if "%reference_cppwinrt%"=="" ( | ||
echo Could not find the reference cppwinrt.exe under %reference_output%\package | ||
goto :EOF | ||
) | ||
|
||
echo Generating reference projection from %reference_cppwinrt% to %reference_output%\cppwinrt | ||
%reference_cppwinrt% -in local -out %reference_output% -verbose | ||
echo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@echo off | ||
|
||
setlocal ENABLEDELAYEDEXPANSION | ||
|
||
set target_platform=%1 | ||
set target_configuration=%2 | ||
if "%target_platform%"=="" set target_platform=x64 | ||
|
||
if /I "%target_platform%" equ "all" ( | ||
if "%target_configuration%"=="" ( | ||
set target_configuration=all | ||
) | ||
call %0 x86 !target_configuration! | ||
call %0 x64 !target_configuration! | ||
call %0 arm !target_configuration! | ||
call %0 arm64 !target_configuration! | ||
goto :eof | ||
) | ||
|
||
if /I "%target_configuration%" equ "all" ( | ||
call %0 %target_platform% Debug | ||
call %0 %target_platform% Release | ||
goto :eof | ||
) | ||
|
||
if "%target_configuration%"=="" ( | ||
set target_configuration=Debug | ||
) | ||
|
||
set reference_output=%~p0\_reference\%target_platform%\%target_configuration% | ||
set build_output=%~p0\_build\%target_platform%\%target_configuration% | ||
|
||
echo Removing version stamps from %reference_output%\winrt | ||
pushd %reference_output%\winrt | ||
powershell -Command "gci -r -include *.h,*.ixx | %%{ (get-content $_) -replace 'was generated by.*|CPPWINRT_VERSION.*','' | set-content $_ }" | ||
popd | ||
|
||
echo Removing version stamps from %build_output%\winrt | ||
pushd %build_output%\winrt | ||
powershell -Command "gci -r -include *.h,*.ixx | %%{ (get-content $_) -replace 'was generated by.*|CPPWINRT_VERSION.*','' | set-content $_ }" | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.