summaryrefslogtreecommitdiff
path: root/lcms2
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-03-13 03:18:51 +0200
committerTor Lillqvist <tml@iki.fi>2012-03-13 12:55:40 +0200
commit494ce8b51b89a93974390779abfb49af343041b6 (patch)
treed904aa953ca939ef008fe034b6824c247f26b93f /lcms2
parent6c412d2e6923f99e3c351eee5d36822ec2768df9 (diff)
Build static liblcms2 for iOS
Diffstat (limited to 'lcms2')
-rw-r--r--lcms2/makefile.mk6
-rw-r--r--lcms2/prj/d.lst1
2 files changed, 7 insertions, 0 deletions
diff --git a/lcms2/makefile.mk b/lcms2/makefile.mk
index 7d834ac2b693..83458ca33df2 100644
--- a/lcms2/makefile.mk
+++ b/lcms2/makefile.mk
@@ -69,6 +69,10 @@ CONFIGURE_ACTION = CPPFLAGS="$(SOLARINC)" ./configure --without-jpeg --without-t
CONFIGURE_ACTION += --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
.ENDIF
+.IF "$(OS)" == "IOS"
+CONFIGURE_ACTION += --disable-shared
+.ENDIF
+
BUILD_ACTION = make -j$(GMAKE_MODULE_PARALLELISM)
.ENDIF # "$(GUI)$(COM)"=="WNTMSC"
@@ -78,6 +82,8 @@ OUT2INC+=include$/lcms2*.h
.IF "$(OS)"=="MACOSX"
EXTRPATH=LOADER
OUT2LIB+=src$/.libs$/liblcms2.*.dylib
+.ELIF "$(OS)"=="IOS"
+OUT2LIB+=src$/.libs$/liblcms2.a
.ELIF "$(OS)"=="WNT"
.IF "$(COM)"=="GCC"
OUT2LIB+=src$/.libs$/liblcms2.dll.a
diff --git a/lcms2/prj/d.lst b/lcms2/prj/d.lst
index d84eecdc9fdd..b79227eff87f 100644
--- a/lcms2/prj/d.lst
+++ b/lcms2/prj/d.lst
@@ -1,6 +1,7 @@
mkdir: %_DEST%\inc\lcms2
..\%__SRC%\inc\*.h %_DEST%\inc\lcms2\*.h
..\%__SRC%\lib\liblcms2.so.2 %_DEST%\lib\liblcms2.so.2
+..\%__SRC%\lib\liblcms2.a %_DEST%\lib\liblcms2.a
symlink: %_DEST%\lib\liblcms2.so.2 %_DEST%\lib\liblcms2.so
..\%__SRC%\lib\liblcms2.2.dylib %_DEST%\lib\liblcms2.2.dylib
symlink: %_DEST%\lib\liblcms2.2.dylib %_DEST%\lib\liblcms2.dylib