Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,30 @@ jobs:
qtdeclarative5-dev \
qtquickcontrols2-5-dev\
python3 \
uuid-dev
uuid-dev \
build-essential ninja-build rsync pkg-config curl \
libgl1-mesa-dev libglu1-mesa-dev xorg-dev


- name: Build OCCT SDK (Linux)
run: |
set -e

# ��ֹ Windows �ύ�� CRLF �� Ubuntu ���������� "sh\r" / "bash\r"
# ����ǰ CI �����������ԭ��/usr/bin/env: 'sh\r': No such file or directory��
if [ -d "AliceThirdParty/scripts" ]; then
find AliceThirdParty/scripts -maxdepth 1 -name "*.sh" -print0 | xargs -0 sed -i 's/\r$//'
chmod +x AliceThirdParty/scripts/*.sh
fi

# If OCCT SDK is not present in the repo snapshot, build it in CI and export into Externals/3rdParty.
if [ ! -f "Externals/3rdParty/sdk/linux-x64/Release/occt/lib/cmake/opencascade/OpenCASCADEConfig.cmake" ] && \
[ ! -f "Externals/3rdParty/sdk/linux-x64/Release/occt/cmake/OpenCASCADEConfig.cmake" ]; then
bash AliceThirdParty/scripts/build-occt.sh Release x64-linux
bash AliceThirdParty/scripts/export-occt-sdk.sh Release "$GITHUB_WORKSPACE"
else
echo "OCCT SDK already exists in Externals/3rdParty/sdk/linux-x64/Release/occt"
fi



Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ThirdParty SDK output (do NOT commit)
Externals/3rdParty/sdk/**
Externals/3rdParty/runtime/**
Externals/3rdParty/sdk/msvc2022-x64-md/Debug/occt/data/*.*
Externals/3rdParty/sdk/msvc2022-x64-md/Debug/occt/win64/vc14/bind/*.pdb
Externals/3rdParty/install/**
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
path = AliceThirdParty
url = git@github.com:Ludwigstrasse/AliceThirdParty.git
branch = main
[submodule "Externals/3rdParty/sdk"]
path = Externals/3rdParty/sdk
url = git@github.com:Ludwigstrasse/AliceSdk.git
branch = main
2 changes: 1 addition & 1 deletion Alice
Submodule Alice updated from a94b89 to fd7b1c
4 changes: 2 additions & 2 deletions AutoGenerateVsProject.bat
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ echo %cd%
echo "Start to cmake... ..."

:: -B 指定工程的输出路径 -H 指定CMAKELIST.TXT的路径
..\SolidDesigner\ToolChain\cmake\bin\cmake.exe -B ..\SolidDesigner_Build -H..\SolidDesigner -DCMAKE_GENERATOR_PLATFORM=x64 -G "Visual Studio 16 2019"
..\SolidDesigner\ToolChain\cmake\bin\cmake.exe -B ..\SolidDesigner_Build -H..\SolidDesigner -DCMAKE_GENERATOR_PLATFORM=x64 -G "Visual Studio 17 2022"

if errorlevel 1 (
echo "CMake failed."
Expand All @@ -80,7 +80,7 @@ if %errorlevel% neq 0 (
echo "devenv.exe is not running. Starting a new instance..."
echo "Opening Visual Studio..."
::start "" "%VS140COMNTOOLS%\..\IDE\devenv.exe" "%cd%\SolidDesigner.sln"
start "" "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\IDE\\devenv.exe" "%cd%\SolidDesigner.sln"
start "" "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\IDE\\devenv.exe" "%cd%\SolidDesigner.sln"
) else (
echo "devenv.exe is already running with PID %vs_pid%. Proceeding to open project..."
)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions Externals/3rdParty/sdk
Submodule sdk added at 27aa89
15 changes: 13 additions & 2 deletions copyDllToBuildDir.bat
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,19 @@ xcopy C:\Qt\Qt5.15.14\5.15.14\msvc2019_64\bin\Qt5Widgets.dll %CURRENT_NEW_DIR%\x
xcopy C:\Qt\Qt5.15.14\5.15.14\msvc2019_64\bin\Qt5Network.dll %CURRENT_NEW_DIR%\x64\Debug /s /e /c /y /h /r

::拷贝source/resource目录下所有的资源到bin目录
xcopy .\Designer\Data\*.* %CURRENT_NEW_DIR%\x64\Release\Data /s /h
xcopy .\Designer\Data\*.* %CURRENT_NEW_DIR%\x64\Debug\Data /s /h
xcopy .\Designer\Data\*.* %CURRENT_NEW_DIR%\x64\Release\Data /E /I /H /Y
xcopy .\Designer\Data\*.* %CURRENT_NEW_DIR%\x64\Debug\Data /E /I /H /Y

::拷贝Externals/3rdParty/runtime(sdk)
:: /I:避免提示 “Does ... specify a file name or directory name on the target…”
:: /E:拷贝子目录(包含空目录)
:: /Y:覆盖不提示
:: /S:拷贝子目录(不含空目录)
:: /H:包含隐藏/系统文件
xcopy .\Externals\3rdParty\runtime\*.* %CURRENT_NEW_DIR%\x64\Release\runtime /E /I /H /Y
xcopy .\Externals\3rdParty\runtime\*.* %CURRENT_NEW_DIR%\x64\Debug\runtime /E /I /H /Y

xcopy .\Externals\3rdParty\sdk\*.* %CURRENT_NEW_DIR%\x64\Release\sdk /E /I /H /Y
xcopy .\Externals\3rdParty\sdk\*.* %CURRENT_NEW_DIR%\x64\Debug\sdk /E /I /H /Y
pause
exit