diff --git a/.gitignore b/.gitignore index 5c1725009..03935f248 100644 --- a/.gitignore +++ b/.gitignore @@ -84,10 +84,14 @@ PowerEditor/installer/zipped.package.release64/ PowerEditor/installer/zipped.package.releaseArm64/ PowerEditor/visual.net/Unicode Debug/ PowerEditor/visual.net/Unicode Release/ +PowerEditor/visual.net/Debug/ +PowerEditor/visual.net/Release/ PowerEditor/visual.net/notepadPlus.sln PowerEditor/visual.net/notepadPlus.vcxproj.filters PowerEditor/visual.net/x64/Unicode Debug/ PowerEditor/visual.net/x64/Unicode Release/ +PowerEditor/visual.net/x64/Debug/ +PowerEditor/visual.net/x64/Release/ PowerEditor/visual.net/ARM64 PowerEditor/src/tools/NppShell/build_ARM64 PowerEditor/src/tools/NppShell/build_Win32 @@ -105,6 +109,8 @@ scintilla/win32/ScintRes.res scintilla/win32/ARM64 scintilla/win32/Unicode Release/ scintilla/win32/Unicode Debug/ +scintilla/win32/Release/ +scintilla/win32/Debug/ scintilla/boostregex/bin scintilla/boostregex/boostpath.mak diff --git a/BUILD.md b/BUILD.md index 9a1684ac8..6fa893ad6 100644 --- a/BUILD.md +++ b/BUILD.md @@ -15,7 +15,7 @@ Notepad++ is always built **with** Boost regex PCRE support instead of default c ## Build `notepad++.exe`: 1. Open [`PowerEditor\visual.net\notepadPlus.sln`](https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/visual.net/notepadPlus.sln) - 2. Select a solution configuration (Unicode Debug or Unicode Release) and a solution platform (x64 or Win32 or ARM64) + 2. Select a solution configuration (Debug or Release) and a solution platform (x64 or Win32 or ARM64) 3. Build Notepad++ solution like a normal Visual Studio project. This will also build the dependent SciLexer project. ## Build `libSciLexer.lib`: diff --git a/PowerEditor/visual.net/notepadPlus.sln b/PowerEditor/visual.net/notepadPlus.sln index 09442f9b4..1bee16027 100644 --- a/PowerEditor/visual.net/notepadPlus.sln +++ b/PowerEditor/visual.net/notepadPlus.sln @@ -8,42 +8,42 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Notepad++", "notepadPlus.vc {FBE04237-9C7B-4973-9C60-505975998B39} = {FBE04237-9C7B-4973-9C60-505975998B39} EndProjectSection EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libSciLexer", "..\..\scintilla\win32\SciLexer.vcxproj", "{FBE04237-9C7B-4973-9C60-505975998B39}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SciLexer", "..\..\scintilla\win32\SciLexer.vcxproj", "{FBE04237-9C7B-4973-9C60-505975998B39}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution - Unicode Debug|ARM64 = Unicode Debug|ARM64 - Unicode Debug|Win32 = Unicode Debug|Win32 - Unicode Debug|x64 = Unicode Debug|x64 - Unicode Release|ARM64 = Unicode Release|ARM64 - Unicode Release|Win32 = Unicode Release|Win32 - Unicode Release|x64 = Unicode Release|x64 + Debug|ARM64 = Debug|ARM64 + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|ARM64 = Release|ARM64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Unicode Debug|ARM64.ActiveCfg = Unicode Debug|ARM64 - {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Unicode Debug|ARM64.Build.0 = Unicode Debug|ARM64 - {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Unicode Debug|Win32.ActiveCfg = Unicode Debug|Win32 - {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Unicode Debug|Win32.Build.0 = Unicode Debug|Win32 - {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Unicode Debug|x64.ActiveCfg = Unicode Debug|x64 - {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Unicode Debug|x64.Build.0 = Unicode Debug|x64 - {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Unicode Release|ARM64.ActiveCfg = Unicode Release|ARM64 - {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Unicode Release|ARM64.Build.0 = Unicode Release|ARM64 - {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Unicode Release|Win32.ActiveCfg = Unicode Release|Win32 - {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Unicode Release|Win32.Build.0 = Unicode Release|Win32 - {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Unicode Release|x64.ActiveCfg = Unicode Release|x64 - {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Unicode Release|x64.Build.0 = Unicode Release|x64 - {FBE04237-9C7B-4973-9C60-505975998B39}.Unicode Debug|ARM64.ActiveCfg = Unicode Debug|ARM64 - {FBE04237-9C7B-4973-9C60-505975998B39}.Unicode Debug|ARM64.Build.0 = Unicode Debug|ARM64 - {FBE04237-9C7B-4973-9C60-505975998B39}.Unicode Debug|Win32.ActiveCfg = Unicode Debug|Win32 - {FBE04237-9C7B-4973-9C60-505975998B39}.Unicode Debug|Win32.Build.0 = Unicode Debug|Win32 - {FBE04237-9C7B-4973-9C60-505975998B39}.Unicode Debug|x64.ActiveCfg = Unicode Debug|x64 - {FBE04237-9C7B-4973-9C60-505975998B39}.Unicode Debug|x64.Build.0 = Unicode Debug|x64 - {FBE04237-9C7B-4973-9C60-505975998B39}.Unicode Release|ARM64.ActiveCfg = Unicode Release|ARM64 - {FBE04237-9C7B-4973-9C60-505975998B39}.Unicode Release|ARM64.Build.0 = Unicode Release|ARM64 - {FBE04237-9C7B-4973-9C60-505975998B39}.Unicode Release|Win32.ActiveCfg = Unicode Release|Win32 - {FBE04237-9C7B-4973-9C60-505975998B39}.Unicode Release|Win32.Build.0 = Unicode Release|Win32 - {FBE04237-9C7B-4973-9C60-505975998B39}.Unicode Release|x64.ActiveCfg = Unicode Release|x64 - {FBE04237-9C7B-4973-9C60-505975998B39}.Unicode Release|x64.Build.0 = Unicode Release|x64 + {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Debug|ARM64.Build.0 = Debug|ARM64 + {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Debug|Win32.ActiveCfg = Debug|Win32 + {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Debug|Win32.Build.0 = Debug|Win32 + {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Debug|x64.ActiveCfg = Debug|x64 + {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Debug|x64.Build.0 = Debug|x64 + {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Release|ARM64.ActiveCfg = Release|ARM64 + {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Release|ARM64.Build.0 = Release|ARM64 + {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Release|Win32.ActiveCfg = Release|Win32 + {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Release|Win32.Build.0 = Release|Win32 + {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Release|x64.ActiveCfg = Release|x64 + {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248}.Release|x64.Build.0 = Release|x64 + {FBE04237-9C7B-4973-9C60-505975998B39}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {FBE04237-9C7B-4973-9C60-505975998B39}.Debug|ARM64.Build.0 = Debug|ARM64 + {FBE04237-9C7B-4973-9C60-505975998B39}.Debug|Win32.ActiveCfg = Debug|Win32 + {FBE04237-9C7B-4973-9C60-505975998B39}.Debug|Win32.Build.0 = Debug|Win32 + {FBE04237-9C7B-4973-9C60-505975998B39}.Debug|x64.ActiveCfg = Debug|x64 + {FBE04237-9C7B-4973-9C60-505975998B39}.Debug|x64.Build.0 = Debug|x64 + {FBE04237-9C7B-4973-9C60-505975998B39}.Release|ARM64.ActiveCfg = Release|ARM64 + {FBE04237-9C7B-4973-9C60-505975998B39}.Release|ARM64.Build.0 = Release|ARM64 + {FBE04237-9C7B-4973-9C60-505975998B39}.Release|Win32.ActiveCfg = Release|Win32 + {FBE04237-9C7B-4973-9C60-505975998B39}.Release|Win32.Build.0 = Release|Win32 + {FBE04237-9C7B-4973-9C60-505975998B39}.Release|x64.ActiveCfg = Release|x64 + {FBE04237-9C7B-4973-9C60-505975998B39}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/PowerEditor/visual.net/notepadPlus.vcxproj b/PowerEditor/visual.net/notepadPlus.vcxproj index 2e0033c8e..790d5167a 100755 --- a/PowerEditor/visual.net/notepadPlus.vcxproj +++ b/PowerEditor/visual.net/notepadPlus.vcxproj @@ -1,28 +1,28 @@  - - Unicode Debug + + Debug ARM64 - - Unicode Debug + + Debug Win32 - - Unicode Debug + + Debug x64 - - Unicode Release + + Release ARM64 - - Unicode Release + + Release Win32 - - Unicode Release + + Release x64 @@ -34,35 +34,35 @@ 10.0.17763.0 - + Application v141 Unicode true - + Application v141 Unicode true - + Application v141 Unicode true - + Application v141 Unicode - + Application v141 Unicode - + Application v141 Unicode @@ -70,27 +70,27 @@ - + - + - + - + - + - + @@ -98,34 +98,34 @@ <_ProjectFileVersion>12.0.21005.1 - + $(Configuration)\ $(Configuration)\ false - + x64\$(Configuration)\ x64\$(Configuration)\ false - + false - + ..\bin\ $(Configuration)\ false - + ..\bin64\ x64\$(Configuration)\ false - + ..\binarm64\ false - + Disabled Neither @@ -165,7 +165,7 @@ - + Disabled Neither @@ -205,7 +205,7 @@ - + Disabled Neither @@ -244,7 +244,7 @@ - + Full Default @@ -297,7 +297,7 @@ copy ..\src\contextMenu.xml ..\bin\contextMenu.xml - + Full Default @@ -349,7 +349,7 @@ copy ..\src\contextMenu.xml ..\bin64\contextMenu.xml - + Full Default diff --git a/appveyor.yml b/appveyor.yml index eac0ffc6f..24cf84cb9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -22,8 +22,8 @@ environment: configuration: - - Unicode Release - - Unicode Debug + - Release + - Debug install: - if "%Platform%"=="mingw-w64_810_X64" set PATH=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH:C:\Program Files\Git\usr\bin;=% @@ -35,8 +35,8 @@ build_script: Write-Output "Platform: $env:PLATFORM" - cd "%APPVEYOR_BUILD_FOLDER%"\scintilla\win32 - #- if "%configuration%"=="Unicode Debug" set scintilla_debug=DEBUG=1 - #- if "%configuration%"=="Unicode Release" set scintilla_debug= + #- if "%configuration%"=="Debug" set scintilla_debug=DEBUG=1 + #- if "%configuration%"=="Release" set scintilla_debug= #- if "%archi%"=="x86" nmake %scintilla_debug% BOOSTPATH=C:\Libraries\boost_1_69_0\ BOOSTREGEXLIBPATH=C:\Libraries\boost_1_69_0\lib32-msvc-14.1\ -f scintilla.mak #- if "%archi%"=="amd64" nmake %scintilla_debug% BOOSTPATH=C:\Libraries\boost_1_69_0\ BOOSTREGEXLIBPATH=C:\Libraries\boost_1_69_0\lib64-msvc-14.1\ -f scintilla.mak - if "%Platform%"=="mingw-w64_810_X64" mingw32-make %scintilla_debug% -j%NUMBER_OF_PROCESSORS% @@ -48,12 +48,12 @@ build_script: after_build: - cd "%APPVEYOR_BUILD_FOLDER%" #xml files syntax checks - - if "%platform_input%"=="Win32" if "%configuration%"=="Unicode Debug" SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% - - if "%platform_input%"=="Win32" if "%configuration%"=="Unicode Debug" python -m pip install requests rfc3987 pywin32 lxml - - if "%platform_input%"=="Win32" if "%configuration%"=="Unicode Debug" call python PowerEditor\Test\xmlValidator\validator_xml.py + - if "%platform_input%"=="Win32" if "%configuration%"=="Debug" SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% + - if "%platform_input%"=="Win32" if "%configuration%"=="Debug" python -m pip install requests rfc3987 pywin32 lxml + - if "%platform_input%"=="Win32" if "%configuration%"=="Debug" call python PowerEditor\Test\xmlValidator\validator_xml.py - ps: >- - if ($env:CONFIGURATION -eq "Unicode Release") { + if ($env:CONFIGURATION -eq "Release") { $nppFileName = "Notepad++.$env:PLATFORM_INPUT.Release.exe" } else @@ -61,22 +61,22 @@ after_build: $nppFileName = "Notepad++.$env:PLATFORM_INPUT.Debug.exe" } - if ($env:PLATFORM_INPUT -eq "x64" -and $env:CONFIGURATION -eq "Unicode Release") { + if ($env:PLATFORM_INPUT -eq "x64" -and $env:CONFIGURATION -eq "Release") { Push-AppveyorArtifact "PowerEditor\bin64\Notepad++.exe" -FileName "$nppFileName" } - if ($env:PLATFORM_INPUT -eq "x64" -and $env:CONFIGURATION -eq "Unicode Debug") { - Push-AppveyorArtifact "PowerEditor\visual.net\x64\Unicode Debug\Notepad++.exe" -FileName "$nppFileName" + if ($env:PLATFORM_INPUT -eq "x64" -and $env:CONFIGURATION -eq "Debug") { + Push-AppveyorArtifact "PowerEditor\visual.net\x64\Debug\Notepad++.exe" -FileName "$nppFileName" } - if ($env:PLATFORM_INPUT -eq "Win32" -and $env:CONFIGURATION -eq "Unicode Release") { + if ($env:PLATFORM_INPUT -eq "Win32" -and $env:CONFIGURATION -eq "Release") { Push-AppveyorArtifact "PowerEditor\bin\Notepad++.exe" -FileName "$nppFileName" } - if ($env:PLATFORM_INPUT -eq "Win32" -and $env:CONFIGURATION -eq "Unicode Debug") { - Push-AppveyorArtifact "PowerEditor\visual.net\Unicode Debug\Notepad++.exe" -FileName "$nppFileName" + if ($env:PLATFORM_INPUT -eq "Win32" -and $env:CONFIGURATION -eq "Debug") { + Push-AppveyorArtifact "PowerEditor\visual.net\Debug\Notepad++.exe" -FileName "$nppFileName" - Copy-Item "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\visual.net\Unicode Debug\Notepad++.exe" -Destination "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\bin" + Copy-Item "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\visual.net\Debug\Notepad++.exe" -Destination "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\bin" Copy-Item "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\src\langs.model.xml" -Destination "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\bin" Copy-Item "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\src\stylers.model.xml" -Destination "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\bin" Copy-Item "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\src\shortcuts.xml" -Destination "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\bin" @@ -95,12 +95,12 @@ after_build: .\verifyUrlDetection.ps1 } - if ($env:PLATFORM_INPUT -eq "arm64" -and $env:CONFIGURATION -eq "Unicode Release") { + if ($env:PLATFORM_INPUT -eq "arm64" -and $env:CONFIGURATION -eq "Release") { Push-AppveyorArtifact "PowerEditor\binarm64\Notepad++.exe" -FileName "$nppFileName" } - if ($env:PLATFORM_INPUT -eq "arm64" -and $env:CONFIGURATION -eq "Unicode Debug") { - Push-AppveyorArtifact "PowerEditor\visual.net\arm64\Unicode Debug\Notepad++.exe" -FileName "$nppFileName" + if ($env:PLATFORM_INPUT -eq "arm64" -and $env:CONFIGURATION -eq "Debug") { + Push-AppveyorArtifact "PowerEditor\visual.net\arm64\Debug\Notepad++.exe" -FileName "$nppFileName" } if ($env:PLATFORM_INPUT -eq "mingw") { diff --git a/scintilla/win32/SciLexer.vcxproj b/scintilla/win32/SciLexer.vcxproj index 57c75471a..3cb64fa53 100644 --- a/scintilla/win32/SciLexer.vcxproj +++ b/scintilla/win32/SciLexer.vcxproj @@ -1,28 +1,28 @@  - - Unicode Debug + + Debug ARM64 - - Unicode Debug + + Debug Win32 - - Unicode Debug + + Debug x64 - - Unicode Release + + Release ARM64 - - Unicode Release + + Release Win32 - - Unicode Release + + Release x64 @@ -39,24 +39,24 @@ v141 lib$(ProjectName) - + true - + true - + true - + false true - + false true - + false true @@ -86,7 +86,7 @@ gdi32.lib;imm32.lib;ole32.lib;oleaut32.lib;msimg32.lib;%(AdditionalDependencies) - + _DEBUG;%(PreprocessorDefinitions) stdcpp17 @@ -99,7 +99,7 @@ MachineX86 - + _DEBUG;%(PreprocessorDefinitions) stdcpp17 @@ -109,7 +109,7 @@ Default - + _DEBUG;%(PreprocessorDefinitions) stdcpp17 @@ -119,7 +119,7 @@ Default - + true true @@ -136,7 +136,7 @@ MachineX86 - + true true @@ -150,7 +150,7 @@ true - + true true