aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/scintilla
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/scintilla
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/scintilla')
-rw-r--r--vcpkg/ports/scintilla/0001-static-lib.patch13
-rw-r--r--vcpkg/ports/scintilla/0002-static-crt.patch52
-rw-r--r--vcpkg/ports/scintilla/portfile.cmake28
-rw-r--r--vcpkg/ports/scintilla/vcpkg.json14
4 files changed, 107 insertions, 0 deletions
diff --git a/vcpkg/ports/scintilla/0001-static-lib.patch b/vcpkg/ports/scintilla/0001-static-lib.patch
new file mode 100644
index 0000000..e3c7a01
--- /dev/null
+++ b/vcpkg/ports/scintilla/0001-static-lib.patch
@@ -0,0 +1,13 @@
+diff --git a/win32/Scintilla.vcxproj b/win32/Scintilla.vcxproj
+index 82aa9b7..5eac42f 100644
+--- a/win32/Scintilla.vcxproj
++++ b/win32/Scintilla.vcxproj
+@@ -34,7 +34,7 @@
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup>
+- <ConfigurationType>DynamicLibrary</ConfigurationType>
++ <ConfigurationType>StaticLibrary</ConfigurationType>
+ <CharacterSet>Unicode</CharacterSet>
+ <PlatformToolset>v143</PlatformToolset>
+ </PropertyGroup>
diff --git a/vcpkg/ports/scintilla/0002-static-crt.patch b/vcpkg/ports/scintilla/0002-static-crt.patch
new file mode 100644
index 0000000..cebe39c
--- /dev/null
+++ b/vcpkg/ports/scintilla/0002-static-crt.patch
@@ -0,0 +1,52 @@
+diff --git a/win32/Scintilla.vcxproj b/win32/Scintilla.vcxproj
+index 82aa9b7..6b6f340 100644
+--- a/win32/Scintilla.vcxproj
++++ b/win32/Scintilla.vcxproj
+@@ -102,6 +102,7 @@
+ <ClCompile>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <LanguageStandard>stdcpp17</LanguageStandard>
++ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
+@@ -112,6 +113,7 @@
+ <ClCompile>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <LanguageStandard>stdcpp17</LanguageStandard>
++ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
+@@ -122,6 +124,7 @@
+ <ClCompile>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <LanguageStandard>stdcpp17</LanguageStandard>
++ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
+@@ -133,6 +136,7 @@
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <LanguageStandard>stdcpp17</LanguageStandard>
++ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+@@ -146,6 +150,7 @@
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <LanguageStandard>stdcpp17</LanguageStandard>
++ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+@@ -159,6 +164,7 @@
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <LanguageStandard>stdcpp17</LanguageStandard>
++ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
diff --git a/vcpkg/ports/scintilla/portfile.cmake b/vcpkg/ports/scintilla/portfile.cmake
new file mode 100644
index 0000000..28192b0
--- /dev/null
+++ b/vcpkg/ports/scintilla/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://www.scintilla.org/scintilla556.zip"
+ FILENAME "scintilla556.zip"
+ SHA512 8e845a94379fff88222fa9e4e5f534f62595420dd933166e4d9cc67b197c79f578405cb020892142ead1afd85bd42f1dc4361a339134a087e14760ff33d0a1cf
+)
+
+if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ list(APPEND PATCHES 0001-static-lib.patch)
+endif()
+
+if(VCPKG_CRT_LINKAGE STREQUAL "static")
+ list(APPEND PATCHES 0002-static-crt.patch)
+endif()
+
+vcpkg_extract_source_archive(
+ SOURCE_PATH
+ ARCHIVE ${ARCHIVE}
+ SOURCE_BASE 5.5.6
+ PATCHES ${PATCHES}
+)
+
+vcpkg_install_msbuild(
+ SOURCE_PATH "${SOURCE_PATH}"
+ PROJECT_SUBPATH Win32/Scintilla.vcxproj
+)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.txt")
+file(INSTALL "${SOURCE_PATH}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}" FILES_MATCHING PATTERN "*.*")
diff --git a/vcpkg/ports/scintilla/vcpkg.json b/vcpkg/ports/scintilla/vcpkg.json
new file mode 100644
index 0000000..0b89a4c
--- /dev/null
+++ b/vcpkg/ports/scintilla/vcpkg.json
@@ -0,0 +1,14 @@
+{
+ "name": "scintilla",
+ "version": "5.5.6",
+ "description": "A free source code editing component for Win32, GTK+, and OS X",
+ "homepage": "https://www.scintilla.org/",
+ "supports": "windows & !uwp & !mingw",
+ "dependencies": [
+ {
+ "name": "vcpkg-msbuild",
+ "host": true,
+ "platform": "windows"
+ }
+ ]
+}