parent
c891c593d3
commit
20a20c41a6
16
BUILD.md
16
BUILD.md
@ -16,14 +16,15 @@ You can build SciLexer.dll without Boost, ie. with its default POSIX regular
|
|||||||
expression support instead of boost's PCRE one. This is useful if you would
|
expression support instead of boost's PCRE one. This is useful if you would
|
||||||
like to debug Notepad++, but don't have boost.
|
like to debug Notepad++, but don't have boost.
|
||||||
|
|
||||||
## To build `notepad++.exe`:
|
## Build `notepad++.exe`:
|
||||||
|
|
||||||
1. Open [`PowerEditor\visual.net\notepadPlus.vcxproj`](https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/visual.net/notepadPlus.vcxproj)
|
1. Open [`PowerEditor\visual.net\notepadPlus.vcxproj`](https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/visual.net/notepadPlus.vcxproj)
|
||||||
2. Build Notepad++ like a normal Visual Studio project.
|
2. Build Notepad++ like a normal Visual Studio project.
|
||||||
|
|
||||||
|
As mentioned above, you'll need `SciLexer.dll` to run Notepad++. Please check the following sections for building `SciLexer.dll`.
|
||||||
|
Once `SciLexer.dll`is generated, copy it from `scintilla\bin\` to the same directory as `notepad++.exe`.
|
||||||
|
|
||||||
|
## Build `SciLexer.dll` with boost:
|
||||||
## To build `SciLexer.dll` with boost:
|
|
||||||
|
|
||||||
Here are the instructions to build SciLexer.dll (for both 32-bit & 64-bit) for Notepad++:
|
Here are the instructions to build SciLexer.dll (for both 32-bit & 64-bit) for Notepad++:
|
||||||
|
|
||||||
@ -31,12 +32,12 @@ Here are the instructions to build SciLexer.dll (for both 32-bit & 64-bit) for N
|
|||||||
2. Unzip boost. In my case, It's unzipped in `C:\sources\boost_1_70_0`
|
2. Unzip boost. In my case, It's unzipped in `C:\sources\boost_1_70_0`
|
||||||
3. Build regex of boost. With the version 1.70, launch `bootstrap.bat` under the boost root, `b2.exe` will be generated beside of `bootstrap.bat`. For building boost PCRE lib, go into regex build directory by typing `cd C:\sources\boost_1_70_0\libs\regex\build` then launch `C:\sources\boost_1_70_0\b2.exe toolset=msvc link=static threading=multi runtime-link=static address-model=64 release stage`.
|
3. Build regex of boost. With the version 1.70, launch `bootstrap.bat` under the boost root, `b2.exe` will be generated beside of `bootstrap.bat`. For building boost PCRE lib, go into regex build directory by typing `cd C:\sources\boost_1_70_0\libs\regex\build` then launch `C:\sources\boost_1_70_0\b2.exe toolset=msvc link=static threading=multi runtime-link=static address-model=64 release stage`.
|
||||||
Note that **address-model=64** is optional if you want to build lib in 64 bits. For 32 bits build, just remove **address-model=64** from the command line.
|
Note that **address-model=64** is optional if you want to build lib in 64 bits. For 32 bits build, just remove **address-model=64** from the command line.
|
||||||
4. Copy generated message from `C:\sources\boost_1_70_0\bin.v2\libs\regex\build\msvc-14.1\release\address-model-64\link-static\runtime-link-static\threading-multi\libboost_regex-vc141-mt-s-x64-1_70.lib` to `C:\tmp\boostregexLib\x64\`
|
4. Copy generated static link library (*.lib) from `C:\sources\boost_1_70_0\bin.v2\libs\regex\build\msvc-14.1\release\address-model-64\link-static\runtime-link-static\threading-multi\libboost_regex-vc141-mt-s-x64-1_70.lib` to `C:\tmp\boostregexLib\x64\`
|
||||||
5. Go in `scintilla\win32\` then run `nmake BOOSTPATH=your_boost_root_path BOOSTREGEXLIBPATH=your_built_lib_path -f scintilla.mak`. For example `nmake BOOSTPATH=C:\sources\boost_1_70_0\ BOOSTREGEXLIBPATH=C:\tmp\boostregexLib\x64\ -f scintilla.mak`
|
5. Go in `scintilla\win32\` then run `nmake BOOSTPATH=your_boost_root_path BOOSTREGEXLIBPATH=your_built_lib_path -f scintilla.mak`. For example `nmake BOOSTPATH=C:\sources\boost_1_70_0\ BOOSTREGEXLIBPATH=C:\tmp\boostregexLib\x64\ -f scintilla.mak`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## To build `SciLexer.dll` *without* boost:
|
## Build `SciLexer.dll` *without* boost:
|
||||||
|
|
||||||
This will work with `notepad++.exe`, however some functionality in Notepad++ will be broken.
|
This will work with `notepad++.exe`, however some functionality in Notepad++ will be broken.
|
||||||
|
|
||||||
@ -58,8 +59,3 @@ To build SciLexer.dll without PCRE support (for both 32-bit & 64-bit):
|
|||||||
- `nmake -f scintilla.mak` (normal build)
|
- `nmake -f scintilla.mak` (normal build)
|
||||||
- `nmake DEBUG=1 -f scintilla.mak` (debugging build)
|
- `nmake DEBUG=1 -f scintilla.mak` (debugging build)
|
||||||
|
|
||||||
4. Copy `SciLexer.dll` from `scintilla\bin\` to the same directory as `notepad++.exe`.
|
|
||||||
- For the `Unicode Release` configuration, the output directory
|
|
||||||
(where `notepad++.exe` is) is `PowerEditor\bin\`.
|
|
||||||
- For the `Unicode Debug` configuration, the output directory
|
|
||||||
(where `notepad++.exe` is) is `PowerEditor\visual.net\Unicode Debug\`.
|
|
Loading…
Reference in New Issue
Block a user