Skip to content

Commit 39b9caa

Browse files
committed
update libmojibake -> utf8proc 1.2
1 parent b535042 commit 39b9caa

File tree

9 files changed

+48
-52
lines changed

9 files changed

+48
-52
lines changed

.gitmodules

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
[submodule "deps/openspecfun"]
88
path = deps/openspecfun
99
url = git://github.com/JuliaLang/openspecfun.git
10-
[submodule "deps/libmojibake"]
11-
path = deps/libmojibake
12-
url = git://github.com/JuliaLang/libmojibake.git
10+
[submodule "deps/utf8proc"]
11+
path = deps/utf8proc
12+
url = git://github.com/JuliaLang/utf8proc.git

Make.inc

+4-8
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ USE_SYSTEM_SUITESPARSE=0
3535
USE_SYSTEM_RMATH=0
3636
USE_SYSTEM_LIBUV=0
3737
USE_SYSTEM_UTF8PROC=0
38-
USE_SYSTEM_MOJIBAKE=0
38+
USE_SYSTEM_UTF8PROC=0
3939
USE_SYSTEM_LIBGIT2=0
4040

4141
# Link to the LLVM shared library
@@ -594,14 +594,10 @@ else
594594
LIBUV_INC = $(JULIAHOME)/deps/libuv/include
595595
endif
596596

597-
ifeq ($(USE_SYSTEM_MOJIBAKE), 1)
598-
LIBMOJIBAKE = -lmojibake
597+
ifeq ($(USE_SYSTEM_UTF8PROC), 1)
598+
LIBUTF8PROC = -lutf8proc
599599
else
600-
ifeq ($(USE_SYSTEM_UTF8PROC), 1)
601-
LIBMOJIBAKE = -lutf8proc
602-
else
603-
LIBMOJIBAKE = $(build_libdir)/libmojibake.a
604-
endif
600+
LIBUTF8PROC = $(build_libdir)/libutf8proc.a
605601
endif
606602

607603
# OS specific stuff

deps/Makefile

+31-31
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ include $(JULIAHOME)/Make.inc
1111
# if you are adding a new target, it can help to copy an similar, existing target
1212
#
1313
# autoconf configure-driven scripts: llvm pcre arpack fftw unwind gmp mpfr patchelf uv
14-
# custom Makefile rules: openlibm Rmath-julia dsfmt suitesparse-wrapper suitesparse lapack openblas mojibake objconv
14+
# custom Makefile rules: openlibm Rmath-julia dsfmt suitesparse-wrapper suitesparse lapack openblas utf8proc objconv
1515
# CMake libs: libgit2
1616
#
17-
# downloaded from git: llvm-svn, uv, libopenlibm, mojibake, openspecfun
17+
# downloaded from git: llvm-svn, uv, libopenlibm, utf8proc, openspecfun
1818
#
1919
# there are rules in this file with the . replaced by a %
2020
# this is some magic Makefile trick that tells make
@@ -150,8 +150,8 @@ ifeq ($(USE_SYSTEM_SUITESPARSE), 0)
150150
STAGE2_DEPS += suitesparse
151151
endif
152152

153-
ifeq ($(USE_SYSTEM_MOJIBAKE), 0)
154-
STAGE2_DEPS += mojibake
153+
ifeq ($(USE_SYSTEM_UTF8PROC), 0)
154+
STAGE2_DEPS += utf8proc
155155
endif
156156

157157
# Only compile standalone LAPACK if we are not using OpenBLAS.
@@ -183,7 +183,7 @@ install: $(addprefix install-, $(DEP_LIBS))
183183
cleanall: $(addprefix clean-, $(DEP_LIBS))
184184
distcleanall: $(addprefix distclean-, $(DEP_LIBS))
185185
rm -rf $(build_prefix)
186-
getall: get-llvm get-uv get-pcre get-openlibm get-openspecfun get-dsfmt get-Rmath-julia get-openblas get-lapack get-fftw get-suitesparse get-arpack get-unwind get-osxunwind get-gmp get-mpfr get-patchelf get-mojibake get-virtualenv get-objconv get-libgit2
186+
getall: get-llvm get-uv get-pcre get-openlibm get-openspecfun get-dsfmt get-Rmath-julia get-openblas get-lapack get-fftw get-suitesparse get-arpack get-unwind get-osxunwind get-gmp get-mpfr get-patchelf get-utf8proc get-virtualenv get-objconv get-libgit2
187187

188188
## PATHS ##
189189
# sort is used to remove potential duplicates
@@ -1344,47 +1344,47 @@ compile-fftw-double: $(FFTW_DOUBLE_OBJ_TARGET)
13441344
check-fftw-double: fftw-$(FFTW_VER)-double/checked
13451345
install-fftw-double: $(FFTW_DOUBLE_OBJ_TARGET)
13461346

1347-
## MOJIBAKE ##
1347+
## UTF8PROC ##
13481348

1349-
MOJIBAKE_SRC_TARGET = libmojibake/libmojibake.a
1350-
MOJIBAKE_OBJ_LIB = $(build_libdir)/libmojibake.a
1351-
MOJIBAKE_OBJ_HEADER = $(build_includedir)/mojibake.h
1352-
MOJIBAKE_OBJ_TARGET = $(MOJIBAKE_OBJ_LIB) $(MOJIBAKE_OBJ_HEADER)
1349+
UTF8PROC_SRC_TARGET = utf8proc/libutf8proc.a
1350+
UTF8PROC_OBJ_LIB = $(build_libdir)/libutf8proc.a
1351+
UTF8PROC_OBJ_HEADER = $(build_includedir)/utf8proc.h
1352+
UTF8PROC_OBJ_TARGET = $(UTF8PROC_OBJ_LIB) $(UTF8PROC_OBJ_HEADER)
13531353

13541354

1355-
libmojibake/Makefile:
1355+
utf8proc/Makefile:
13561356
(cd .. && git submodule init && git submodule update)
1357-
ifeq (exists, $(shell [ -d libmojibake/.git ] && echo exists ))
1358-
$(MOJIBAKE_SRC_TARGET): libmojibake/.git/HEAD
1357+
ifeq (exists, $(shell [ -d utf8proc/.git ] && echo exists ))
1358+
$(UTF8PROC_SRC_TARGET): utf8proc/.git/HEAD
13591359
endif
1360-
ifeq (exists, $(shell [ -d $(JULIAHOME)/.git/modules/deps/libmojibake ] && echo exists ))
1361-
$(MOJIBAKE_SRC_TARGET): $(JULIAHOME)/.git/modules/deps/libmojibake/HEAD
1360+
ifeq (exists, $(shell [ -d $(JULIAHOME)/.git/modules/deps/utf8proc ] && echo exists ))
1361+
$(UTF8PROC_SRC_TARGET): $(JULIAHOME)/.git/modules/deps/utf8proc/HEAD
13621362
endif
1363-
$(MOJIBAKE_SRC_TARGET): libmojibake/Makefile
1364-
$(MAKE) -C libmojibake cc="$(CC) -O2 -std=c99 $(fPIC) -DMOJIBAKE_EXPORTS" AR="$(AR)" libmojibake.a
1363+
$(UTF8PROC_SRC_TARGET): utf8proc/Makefile
1364+
$(MAKE) -C utf8proc cc="$(CC) -O2 -std=c99 $(fPIC) -DUTF8PROC_EXPORTS" AR="$(AR)" libutf8proc.a
13651365
touch -c $@
1366-
libmojibake/checked: $(MOJIBAKE_SRC_TARGET)
1366+
utf8proc/checked: $(UTF8PROC_SRC_TARGET)
13671367
ifeq ($(OS),$(BUILD_OS))
1368-
-$(MAKE) -C libmojibake check
1368+
-$(MAKE) -C utf8proc check
13691369
endif
13701370
echo 1 > $@
13711371

1372-
$(MOJIBAKE_OBJ_LIB): $(MOJIBAKE_SRC_TARGET)
1372+
$(UTF8PROC_OBJ_LIB): $(UTF8PROC_SRC_TARGET)
13731373
cp -f $< $@
13741374

1375-
$(MOJIBAKE_OBJ_HEADER): libmojibake/Makefile
1376-
cp -f libmojibake/mojibake.h $@
1375+
$(UTF8PROC_OBJ_HEADER): utf8proc/Makefile
1376+
cp -f utf8proc/utf8proc.h $@
13771377

1378-
clean-mojibake:
1379-
-$(MAKE) -C libmojibake clean
1380-
-rm -rf $(build_libdir)/libmojibake.a $(build_includedir)/mojibake.h
1381-
distclean-mojibake: clean-mojibake
1378+
clean-utf8proc:
1379+
-$(MAKE) -C utf8proc clean
1380+
-rm -rf $(build_libdir)/libutf8proc.a $(build_includedir)/utf8proc.h
1381+
distclean-utf8proc: clean-utf8proc
13821382

1383-
get-mojibake: libmojibake/Makefile
1384-
configure-mojibake: get-mojibake
1385-
compile-mojibake: $(MOJIBAKE_SRC_TARGET)
1386-
check-mojibake: libmojibake/checked
1387-
install-mojibake: $(MOJIBAKE_OBJ_TARGET)
1383+
get-utf8proc: utf8proc/Makefile
1384+
configure-utf8proc: get-utf8proc
1385+
compile-utf8proc: $(UTF8PROC_SRC_TARGET)
1386+
check-utf8proc: utf8proc/checked
1387+
install-utf8proc: $(UTF8PROC_OBJ_TARGET)
13881388

13891389
## SUITESPARSE ##
13901390

deps/libmojibake

-1
This file was deleted.

deps/utf8proc

Submodule utf8proc added at e1fdad0

src/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ifeq ($(USE_LLVM_SHLIB),1)
3030
LLVMLINK = $(call exec,$(LLVM_CONFIG) --ldflags) -lLLVM-$(call exec,$(LLVM_CONFIG) --version)
3131
endif
3232

33-
COMMON_LIBS = -L$(build_shlibdir) -L$(build_libdir) $(LIBUV) $(LIBMOJIBAKE) $(NO_WHOLE_ARCHIVE) $(LLVMLINK) $(OSLIBS)
33+
COMMON_LIBS = -L$(build_shlibdir) -L$(build_libdir) $(LIBUV) $(LIBUTF8PROC) $(NO_WHOLE_ARCHIVE) $(LLVMLINK) $(OSLIBS)
3434
DEBUG_LIBS = $(WHOLE_ARCHIVE) $(BUILDDIR)/flisp/libflisp-debug.a $(WHOLE_ARCHIVE) $(BUILDDIR)/support/libsupport-debug.a $(COMMON_LIBS)
3535
RELEASE_LIBS = $(WHOLE_ARCHIVE) $(BUILDDIR)/flisp/libflisp.a $(WHOLE_ARCHIVE) $(BUILDDIR)/support/libsupport.a $(COMMON_LIBS)
3636

src/flisp/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ HEADERS = $(wildcard *.h) $(LIBUV_INC)/uv.h
2222
OBJS = $(SRCS:%.c=$(BUILDDIR)/%.o)
2323
DOBJS = $(SRCS:%.c=$(BUILDDIR)/%.dbg.obj)
2424
LLTDIR = ../support
25-
LLT = $(BUILDDIR)/$(LLTDIR)/libsupport.a $(LIBUV) $(LIBMOJIBAKE)
25+
LLT = $(BUILDDIR)/$(LLTDIR)/libsupport.a $(LIBUV) $(LIBUTF8PROC)
2626

2727
FLAGS = -I$(LLTDIR) $(CFLAGS) $(HFILEDIRS:%=-I%) \
2828
-I$(LIBUV_INC) -I$(build_includedir) $(LIBDIRS:%=-L%) \
29-
-DLIBRARY_EXPORTS -DMOJIBAKE_EXPORTS
29+
-DLIBRARY_EXPORTS -DUTF8PROC_EXPORTS
3030
ifneq ($(USEMSVC), 1)
3131
FLAGS += -Wall -Wno-strict-aliasing -DUSE_COMPUTED_GOTO -fvisibility=hidden
3232
endif

src/flisp/Windows.mk

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ OBJECTS = \
2929
dirname.obj
3030

3131
LIBUV = $(MAKEDIR)\..\..\deps\libuv\libuv.lib
32-
LIBMOJIBAKE = $(MAKEDIR)\..\..\deps\libmojibake\libmojibake.lib
32+
LIBUTF8PROC = $(MAKEDIR)\..\..\deps\libutf8proc\libutf8proc.lib
3333
LIBSUPPORT = $(MAKEDIR)\..\support\libsupport.lib
3434

35-
INCLUDE = $(INCLUDE);$(MAKEDIR)\..\..\deps\libuv\include;$(MAKEDIR)\..\..\deps\libmojibake;$(MAKEDIR)\..\support
35+
INCLUDE = $(INCLUDE);$(MAKEDIR)\..\..\deps\libuv\include;$(MAKEDIR)\..\..\deps\libutf8proc;$(MAKEDIR)\..\support
3636

3737
CFLAGS = $(CFLAGS) /Qstd=c99 -D_CRT_SECURE_NO_WARNINGS -DLIBRARY_EXPORTS
3838
LFLAGS = $(LFLAGS) kernel32.lib ws2_32.lib psapi.lib advapi32.lib iphlpapi.lib
3939

4040
default: $(NAME).exe
4141

42-
$(NAME).exe: lib$(NAME).lib flmain.obj $(LIBSUPPORT) $(LIBUV) $(LIBMOJIBAKE)
42+
$(NAME).exe: lib$(NAME).lib flmain.obj $(LIBSUPPORT) $(LIBUV) $(LIBUTF8PROC)
4343
$(LINK) $(LFLAGS) /OUT:$(NAME).exe /PDB:$(NAME).pdb /MAP $**
4444

4545
$(LIBSUPPORT):
@@ -48,8 +48,8 @@ $(LIBSUPPORT):
4848
$(LIBUV):
4949
PUSHD $(MAKEDIR)\..\..\deps\libuv && $(MAKE) /NOLOGO /F Windows.mk && POPD
5050

51-
$(LIBMOJIBAKE):
52-
PUSHD $(MAKEDIR)\..\..\deps\libmojibake && cl -nologo /c utf8proc.c && $(AR) /OUT:libmojibake.lib utf8proc.obj && POPD
51+
$(LIBUTF8PROC):
52+
PUSHD $(MAKEDIR)\..\..\deps\libutf8proc && cl -nologo /c utf8proc.c && $(AR) /OUT:libutf8proc.lib utf8proc.obj && POPD
5353

5454
lib$(NAME).lib: $(OBJECTS)
5555
$(AR) /OUT:lib$(NAME).lib $**

src/flisp/julia_extensions.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <string.h>
44
#include <assert.h>
55
#include "flisp.h"
6-
#include "mojibake.h"
6+
#include "utf8proc.h"
77

88
#ifdef __cplusplus
99
extern "C" {

0 commit comments

Comments
 (0)