Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ test/iterate
test/case
test/custom
/tmp/
/build
17 changes: 14 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,27 @@ project (utf8proc C)
# API version number (defined in utf8proc.h).
# Be sure to also update these in Makefile and MANIFEST!
set(SO_MAJOR 2)
set(SO_MINOR 3)
set(SO_PATCH 1)
set(SO_MINOR 4)
set(SO_PATCH 0)
Copy link
Member

@stevengj stevengj May 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the comment in the Makefile says, these numbers indicate ABI compatibility and don't follow the API version number exactly. From 2.3 to 2.4 there was no change in ABI which is why the minor version stayed 3.

Copy link
Member

@stevengj stevengj May 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though it's probably easier for us to just match the API number in the future so that we don't have this discussion repeatedly.

In any case, please don't update these now.


option(UTF8PROC_INSTALL "Enable installation of utf8proc" On)

add_library (utf8proc
set(UTF8PROC_FILES
utf8proc.c
utf8proc.h
)

if (BUILD_SHARED_LIBS AND MSVC)
set(UTF8PROC_WINDLL_SRCS
win32/utf8proc.rc
)
add_definitions(
-DUTF8PROC_VERSION="${SO_MAJOR}.${SO_MINOR}.${SO_PATCH}"
)
endif ()

add_library (utf8proc ${UTF8PROC_FILES} ${UTF8PROC_WINDLL_SRCS})

# expose header path, for when this is part of a larger cmake project
target_include_directories(utf8proc PUBLIC ../utf8proc)

Expand Down
40 changes: 40 additions & 0 deletions win32/utf8proc.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#include <winver.h>
#include "../utf8proc.h"

#ifdef GCC_WINDRES
VS_VERSION_INFO VERSIONINFO
#else
VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
#endif
FILEVERSION UTF8PROC_VERSION_MAJOR,UTF8PROC_VERSION_MINOR,UTF8PROC_VERSION_PATCH,0
PRODUCTVERSION UTF8PROC_VERSION_MAJOR,UTF8PROC_VERSION_MINOR,UTF8PROC_VERSION_PATCH,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#ifdef _DEBUG
FILEFLAGS 1
#else
FILEFLAGS 0
#endif
FILEOS VOS__WINDOWS32
FILETYPE VFT_DLL
FILESUBTYPE 0 // not used
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
//language ID = U.S. English, char set = Windows, Multilingual
BEGIN
VALUE "FileDescription", "utf8proc library\0"
VALUE "FileVersion", UTF8PROC_VERSION "\0"
VALUE "InternalName", "utf8proc.dll\0"
VALUE "LegalCopyright", "(C) Jan Behrens and the rest of the Public Software Group\0"
VALUE "OriginalFilename", "utf8proc.dll\0"
VALUE "ProductName", "utf8proc\0"
VALUE "ProductVersion", UTF8PROC_VERSION "\0"
VALUE "Comments", "For more information visit https://github.com/JuliaStrings/utf8proc/\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409, 1252
END
END