Skip to content

Commit a93b9bf

Browse files
committed
Merge branch 'release-0915' into HEAD
1 parent 8f88ad1 commit a93b9bf

381 files changed

Lines changed: 22326 additions & 2385 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BuildLinux_clang.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ then
166166
then
167167
BUILD_ARGS="${BUILD_ARGS} -DCMAKE_BUILD_TYPE=Debug -DBBL_INTERNAL_TESTING=1"
168168
else
169-
BUILD_ARGS="${BUILD_ARGS} -DBBL_RELEASE_TO_PUBLIC=1 -DBBL_INTERNAL_TESTING=0 -DUPDATE_ONLINE_MACHINES=1"
169+
#BUILD_ARGS="${BUILD_ARGS} -DBBL_RELEASE_TO_PUBLIC=1 -DBBL_INTERNAL_TESTING=0 -DUPDATE_ONLINE_MACHINES=1"
170+
BUILD_ARGS="${BUILD_ARGS} -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBBL_RELEASE_TO_PUBLIC=1 -DBBL_INTERNAL_TESTING=0 -DUPDATE_ONLINE_MACHINES=1"
170171
fi
171172
echo -e "cmake -S . -B build -G Ninja -DCMAKE_PREFIX_PATH="${DPS_PATH}/usr/local" -DSLIC3R_STATIC=1 ${BUILD_ARGS}"
172173
cmake -S . -B build -G Ninja \

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ function(crealityprint_copy_dlls target config postfix output_dlls)
766766
${CMAKE_PREFIX_PATH}/bin/occt/TKXDESTEP.dll
767767
${CMAKE_PREFIX_PATH}/bin/occt/TKXSBase.dll
768768
${CMAKE_PREFIX_PATH}/bin/freetype.dll
769+
${CMAKE_PREFIX_PATH}/bin/cr_tpms_library.dll
769770
DESTINATION ${_out_dir})
770771
set(FFMPEG_LIBRARIES_OUTPUT_LIBS "")
771772
find_package(FFmpeg)
@@ -835,6 +836,7 @@ function(crealityprint_copy_dlls target config postfix output_dlls)
835836
)
836837
endif()
837838
set(${output_dlls}
839+
${_out_dir}/cr_tpms_library.dll
838840
${_out_dir}/libgmp-10.dll
839841
${_out_dir}/libmpfr-4.dll
840842
${_out_dir}/WebView2Loader.dll

CMakePresets.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@
114114
"CMAKE_CXX_COMPILER": "/usr/bin/clang++",
115115
"CMAKE_C_COMPILER": "/usr/bin/clang",
116116
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
117-
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache"
117+
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
118+
"SLIC3R_STATIC":"1"
118119
}
119120
},
120121
{

cmake/modules/NSIS.template.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,9 @@ Jump_Del_Thumb:
10231023
DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@"
10241024

10251025
;Remove the installation directory if it is empty.
1026+
; 清理安装目录下可能存在的 log 文件夹
1027+
RMDir /r "$INSTDIR\log"
1028+
10261029
RMDir "$INSTDIR"
10271030
; 判断上级目录是否为 Creality
10281031
GetFullPathName $R0 "$INSTDIR\.."

deps/CMakeLists.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ include(OpenVDB/OpenVDB.cmake)
290290

291291
include(GMP/GMP.cmake)
292292
include(MPFR/MPFR.cmake)
293+
include(CR_TPMS/cr_tpms.cmake)
293294
include(CGAL/CGAL.cmake)
294295

295296
include(NLopt/NLopt.cmake)
@@ -356,7 +357,7 @@ endif ()
356357

357358

358359
include(FFmpeg/ffmpeg.cmake)
359-
360+
include(paho-mqtt/paho-mqtt.cmake)
360361
include(OCCT/OCCT.cmake)
361362
include(OpenCV/OpenCV.cmake)
362363
include(aliyun-oss-cpp-sdk/aliyun-oss-cpp-sdk.cmake)
@@ -391,6 +392,8 @@ if(ENABLE_BREAKPAD)
391392
dep_BREAKPAD
392393
dep_Assimp
393394
dep_FFmpeg
395+
dep_MQTTC
396+
dep_MQTT
394397
)
395398
else()
396399
message(STATUS "Breakpad is disabled...")
@@ -414,6 +417,8 @@ else()
414417
${EXPAT_PKG}
415418
dep_OSS
416419
dep_Assimp
420+
dep_MQTTC
421+
dep_MQTT
417422
)
418423
endif()
419424

@@ -423,8 +428,10 @@ endif()
423428
if (MSVC)
424429
# Experimental
425430
#list(APPEND _dep_list "dep_qhull")
431+
list(APPEND _dep_cr_tpms "dep_CR_TPMS")
426432
else()
427433
list(APPEND _dep_list "dep_Qhull")
434+
list(APPEND _dep_cr_tpms "dep_CR_TPMS")
428435
# list(APPEND _dep_list "dep_x264") #mac need build x264
429436
# Not working, static build has different Eigen
430437
#list(APPEND _dep_list "dep_libigl")
@@ -433,7 +440,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
433440
include(ZSTD/ZSTD.cmake)
434441
list(APPEND _dep_list_first "dep_zstd")
435442
endif()
436-
add_custom_target(deps ALL DEPENDS ${_dep_list_first} ${_dep_list} )
443+
add_custom_target(deps ALL DEPENDS ${_dep_list_first} ${_dep_list} ${_dep_cr_tpms} )
437444

438445
# Note: I'm not using any of the LOG_xxx options in ExternalProject_Add() commands
439446
# because they seem to generate bogus build files (possibly a bug in ExternalProject).

deps/CR_TPMS/cr_tpms.cmake

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
set(_srcdir ${CMAKE_CURRENT_LIST_DIR}/cr_tpms)
2+
3+
if (MSVC)
4+
set(_output ${DESTDIR}/include/cr_tpms_library.h
5+
${DESTDIR}/lib/cr_tpms_library.lib
6+
${DESTDIR}/bin/cr_tpms_library.dll)
7+
8+
add_custom_command(
9+
OUTPUT ${_output}
10+
COMMAND ${CMAKE_COMMAND} -E copy ${_srcdir}/include/cr_tpms_library.h ${DESTDIR}/include/
11+
COMMAND ${CMAKE_COMMAND} -E copy ${_srcdir}/lib/win${DEPS_BITS}/cr_tpms_library.lib ${DESTDIR}/lib/
12+
COMMAND ${CMAKE_COMMAND} -E copy ${_srcdir}/lib/win${DEPS_BITS}/cr_tpms_library.dll ${DESTDIR}/bin/
13+
)
14+
15+
add_custom_target(dep_CR_TPMS SOURCES ${_output})
16+
17+
elseif(APPLE)
18+
set(_output ${DESTDIR}/include/cr_tpms_library.h
19+
${DESTDIR}/lib/libcr_tpms_library.a)
20+
21+
add_custom_command(
22+
OUTPUT ${_output}
23+
COMMAND ${CMAKE_COMMAND} -E copy ${_srcdir}/include/cr_tpms_library.h ${DESTDIR}/include/
24+
COMMAND ${CMAKE_COMMAND} -E copy ${_srcdir}/lib/mac/${CMAKE_SYSTEM_PROCESSOR}/libcr_tpms_library.a ${DESTDIR}/lib/
25+
)
26+
add_custom_target(dep_CR_TPMS SOURCES ${_output})
27+
message(STATUS "CR_TPMS Mac _output: ${_srcdir}/lib/mac/${CMAKE_SYSTEM_PROCESSOR}/libcr_tpms_library.a")
28+
message(STATUS "${DESTDIR}/lib/libcr_tpms_library.a")
29+
elseif(UNIX)
30+
set(_output ${DESTDIR}/include/cr_tpms_library.h
31+
${DESTDIR}/lib/libcr_tpms_library.a)
32+
33+
add_custom_command(
34+
OUTPUT ${_output}
35+
COMMAND ${CMAKE_COMMAND} -E copy ${_srcdir}/include/cr_tpms_library.h ${DESTDIR}/include/
36+
COMMAND ${CMAKE_COMMAND} -E copy ${_srcdir}/lib/linux/${CMAKE_SYSTEM_PROCESSOR}/libcr_tpms_library.a ${DESTDIR}/lib/
37+
)
38+
39+
add_custom_target(dep_CR_TPMS SOURCES ${_output})
40+
message(STATUS "CR_TPMS Linux _output: ${CMAKE_SYSTEM_PROCESSOR}")
41+
endif ()
42+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#ifndef CR_TPMS_LIBRARY_H
2+
#define CR_TPMS_LIBRARY_H
3+
4+
#ifdef _WIN32
5+
#ifdef CR_TPMS_LIBRARY_EXPORTS
6+
#define CR_TPMS_API __declspec(dllexport)
7+
#else
8+
#define CR_TPMS_API __declspec(dllimport)
9+
#endif
10+
#else
11+
#define CR_TPMS_API __attribute__((visibility("default")))
12+
#endif
13+
14+
#ifdef __cplusplus
15+
extern "C" {
16+
#endif
17+
18+
// 主标量场函数
19+
CR_TPMS_API float scalar_function_test(float x, float y, float z,
20+
float bbox_min_x, float bbox_min_y, float bbox_min_z,
21+
float bbox_max_x, float bbox_max_y, float bbox_max_z,
22+
int axis, int celltype,
23+
float infill_density1, float infill_density2);
24+
25+
#ifdef __cplusplus
26+
}
27+
#endif
28+
29+
#endif // CR_TPMS_LIBRARY_H
4.73 KB
Binary file not shown.
7.16 KB
Binary file not shown.
4.73 KB
Binary file not shown.

0 commit comments

Comments
 (0)