Skip to content

Commit

Permalink
[build] Add script extract.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
jjonescz committed May 16, 2019
1 parent 98e602d commit 16729d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
13 changes: 13 additions & 0 deletions scripts/extract.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$Configuration = $args[0]

if (($Configuration -cne "Release") -and ($Configuration -cne "Debug")) {
echo "Usage: extract.ps1 Release|Debug"
exit 1
}

robocopy C:/ipaSim/build/ipasim-x86-$Configuration/bin C:/ipaSim/src/cmake/ipasim-x86-$Configuration/bin * /MIR /NP /NFL /NDL
robocopy C:/ipaSim/build/winobjc-x86-$Configuration/bin C:/ipaSim/src/cmake/winobjc-x86-$Configuration/bin * /MIR /NP /NFL /NDL
robocopy C:/ipaSim/build/lief-x86-$Configuration/include C:/ipaSim/src/cmake/lief-x86-$Configuration/include * /MIR /NP /NFL /NDL
robocopy C:/ipaSim/build/ipasim-x86-$Configuration/gen C:/ipaSim/src/src/IpaSimulator/IpaSimApp/gen * /MIR /NP /NFL /NDL
robocopy C:/ipaSim/src/deps/WinObjC/Frameworks/UIKit.Xaml/prebuilt/$Configuration C:/ipaSim/src/src/IpaSimulator/IpaSimApp/UIKit.Xaml *.xbf /MIR /NP /NFL /NDL
robocopy C:/ipaSim/src/deps/WinObjC/Frameworks/Social.Xaml/prebuilt/$Configuration C:/ipaSim/src/src/IpaSimulator/IpaSimApp/Social.Xaml *.xbf /MIR /NP /NFL /NDL
10 changes: 0 additions & 10 deletions src/IpaSimulator/IpaSimApp/IpaSimApp.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,6 @@
<PreprocessorDefinitions>NDEBUG;IPASIM_SHOW_LOG_WINDOW;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<PreBuildEvent>
<Command>robocopy ..\..\..\cmake\ipasim-x86-$(Configuration)\gen\ $(ProjectDir)gen\ * /MIR /NP /NFL /NDL
robocopy "..\..\..\deps\WinObjC\Frameworks\UIKit.Xaml\prebuilt\$(Configuration)"\ $(ProjectDir)UIKit.Xaml\ *.xbf /MIR /NP /NFL /NDL
robocopy "..\..\..\deps\WinObjC\Frameworks\Social.Xaml\prebuilt\$(Configuration)"\ $(ProjectDir)Social.Xaml\ *.xbf /MIR /NP /NFL /NDL
rem See &lt;https://weblogs.sqlteam.com/robv/2010/02/17/61106/&gt;.
set /A errlev="%ERRORLEVEL% &amp; 24"
exit /B %errlev%</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="LogPage.h">
<DependentUpon>LogPage.xaml</DependentUpon>
Expand Down

0 comments on commit 16729d2

Please sign in to comment.