Skip to content

Commit

Permalink
Update for Maya 2018
Browse files Browse the repository at this point in the history
Update script for Maya 2018, tested on Windows.

Need to test on osx and linux
  • Loading branch information
iamsleepy committed Aug 24, 2017
1 parent e09eb6f commit eebf7cb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions linux/pyqt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MAYAQTBUILD="`dirname \"$0\"`" # Relative
export MAYAQTBUILD="`( cd \"$MAYAQTBUILD\" && pwd )`" # Absolutized and normalized
pushd $MAYAQTBUILD

export MAYA_LOCATION=/usr/autodesk/maya2017
export MAYA_LOCATION=/usr/autodesk/maya2018
export QTDIR=$MAYA_LOCATION
export DEVKIT_LOCATION=$MAYA_LOCATION
export QMAKESPEC=$QTDIR/mkspecs/linux-g++-64
Expand Down Expand Up @@ -43,8 +43,8 @@ then
exit
fi

export SIPDIR=$MAYAQTBUILD/sip-4.18.1
export PYQTDIR=$MAYAQTBUILD/PyQt5_gpl-5.7
export SIPDIR=$MAYAQTBUILD/sip-4.19.3
export PYQTDIR=$MAYAQTBUILD/PyQt5_gpl-5.9

pushd $PYQTDIR
export PATH=$QTDIR/bin:$PATH
Expand Down
4 changes: 2 additions & 2 deletions linux/sip
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ MAYAQTBUILD="`dirname \"$0\"`" # Relative
export MAYAQTBUILD="`( cd \"$MAYAQTBUILD\" && pwd )`" # Absolutized and normalized
pushd $MAYAQTBUILD

export SIPDIR=$MAYAQTBUILD/sip-4.18.1
export MAYA_LOCATION=/usr/autodesk/maya2017
export SIPDIR=$MAYAQTBUILD/sip-4.19.3
export MAYA_LOCATION=/usr/autodesk/maya2018

pushd $SIPDIR
$MAYA_LOCATION/bin/mayapy ./configure.py
Expand Down
10 changes: 5 additions & 5 deletions osx/pyqt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ MAYAQTBUILD="`dirname \"$0\"`" # Relative
export MAYAQTBUILD="`( cd \"$MAYAQTBUILD\" && pwd )`" # Absolutized and normalized
pushd $MAYAQTBUILD

export MAYA_LOCATION=/Applications/Autodesk/maya2017/Maya.app/Contents
export DEVKIT_LOCATION=/Applications/Autodesk/maya2017
export MAYA_LOCATION=/Applications/Autodesk/maya2018/Maya.app/Contents
export DEVKIT_LOCATION=/Applications/Autodesk/maya2018
export QTDIR=$DEVKIT_LOCATION/devkit
export QMAKESPEC=$DEVKIT_LOCATION/mkspecs/macx-clang
export INCDIR_QT=$DEVKIT_LOCATION/include/Qt
Expand Down Expand Up @@ -56,8 +56,8 @@ fi
export DYLD_LIBRARY_PATH=$MAYA_LOCATION/MacOS
export DYLD_FRAMEWORK_PATH=$MAYA_LOCATION/Frameworks

export SIPDIR=$MAYAQTBUILD/sip-4.18.1
export PYQTDIR=$MAYAQTBUILD/PyQt5_gpl-5.7
export SIPDIR=$MAYAQTBUILD/sip-4.19.3
export PYQTDIR=$MAYAQTBUILD/PyQt5_gpl-5.9

export SIP_EXE=$MAYA_LOCATION/Frameworks/Python.framework/Versions/2.7/bin/sip
export SIP_INCLUDE=$MAYA_LOCATION/Frameworks/Python.framework/Versions/2.7/include/python2.7
Expand All @@ -75,7 +75,7 @@ echo -----------
qmake -query
echo -----------
echo
$MAYA_LOCATION/bin/mayapy ./configure.py QMAKE_MAC_SDK=macosx10.9 QMAKE_RPATHDIR+=$LIBDIR_QT --sip=$SIP_EXE --sip-incdir=$SIP_INCLUDE -w --no-designer-plugin
$MAYA_LOCATION/bin/mayapy ./configure.py QMAKE_MAC_SDK=macosx10.11 QMAKE_RPATHDIR+=$LIBDIR_QT --sip=$SIP_EXE --sip-incdir=$SIP_INCLUDE -w --no-designer-plugin
make -j 8
sudo make install
popd
Expand Down
4 changes: 2 additions & 2 deletions osx/sip
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ MAYAQTBUILD="`dirname \"$0\"`" # Relative
export MAYAQTBUILD="`( cd \"$MAYAQTBUILD\" && pwd )`" # Absolutized and normalized
pushd $MAYAQTBUILD

export SIPDIR=$MAYAQTBUILD/sip-4.18.1
export MAYA_LOCATION=/Applications/Autodesk/maya2017
export SIPDIR=$MAYAQTBUILD/sip-4.19.3
export MAYA_LOCATION=/Applications/Autodesk/maya2018

pushd $SIPDIR
$MAYA_LOCATION/Maya.app/Contents/bin/mayapy ./configure.py --arch=x86_64
Expand Down
10 changes: 5 additions & 5 deletions win/setup.bat
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@echo off

set MAYAVERSION=2017
set MAYAVERSION=2018
set ADSKQTVERSION=5.6.1
set SIPVERSION=4.18.1
set PYQTVERSION=5.7
set SIPVERSION=4.19.3
set PYQTVERSION=5.9
set MAYADRIVE=m:
set BUILDDRIVE=v:

Expand All @@ -24,8 +24,8 @@ rem set ADSKQTDIR=%BUILDDRIVE%\qt-%ADSKQTVERSION%
set QTDIR=%MAYA_LOCATION%

set PATH=%QTDIR%\bin;%PATH%
set MSVC_VERSION=2012
set MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio 11.0
set MSVC_VERSION=2015
set MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio 14.0
set QMAKESPEC=%QTDIR%\mkspecs\win32-msvc%MSVC_VERSION%
set _QMAKESPEC_=win32-msvc%MSVC_VERSION%

Expand Down

0 comments on commit eebf7cb

Please sign in to comment.