Skip to content

Commit

Permalink
Refactoring Dependency to use more meaningful dist\ output dire…
Browse files Browse the repository at this point in the history
…ctory
  • Loading branch information
cgrinker committed May 23, 2017
1 parent c5a863a commit 5247b44
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
build
out
dist
./*.zip
21 changes: 11 additions & 10 deletions scripts/win_x64_vc140.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@ msbuild craft_util.vcxproj /t:Build /p:Configuration=Debug /property:Platform=x6
msbuild craft_util.vcxproj /t:Build /p:Configuration=Release /property:Platform=x64


mkdir %PROJECT_ROOT%\out\include
mkdir %PROJECT_ROOT%\out\bin\%TRIPLE_CROSS%\debug
mkdir %PROJECT_ROOT%\out\lib\%TRIPLE_CROSS%\debug
mkdir %PROJECT_ROOT%\dist\include
mkdir %PROJECT_ROOT%\dist\bin\%TRIPLE_CROSS%\debug
mkdir %PROJECT_ROOT%\dist\lib\%TRIPLE_CROSS%\debug

COPY %PROJECT_ROOT%\build\Debug\craft_util.dll %PROJECT_ROOT%\out\bin\%TRIPLE_CROSS%\debug\
COPY %PROJECT_ROOT%\build\Debug\craft_util.pdb %PROJECT_ROOT%\out\bin\%TRIPLE_CROSS%\debug\
COPY %PROJECT_ROOT%\build\Debug\craft_util.lib %PROJECT_ROOT%\out\lib\%TRIPLE_CROSS%\debug\
COPY %PROJECT_ROOT%\build\Debug\craft_util.dll %PROJECT_ROOT%\dist\bin\%TRIPLE_CROSS%\debug\
COPY %PROJECT_ROOT%\build\Debug\craft_util.pdb %PROJECT_ROOT%\dist\bin\%TRIPLE_CROSS%\debug\
COPY %PROJECT_ROOT%\build\Debug\craft_util.lib %PROJECT_ROOT%\dist\lib\%TRIPLE_CROSS%\debug\

COPY %PROJECT_ROOT%\build\Release\craft_util.dll %PROJECT_ROOT%\out\bin\%TRIPLE_CROSS%\
COPY %PROJECT_ROOT%\build\Release\craft_util.pdb %PROJECT_ROOT%\out\bin\%TRIPLE_CROSS%\
COPY %PROJECT_ROOT%\build\Release\craft_util.lib %PROJECT_ROOT%\out\lib\%TRIPLE_CROSS%\
COPY %PROJECT_ROOT%\build\Release\craft_util.dll %PROJECT_ROOT%\dist\bin\%TRIPLE_CROSS%\
COPY %PROJECT_ROOT%\build\Release\craft_util.pdb %PROJECT_ROOT%\dist\bin\%TRIPLE_CROSS%\
COPY %PROJECT_ROOT%\build\Release\craft_util.lib %PROJECT_ROOT%\dist\lib\%TRIPLE_CROSS%\

ROBOCOPY /e %PROJECT_ROOT%\src %PROJECT_ROOT%\out\include\util\ *.h *.hpp
ROBOCOPY /e %PROJECT_ROOT%\src %PROJECT_ROOT%\dist\include\util\ *.h *.hpp

cd %PROJECT_ROOT%
7z a -tzip craft-util.zip dist

0 comments on commit 5247b44

Please sign in to comment.