aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/blingfire
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/blingfire')
-rw-r--r--vcpkg/ports/blingfire/ninja.patch9
-rw-r--r--vcpkg/ports/blingfire/portfile.cmake31
-rw-r--r--vcpkg/ports/blingfire/vcpkg.json14
3 files changed, 54 insertions, 0 deletions
diff --git a/vcpkg/ports/blingfire/ninja.patch b/vcpkg/ports/blingfire/ninja.patch
new file mode 100644
index 0000000..ae7e654
--- /dev/null
+++ b/vcpkg/ports/blingfire/ninja.patch
@@ -0,0 +1,9 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 818a3da..e8b3bed 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -19,3 +19,3 @@ IF (WIN32 AND MSVC)
+ set (CMAKE_CXX_FLAGS " -DNDEBUG")
+- add_compile_options("/O2" "/W4" "/GS" "/Gy" "/guard:cf" "/Gm-" "/Zc:inline" "/fp:precise" "/GF" "/EHsc" "/ZH:SHA_256")
++ add_compile_options("/W4" "/GS" "/Gy" "/guard:cf" "/Gm-" "/Zc:inline" "/fp:precise" "/GF" "/EHsc" "/ZH:SHA_256")
+ add_compile_options("$<$<CONFIG:Debug>:/Od>")
diff --git a/vcpkg/ports/blingfire/portfile.cmake b/vcpkg/ports/blingfire/portfile.cmake
new file mode 100644
index 0000000..ed09b83
--- /dev/null
+++ b/vcpkg/ports/blingfire/portfile.cmake
@@ -0,0 +1,31 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO microsoft/BlingFire
+ REF c0381c68b6aa6d1b4e569888bae1642e40494a99
+ SHA512 0fa15791fc815a992023bae6f30c84dda1d477bcdedcf1343d4dbe4b09b51e17fd87bf130d58e50f378ca94982a6306d7f980e3ff4522091be036428684bdcbb
+ HEAD_REF master
+ PATCHES
+ ninja.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${ADDITIONAL_OPTIONS}
+ )
+
+vcpkg_cmake_install()
+
+file(GLOB BINS "${SOURCE_PATH}/nuget/lib/*.bin")
+
+foreach(BIN ${BINS})
+ file(INSTALL "${BIN}" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+endforeach()
+
+vcpkg_copy_pdbs()
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") \ No newline at end of file
diff --git a/vcpkg/ports/blingfire/vcpkg.json b/vcpkg/ports/blingfire/vcpkg.json
new file mode 100644
index 0000000..57e11ed
--- /dev/null
+++ b/vcpkg/ports/blingfire/vcpkg.json
@@ -0,0 +1,14 @@
+{
+ "name": "blingfire",
+ "version": "0.1.8.1",
+ "port-version": 1,
+ "description": "BlingFire is a lightning fast Finite State machine and REgular expression manipulation library.",
+ "license": "MIT",
+ "supports": "windows & !static",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}