update bundled_deps
49
bundled_deps/CMakeLists.txt
Normal file
@@ -0,0 +1,49 @@
|
||||
add_subdirectory(admesh)
|
||||
add_subdirectory(avrdude)
|
||||
add_subdirectory(miniz)
|
||||
add_subdirectory(glu-libtess)
|
||||
add_subdirectory(agg)
|
||||
add_subdirectory(libigl)
|
||||
add_subdirectory(hints)
|
||||
add_subdirectory(libnest2d)
|
||||
|
||||
add_library(semver STATIC
|
||||
semver/semver.c
|
||||
semver/semver.h
|
||||
)
|
||||
target_include_directories(semver PUBLIC semver)
|
||||
encoding_check(semver)
|
||||
|
||||
add_library(qoi STATIC
|
||||
qoi/qoilib.c
|
||||
qoi/qoi.h
|
||||
)
|
||||
target_include_directories(qoi PUBLIC qoi)
|
||||
encoding_check(qoi)
|
||||
|
||||
add_library(fastfloat INTERFACE)
|
||||
target_include_directories(fastfloat INTERFACE fast_float)
|
||||
|
||||
add_library(int128 INTERFACE)
|
||||
target_include_directories(int128 INTERFACE int128)
|
||||
|
||||
add_library(localesutils STATIC
|
||||
localesutils/LocalesUtils.cpp
|
||||
localesutils/LocalesUtils.hpp
|
||||
)
|
||||
target_include_directories(localesutils PUBLIC localesutils)
|
||||
target_link_libraries(localesutils PRIVATE fastfloat)
|
||||
|
||||
add_library(ankerl INTERFACE)
|
||||
target_include_directories(ankerl INTERFACE ankerl)
|
||||
|
||||
add_library(stb_dxt INTERFACE)
|
||||
target_include_directories(stb_dxt INTERFACE stb_dxt)
|
||||
|
||||
add_library(tcbspan INTERFACE)
|
||||
target_include_directories(tcbspan INTERFACE tcbspan)
|
||||
|
||||
if (SLIC3R_GUI)
|
||||
add_subdirectory(imgui)
|
||||
add_subdirectory(hidapi)
|
||||
endif ()
|
||||
16
bundled_deps/admesh/CMakeLists.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
cmake_minimum_required(VERSION 2.8.12)
|
||||
project(admesh)
|
||||
|
||||
add_library(admesh STATIC
|
||||
admesh/connect.cpp
|
||||
admesh/normals.cpp
|
||||
admesh/shared.cpp
|
||||
admesh/stl.h
|
||||
admesh/stl_io.cpp
|
||||
admesh/stlinit.cpp
|
||||
admesh/util.cpp
|
||||
)
|
||||
|
||||
target_include_directories(admesh PUBLIC .)
|
||||
target_link_libraries(admesh PRIVATE boost_headeronly localesutils)
|
||||
target_link_libraries(admesh PUBLIC Eigen3::Eigen)
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "stl.h"
|
||||
|
||||
#include "libslic3r/LocalesUtils.hpp"
|
||||
#include <LocalesUtils.hpp>
|
||||
|
||||
void stl_generate_shared_vertices(stl_file *stl, indexed_triangle_set &its)
|
||||
{
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "stl.h"
|
||||
|
||||
#include "libslic3r/LocalesUtils.hpp"
|
||||
#include <LocalesUtils.hpp>
|
||||
|
||||
#ifndef SEEK_SET
|
||||
#error "SEEK_SET not defined"
|
||||
5
bundled_deps/agg/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
project(agg)
|
||||
|
||||
add_library(agg INTERFACE)
|
||||
target_include_directories(agg INTERFACE .)
|
||||
107
bundled_deps/avrdude/CMakeLists.txt
Normal file
@@ -0,0 +1,107 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
add_definitions(-D_BSD_SOURCE -D_DEFAULT_SOURCE) # To enable various useful macros and functions on Unices
|
||||
remove_definitions(-D_UNICODE -DUNICODE)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
# Workaround for an old CMake, which does not understand CMAKE_C_STANDARD.
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall")
|
||||
endif()
|
||||
|
||||
|
||||
set(AVRDUDE_SOURCES
|
||||
avrdude/arduino.c
|
||||
avrdude/avr.c
|
||||
# avrdude/avrftdi.c
|
||||
# avrdude/avrftdi_tpi.c
|
||||
avrdude/avrpart.c
|
||||
avrdude/avr910.c
|
||||
avrdude/bitbang.c
|
||||
avrdude/buspirate.c
|
||||
avrdude/butterfly.c
|
||||
avrdude/config.c
|
||||
avrdude/config_gram.c
|
||||
# avrdude/confwin.c
|
||||
avrdude/crc16.c
|
||||
# avrdude/dfu.c
|
||||
avrdude/fileio.c
|
||||
# avrdude/flip1.c
|
||||
# avrdude/flip2.c
|
||||
# avrdude/ft245r.c
|
||||
# avrdude/jtagmkI.c
|
||||
# avrdude/jtagmkII.c
|
||||
# avrdude/jtag3.c
|
||||
avrdude/lexer.c
|
||||
avrdude/linuxgpio.c
|
||||
avrdude/lists.c
|
||||
# avrdude/par.c
|
||||
avrdude/pgm.c
|
||||
avrdude/pgm_type.c
|
||||
avrdude/pickit2.c
|
||||
avrdude/pindefs.c
|
||||
# avrdude/ppi.c
|
||||
# avrdude/ppiwin.c
|
||||
avrdude/safemode.c
|
||||
avrdude/ser_avrdoper.c
|
||||
avrdude/serbb_posix.c
|
||||
avrdude/serbb_win32.c
|
||||
avrdude/ser_posix.c
|
||||
avrdude/ser_win32.c
|
||||
avrdude/stk500.c
|
||||
avrdude/stk500generic.c
|
||||
avrdude/stk500v2.c
|
||||
avrdude/term.c
|
||||
avrdude/update.c
|
||||
# avrdude/usbasp.c
|
||||
# avrdude/usb_hidapi.c
|
||||
# avrdude/usb_libusb.c
|
||||
# avrdude/usbtiny.c
|
||||
avrdude/wiring.c
|
||||
|
||||
avrdude/main.c
|
||||
avrdude/avrdude-slic3r.hpp
|
||||
avrdude/avrdude-slic3r.cpp
|
||||
)
|
||||
if (MSVC)
|
||||
set(AVRDUDE_SOURCES ${AVRDUDE_SOURCES}
|
||||
avrdude/windows/utf8.c
|
||||
avrdude/windows/unistd.cpp
|
||||
avrdude/windows/getopt.c
|
||||
)
|
||||
elseif (MINGW)
|
||||
set(AVRDUDE_SOURCES ${AVRDUDE_SOURCES}
|
||||
avrdude/windows/utf8.c
|
||||
)
|
||||
endif()
|
||||
|
||||
include(bin2h)
|
||||
|
||||
bin2h(
|
||||
SOURCE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/avrdude/avrdude-slic3r.conf
|
||||
VARIABLE_NAME avrdude_slic3r_conf
|
||||
HEADER_FILE ${CMAKE_CURRENT_BINARY_DIR}/avrdude-slic3r.conf.h
|
||||
ADD_WARNING_TEXT
|
||||
)
|
||||
|
||||
add_library(avrdude STATIC ${AVRDUDE_SOURCES})
|
||||
target_link_libraries(avrdude PRIVATE localesutils)
|
||||
|
||||
add_executable(avrdude-slic3r avrdude/main-standalone.cpp)
|
||||
target_link_libraries(avrdude-slic3r avrdude)
|
||||
|
||||
encoding_check(avrdude)
|
||||
encoding_check(avrdude-slic3r)
|
||||
|
||||
# Make avrdude-slic3r.conf.h includable:
|
||||
target_include_directories(avrdude SYSTEM PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
||||
target_include_directories(avrdude PUBLIC .)
|
||||
|
||||
if (WIN32)
|
||||
target_compile_definitions(avrdude PRIVATE WIN32NATIVE=1)
|
||||
if(MSVC)
|
||||
target_include_directories(avrdude SYSTEM PRIVATE avrdude/windows) # So that sources find the getopt.h windows drop-in
|
||||
endif(MSVC)
|
||||
endif()
|
||||
@@ -172,7 +172,7 @@
|
||||
#define PACKAGE "avrdude-slic3r"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "https://github.com/prusa3d/QIDISlicer/issues"
|
||||
#define PACKAGE_BUGREPORT "https://github.com/QIDITECH/QIDISlicer/issues"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "avrdude-slic3r"
|
||||
@@ -184,7 +184,7 @@
|
||||
#define PACKAGE_TARNAME "avrdude-slic3r"
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#define PACKAGE_URL "https://github.com/prusa3d/QIDISlicer"
|
||||
#define PACKAGE_URL "https://github.com/QIDITECH/QIDISlicer"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "6.3-20160220"
|
||||
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 703 B After Width: | Height: | Size: 703 B |
|
Before Width: | Height: | Size: 583 B After Width: | Height: | Size: 583 B |
|
Before Width: | Height: | Size: 798 B After Width: | Height: | Size: 798 B |
|
Before Width: | Height: | Size: 98 B After Width: | Height: | Size: 98 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 156 B After Width: | Height: | Size: 156 B |
|
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 199 B |
|
Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 164 B |
|
Before Width: | Height: | Size: 198 B After Width: | Height: | Size: 198 B |
|
Before Width: | Height: | Size: 340 B After Width: | Height: | Size: 340 B |
|
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 177 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |