fully rebuilt cmake configuration files
This commit is contained in:
parent
c12813e0c1
commit
bed05ab8e9
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1 +0,0 @@
|
|||
# dummy
|
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
project(Libcjpg VERSION 1.5.30 LANGUAGES C)
|
||||
project(cJPEG VERSION 1.5.30 LANGUAGES C)
|
||||
|
||||
set(SOURCES
|
||||
jcapimin.c
|
||||
|
@ -50,16 +50,19 @@ set(SOURCES
|
|||
jmemname.c
|
||||
)
|
||||
|
||||
# Target name is "cJPG", output file is "libcJPG.a" (by default)
|
||||
add_library(cJPG STATIC ${SOURCES})
|
||||
target_compile_options(cJPG PRIVATE -Os -std=c11)
|
||||
# After building, install the target (that is, libcJPG.a) in the compiler
|
||||
install(TARGETS cJPG
|
||||
# Target name is "cJPEG", output file is "libcJPEG.a" (by default)
|
||||
add_library(cJPEG STATIC ${SOURCES})
|
||||
target_compile_options(cJPEG PRIVATE -Os -std=c11)
|
||||
|
||||
# After building, install the target (that is, libcJPEG.a) in the compiler
|
||||
install(TARGETS cJPEG
|
||||
DESTINATION "${FXSDK_LIB}")
|
||||
|
||||
# Install headers from the source dir
|
||||
install(FILES jpeglib.h jconfig.h jmorecfg.h jerror.h
|
||||
DESTINATION "${FXSDK_INCLUDE}")
|
||||
# Install FindcPNG.cmake so that users can do find_package(LibcPNG)
|
||||
install(FILES cmake/FindcJPG.cmake
|
||||
|
||||
# Install FindcJPEG.cmake so that users can do find_package(LibcJPEG)
|
||||
install(FILES cmake/FindcJPEG.cmake
|
||||
DESTINATION "${FXSDK_CMAKE_MODULE_PATH}")
|
||||
|
||||
|
|
|
@ -1,71 +0,0 @@
|
|||
INCLUDE = -I./include -I/home/sylvain/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/11.1.0/include/openlibm/
|
||||
CFLAGS = -O2 $(INCLUDE) -lm -m4-nofpu -mb -ffreestanding -nostdlib -Wa,--dsp
|
||||
AR = sh-elf-gcc-ar
|
||||
RANLIB = sh-elf-gcc-ranlib
|
||||
CC = sh-elf-gcc
|
||||
|
||||
CONFIG_H = jconfig.h
|
||||
TARGET = libcJPG.a
|
||||
SOURCES = \
|
||||
jcapimin.c \
|
||||
jcapistd.c \
|
||||
jdapimin.c \
|
||||
jdapistd.c \
|
||||
jcomapi.c \
|
||||
jcparam.c \
|
||||
jctrans.c \
|
||||
jdtrans.c \
|
||||
jcinit.c \
|
||||
jcmaster.c \
|
||||
jcmainct.c \
|
||||
jcprepct.c \
|
||||
jccoefct.c \
|
||||
jccolor.c \
|
||||
jcsample.c \
|
||||
jcdctmgr.c \
|
||||
jfdctint.c \
|
||||
jfdctfst.c \
|
||||
jfdctflt.c \
|
||||
jchuff.c \
|
||||
jcarith.c \
|
||||
jcmarker.c \
|
||||
jdatadst.c \
|
||||
jdmaster.c \
|
||||
jdinput.c \
|
||||
jdmainct.c \
|
||||
jdcoefct.c \
|
||||
jdpostct.c \
|
||||
jdmarker.c \
|
||||
jdhuff.c \
|
||||
jdarith.c \
|
||||
jddctmgr.c \
|
||||
jidctint.c \
|
||||
jidctfst.c \
|
||||
jidctflt.c \
|
||||
jdsample.c \
|
||||
jdcolor.c \
|
||||
jdmerge.c \
|
||||
jquant1.c \
|
||||
jquant2.c \
|
||||
jdatasrc.c \
|
||||
jaricom.c \
|
||||
jerror.c \
|
||||
jmemmgr.c \
|
||||
jutils.c \
|
||||
jmemname.c \
|
||||
|
||||
|
||||
OBJECTS = $(SOURCES:.c=.o)
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJECTS)
|
||||
#cp $(CONFIG_H).default $(CONFIG_H)
|
||||
$(AR) cr $@ $^
|
||||
$(RANLIB) $@
|
||||
|
||||
.c.o:
|
||||
$(CC) $(INCLUDE) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS) $(TARGET)
|
23
README.md
23
README.md
|
@ -1,18 +1,23 @@
|
|||
# libJPEG v9d sources for Casio Graph 90+E and Prizm CG10/20
|
||||
# libJPEG v9d (a.k.a. 9.2) sources for Casio Graph 90+E and Prizm CG10/20
|
||||
|
||||
Need to have a fully working gcc toolchain for SH3/SH4 architecture.
|
||||
|
||||
Compilation is done by using the adhoc Makefile :
|
||||
`make -f Makefile.prizm` in the main directory
|
||||
You can use the `giteapc install Slyvtt/cJPEG` command to get an automatic install
|
||||
|
||||
It should produce the library libcJPG.a
|
||||
## Using in a program
|
||||
|
||||
The following steps are not automatically done, so please proceed with the following manipulations :
|
||||
With CMake
|
||||
|
||||
```cmake
|
||||
find_package(cJPEG 9.2 REQUIRED)
|
||||
target_link_libraries(<TARGET> PRIVATE cJPEG::cJPEG)
|
||||
```
|
||||
|
||||
|
||||
With make, the following steps are not automatically done, so please proceed with the following manipulations :
|
||||
* copy the library libcJPG.a into your SH3/SH4 compiler lib folder
|
||||
* copy header files (`jpeglib.h`, `jconfig.h`, `jmorecfg.h` and `jerror.h` ) contained in the folder into the include folder of the SH3/SH4 compiler
|
||||
* link with `-lcJPEG`
|
||||
|
||||
|
||||
when you compile a program for use with libJPG, do not forget to add a `-lcJPG` option in your compilator command line.
|
||||
|
||||
and then a `#include <jpeglib.h>` (you may also add `#include <jerror.h>`) in your C/C++ sources.
|
||||
In the C/C++ sources, add `#include <jpeglib.h>` (you may also add `#include <jerror.h>`)
|
||||
|
||||
|
|
8
build
8
build
|
@ -1,8 +0,0 @@
|
|||
make -f Makefile.prizm clean
|
||||
make -f Makefile.prizm
|
||||
cp libcJPG.a ~/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/11.1.0/
|
||||
cp ./jpeglib.h ~/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/11.1.0/include
|
||||
cp ./jconfig.h ~/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/11.1.0/include
|
||||
cp ./jmorecfg.h ~/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/11.1.0/include
|
||||
cp ./jerror.h ~/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/11.1.0/include
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
include(FindSimpleLibrary)
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
find_simple_library(libcJPEG.a jpeglib.h _
|
||||
PATH_VAR CJPEG_PATH
|
||||
OTHER_MACROS JPEG_LIB_VERSION_MAJOR JPEG_LIB_VERSION_MINOR)
|
||||
|
||||
set(CJPEG_VERSION "${JPEG_LIB_VERSION_MAJOR}.${JPEG_LIB_VERSION_MINOR}")
|
||||
|
||||
find_package_handle_standard_args(cJPG
|
||||
REQUIRED_VARS CJPG_PATH
|
||||
VERSION_VAR CJPEG_VERSION)
|
||||
|
||||
if(cJPEG_FOUND)
|
||||
add_library(cJPEG::cJPEG UNKNOWN IMPORTED)
|
||||
set_target_properties(cJPEG::cJPEG PROPERTIES
|
||||
IMPORTED_LOCATION "${CJPEG_PATH}"
|
||||
INTERFACE_LINK_OPTIONS "-lm;-lcJPEG")
|
||||
endif()
|
|
@ -1,19 +0,0 @@
|
|||
include(FindSimpleLibrary)
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
find_simple_library(libcJPG.a jpeglib.h _
|
||||
PATH_VAR CJPG_PATH
|
||||
OTHER_MACROS JPEG_LIB_VERSION_MAJOR JPEG_LIB_VERSION_MINOR)
|
||||
|
||||
set(JPEG_VERSION "${JPEG_LIB_VERSION_MAJOR}.${JPEG_LIB_VERSION_MINOR}")
|
||||
|
||||
find_package_handle_standard_args(cJPG
|
||||
REQUIRED_VARS CJPG_PATH
|
||||
VERSION_VAR JPEG_VERSION)
|
||||
|
||||
if(cJPG_FOUND)
|
||||
add_library(cJPG::cJPG UNKNOWN IMPORTED)
|
||||
set_target_properties(cJPG::cJPG PROPERTIES
|
||||
IMPORTED_LOCATION "${CJPG_PATH}"
|
||||
INTERFACE_LINK_OPTIONS "-lm;-lcJPG")
|
||||
endif()
|
BIN
jmemansi.o
BIN
jmemansi.o
Binary file not shown.
Loading…
Reference in New Issue