Skip to content

Commit 997c6d9

Browse files
committed
update readme with cmake procedure
1 parent 1504d5e commit 997c6d9

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

README.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,13 @@ cd FbxExporters
2525
Update the source and package:
2626
```
2727
git pull
28-
PROJECT_PATH=`pwd`
2928
FBXSDK_PACKAGE_PATH=`ls -t ../FbxSharpBuild/FbxSdk_*.unitypackage | head -1`
3029
PACKAGE_VERSION=`echo "${FBXSDK_PACKAGE_PATH}" | sed -e 's/.*\([0-9]\{1,\}\.[0-9]*\.[0-9]*[a-z]*\).*/\1/'`
3130
32-
if test `uname -s` = 'Darwin' ; then
33-
UNITY_EDITOR_PATH=/Applications/Unity/Unity.app/Contents/MacOS/Unity
34-
else
35-
UNITY_EDITOR_PATH=/opt/Unity/Editor/Unity/Unity
36-
fi
37-
rm -rf "${PROJECT_PATH}/Assets/FbxSdk"
38-
"${UNITY_EDITOR_PATH}" -projectPath "${PROJECT_PATH}" -importPackage "${FBXSDK_PACKAGE_PATH}" -quit
39-
"${UNITY_EDITOR_PATH}" -batchmode -projectPath "${PROJECT_PATH}" -exportPackage Assets/FbxExporters Assets/FbxSdk Assets/Integrations "${PROJECT_PATH}/FbxExporters_${PACKAGE_VERSION}.unitypackage" -quit
31+
mkdir FbxExporterBuild
32+
cd FbxExporterBuild
33+
cmake ../FbxExporters -DPACKAGE_VERSION=${PACKAGE_VERSION} -DFBXSDK_PACKAGE_PATH=${FBXSDK_PACKAGE_PATH}
34+
make
4035
```
4136

4237
**On Windows**
@@ -45,13 +40,11 @@ rm -rf "${PROJECT_PATH}/Assets/FbxSdk"
4540
# clone the source
4641
git clone https://github.com/Unity-Technologies/FbxExporters.git
4742
48-
set PROJECT_PATH=%cd%/FbxExporters
49-
set UNITY3D_PATH="C:/Program Files/Unity/Editor/Unity.exe"
50-
set PACKAGE_NAME=FbxExporters
5143
set PACKAGE_VERSION=0.0.5a
5244
set FBXSDK_PACKAGE_PATH=/path/to/FbxSdk.unitypackage
5345
54-
rmdir /s "%PROJECT_PATH%/Assets/FbxSdk"
55-
%UNITY3D_PATH% -projectPath "%PROJECT_PATH%" -importPackage %FBXSDK_PACKAGE_PATH% -quit
56-
%UNITY3D_PATH% -batchmode -projectPath "%PROJECT_PATH%" -exportPackage Assets/FbxExporters Assets/FbxSdk Assets/Integrations %PROJECT_PATH%/%PACKAGE_NAME%_%PACKAGE_VERSION%.unitypackage -quit
46+
mkdir FbxExporterBuild
47+
cd FbxExporterBuild
48+
cmake ../FbxExporters -G"Visual Studio 14 2015 Win64" -DPACKAGE_VERSION=%PACKAGE_VERSION% -DFBXSDK_PACKAGE_PATH=%FBXSDK_PACKAGE_PATH%
49+
cmake --build . --target ALL_BUILD --config Release
5750
```

0 commit comments

Comments
 (0)