kopia lustrzana https://github.com/pimoroni/pimoroni-pico
JPEGDEC: Add CMake files.
rodzic
7dbec2add6
commit
bb2db8423e
|
@ -31,3 +31,4 @@ add_subdirectory(tufty2040)
|
|||
add_subdirectory(servo2040)
|
||||
add_subdirectory(motor2040)
|
||||
add_subdirectory(adcfft)
|
||||
add_subdirectory(jpegdec)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
include(jpegdec.cmake)
|
|
@ -0,0 +1,16 @@
|
|||
#include "JPEGDEC.h"
|
||||
/*
|
||||
int32_t readRAM(JPEGFILE *pFile, uint8_t *pBuf, int32_t iLen) {
|
||||
return 0;
|
||||
}
|
||||
int32_t seekMem(JPEGFILE *pFile, int32_t iPosition) {
|
||||
return 0;
|
||||
}
|
||||
int32_t readFile(JPEGFILE *pFile, uint8_t *pBuf, int32_t iLen) {
|
||||
return 0;
|
||||
}
|
||||
int32_t seekFile(JPEGFILE *pFile, int32_t iPosition) {
|
||||
return 0;
|
||||
}
|
||||
void closeFile(void *handle) {
|
||||
}*/
|
|
@ -0,0 +1,10 @@
|
|||
add_library(jpegdec
|
||||
${CMAKE_CURRENT_LIST_DIR}/jpeg.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/JPEGDEC.cpp
|
||||
)
|
||||
|
||||
set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/JPEGDEC.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=unused-function")
|
||||
|
||||
target_include_directories(jpegdec INTERFACE ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
target_link_libraries(jpegdec pico_stdlib)
|
Ładowanie…
Reference in New Issue