Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fbxsdk_python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
ADILI Robin
fbxsdk_python
Commits
2a9b8c2f
Commit
2a9b8c2f
authored
4 years ago
by
ADILI Robin
Browse files
Options
Downloads
Patches
Plain Diff
Update build.bat
parent
445230c7
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
build.bat
+38
-7
38 additions, 7 deletions
build.bat
with
38 additions
and
7 deletions
build.bat
+
38
−
7
View file @
2a9b8c2f
powershell
-Command
"Invoke-WebRequest https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile C:\TEMP\vs_buildtools.exe"
SET
"CURRENTDIR=
%cd%
"
SET
"BUILDDIR=
%CURRENTDIR%
\build"
SET
"BUILDTOOLSDIR=
%BUILDDIR%
\buildtools"
SET
"VCVARSBAT=
%BUILDTOOLSDIR%
\VC\Auxiliary\Build\vcvars64.bat"
SET
"SIPDIR=
%BUILDDIR%
\sip-4.19.3"
SET
"SIPINSTALLDIR=
%BUILDDIR%
\sipinstall"
SET
"vs_buildtoolsexe=
%TEMP%
\vs_buildtools.exe"
SET
"FBXSDKDIR=
%BUILDDIR%
\fbxsdk"
SET
"FBXSDKPYTHONDIR=
%BUILDDIR%
\fbxsdkpy"
mkdir
"
%BUILDDIR%
"
mkdir
"
%BUILDTOOLSDIR%
"
mkdir
"
%SIPINSTALLDIR%
"
C
:\TEMP\vs_buildtools.exe
--quiet --wait --norestart --nocache --installPath
"
%BUILDTOOLSDIR%
"
--add
Microsoft
.VisualStudio.Workload.AzureBuildTools
--remove
Microsoft
.VisualStudio.Component.Windows10SDK.10240
--remove
Microsoft
.VisualStudio.Component.Windows10SDK.10586
--remove
Microsoft
.VisualStudio.Component.Windows10SDK.14393
--remove
Microsoft
.VisualStudio.Component.Windows81SDK
--add
Microsoft
.VisualStudio.Workload.VCTools
--add
Microsoft
.VisualStudio.Component.VC.Tools.x86.x64
||
IF
"
%ERRORLEVEL%
"
==
"3010"
EXIT
0
"$BUILDTOOLSDIR"
\
tar
xvf
sip
-
4
.19.3.tar.gz
-C
"$BUILDDIR"
cd
"$BUILDDIR"
\sip
-*
python
"configure.py"
-b
"$SIPINSTALLDIR"
-d
"$SIPINSTALLDIR"
-e
"$SIPINSTALLDIR"
--pyidir
=
"$SIPINSTALLDIR"
nmake
mkdir
"
%FBXSDKDIR%
"
mkdir
"
%FBXSDKPYTHONDIR%
"
echo
"Download and install Visual Studio Build Tools (nmake, MSVC, link, etc.)"
::Invoke-WebRequest https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile %vs_buildtoolsexe%
::curl -o %vs_buildtoolsexe% https://aka.ms/vs/16/release/vs_buildtools.exe
::%vs_buildtoolsexe% --quiet --wait --norestart --nocache --installPath "%BUILDTOOLSDIR%" --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 --remove Microsoft.VisualStudio.Component.Windows81SDK --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows10SDK || IF "%ERRORLEVEL%"=="3010" EXIT 0
echo
"Load environment variables to use Build Tools from this script"
call
%VCVARSBAT%
for
/F
"tokens=1,2 delims=;"
%%i
in
(
reqs_win
.txt
)
do
(
SET
"INSTALLEXE=
%BUILDDIR%
\
%%i
.exe"
SET
"INSTALLDIR=
%BUILDDIR%
\
%%i
"
echo
"
%INSTALLEXE%
"
echo
"
%INSTALLDIR%
"
echo
"Downloading
%%j
to
%%i
"
::curl
-L -o
"
%INSTALLEXE%
"
%%j
::
%INSTALLEXE%
/S /D
=
%INSTALLDIR%
)
::tar xvf sip-4.19.3.tar.gz -C "%BUILDDIR%"
::cd "%BUILDDIR%"\sip-*
::python "configure.py" -b "%SIPINSTALLDIR%" -d "%SIPINSTALLDIR%" -e "%SIPINSTALLDIR%" --pyidir="%SIPINSTALLDIR%"
::nmake
::nmake install
::cd %CURRENTDIR%
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