Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
30819758
Commit
30819758
authored
13 years ago
by
Russell Taylor
Browse files
Options
Downloads
Patches
Plain Diff
Add a script to pull in Third_Party includes and libs on Windows. Re #3977.
parent
64d42bb3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/fetch_Third_Party.bat
+51
-0
51 additions, 0 deletions
Code/fetch_Third_Party.bat
with
51 additions
and
0 deletions
Code/fetch_Third_Party.bat
0 → 100755
+
51
−
0
View file @
30819758
:: This script deals with getting hold of the required third party includes and libraries
:: It will either clone or pull 3rdpartyincludes & 3rdpartylibs-win32/64 and put them in the right place for CMake
:: Your architecture is auto-determined
@echo
off
:: Check whether we're 64 or 32 bit. Store it in the 'arch' variable
Set
RegQry
=
HKLM
\Hardware\Description\System\CentralProcessor\0
REG
.exe
Query
%RegQry%
>
checkOS
.txt
Find
/i
"x86"
<
CheckOS
.txt
>
StringCheck
.txt
If
%ERRORLEVEL%
==
0
(
set
arch
=
win32
)
ELSE
(
set
arch
=
win64
)
:: Remove temporary files created above
del
CheckOS
.txt
del
StringCheck
.txt
:: First check if everything is already there - if so we just want to update
IF
EXIST
Third_Party
/include
GOTO
Update
:: Find out the url where mantid came from so we use the same location & protocol
FOR
/F
%%I
IN
(
'git.cmd config --get remote.origin.url'
)
DO
SET
url
=
%%I
echo
%url%
set
incs
=
%url
:mantid
.git
=
%
3
rdpartyincludes
.git
echo
%incs%
set
libs
=
%url
:mantid
.git
=
%
3
rdpartylibs
-
%arch%
.git
echo
%libs%
:: Otherwise we need to clone
echo
Cloning
Third_Party
includes
and
libraries
...
call
git
.cmd
clone
%incs%
Third_Party
/include
call
git
.cmd
clone
%libs%
Third_Party
/lib
/
%arch%
exit
0
:: Just making sure what we have is up to date
:Update
echo
Updating
Third_Party
includes
and
libraries
...
cd
Third_Party
/include
call
git
.cmd
pull
cd
../lib/
%arch%
call
git
.cmd
pull
:: Be sure to end up back where we started
cd
../../..
exit
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment