Skip to content

Commit 5adbfb9

Browse files
author
Matthieu Nottale
committed
CMakeify, lean and mean.
1 parent 4f83780 commit 5adbfb9

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

CMakeLists.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
cmake_minimum_required(VERSION 2.8.0)
2+
project(libjpeg)
3+
4+
find_package(qibuild)
5+
6+
qi_sanitize_compile_flags(HIDDEN_SYMBOLS)
7+
8+
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
9+
10+
set(SOURCES
11+
jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c
12+
jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c
13+
jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c
14+
jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c
15+
jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c
16+
jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c
17+
jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c
18+
jquant2.c jutils.c jmemmgr.c jmemnobs.c
19+
)
20+
qi_create_lib(qijpeg STATIC ${SOURCES})
21+
qi_stage_lib(qijpeg)

jconfig.h

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/* jconfig.cfg --- source file edited by configure script */
2+
/* see jconfig.txt for explanations */
3+
4+
#define HAVE_PROTOTYPES 1
5+
#define HAVE_UNSIGNED_CHAR 1
6+
#define HAVE_UNSIGNED_SHORT 1
7+
#undef void
8+
#undef const
9+
#undef CHAR_IS_UNSIGNED
10+
#undef HAVE_STDDEF_H
11+
#undef HAVE_STDLIB_H
12+
#undef HAVE_LOCALE_H
13+
#undef NEED_BSD_STRINGS
14+
#undef NEED_SYS_TYPES_H
15+
#undef NEED_FAR_POINTERS
16+
#undef NEED_SHORT_EXTERNAL_NAMES
17+
/* Define this if you get warnings about undefined structures. */
18+
#undef INCOMPLETE_TYPES_BROKEN
19+
20+
/* Define "boolean" as unsigned char, not int, on Windows systems. */
21+
#ifdef _WIN32
22+
#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
23+
typedef unsigned char boolean;
24+
#endif
25+
#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
26+
#endif
27+
28+
#ifdef JPEG_INTERNALS
29+
30+
#undef RIGHT_SHIFT_IS_UNSIGNED
31+
#undef INLINE
32+
/* These are for configuring the JPEG memory manager. */
33+
#undef DEFAULT_MAX_MEM
34+
#undef NO_MKTEMP
35+
36+
#endif /* JPEG_INTERNALS */
37+
38+
#ifdef JPEG_CJPEG_DJPEG
39+
40+
#define BMP_SUPPORTED /* BMP image file format */
41+
#define GIF_SUPPORTED /* GIF image file format */
42+
#define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */
43+
#undef RLE_SUPPORTED /* Utah RLE image file format */
44+
#define TARGA_SUPPORTED /* Targa image file format */
45+
46+
#undef TWO_FILE_COMMANDLINE
47+
#undef NEED_SIGNAL_CATCHER
48+
#undef DONT_USE_B_MODE
49+
50+
/* Define this if you want percent-done progress reports from cjpeg/djpeg. */
51+
#undef PROGRESS_REPORT
52+
53+
#endif /* JPEG_CJPEG_DJPEG */

qiproject.xml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<project name="libqijpeg">
2+
</project>

0 commit comments

Comments
 (0)