* Updates for Unicode 9.0.0 TR29 Changes - New rules GB10/(12/13) are used to combine emoji-zwj sequences/ (force grapheme breaks every two RI codepoints). Unfortunately this breaks statelessness of grapheme-boundary determination. Deal with this by ignoring the problem in utf8proc_grapheme_break, and by hacking in a special case in decompose - ZWJ moved to its own boundclass, update what is now GB9 accordingly. - Add comments to indicate which rule a given case implements - The Number of bound classes Now exceeds 4 bits, expand to 8 and reorganize fields * Import Unicode 9 data * Update Grapheme break API to expose state override * Bump MAJOR version
32 lines
536 B
CMake
32 lines
536 B
CMake
cmake_minimum_required (VERSION 2.8)
|
|
|
|
include (utils.cmake)
|
|
|
|
disallow_intree_builds()
|
|
|
|
project (utf8proc C)
|
|
|
|
# Be sure to also update these in Makefile!
|
|
set(SO_MAJOR 3)
|
|
set(SO_MINOR 0)
|
|
set(SO_PATCH 0)
|
|
|
|
add_definitions (
|
|
-DUTF8PROC_EXPORTS
|
|
)
|
|
|
|
if (NOT MSVC)
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -std=c99 -pedantic -Wall")
|
|
endif ()
|
|
|
|
add_library (utf8proc
|
|
utf8proc.c
|
|
utf8proc.h
|
|
)
|
|
|
|
set_target_properties (utf8proc PROPERTIES
|
|
POSITION_INDEPENDENT_CODE ON
|
|
VERSION "${SO_MAJOR}.${SO_MINOR}.${SO_PATCH}"
|
|
SOVERSION ${SO_MAJOR}
|
|
)
|