Fix gcc linux build and cmake build issues under ubuntu
1. Fix gcc build issues under ubuntu linux due to upper/lower case filename issues. 2. corrected cmake build issues. Close #12188pull/12176/head
parent
1ac1b1150d
commit
ead6fb6b8f
|
@ -28,7 +28,7 @@ SET(projIncludDir ../../scintilla/include/
|
||||||
./MISC/SysMsg/
|
./MISC/SysMsg/
|
||||||
./WinControls/StatusBar/
|
./WinControls/StatusBar/
|
||||||
./WinControls/StaticDialog/RunDlg/
|
./WinControls/StaticDialog/RunDlg/
|
||||||
./tinyxml/
|
./TinyXml/
|
||||||
./WinControls/ColourPicker/
|
./WinControls/ColourPicker/
|
||||||
./Win32Explr/
|
./Win32Explr/
|
||||||
./MISC/RegExt/
|
./MISC/RegExt/
|
||||||
|
@ -45,7 +45,7 @@ SET(projIncludDir ../../scintilla/include/
|
||||||
./WinControls/ToolTip/
|
./WinControls/ToolTip/
|
||||||
./MISC/Exception/
|
./MISC/Exception/
|
||||||
./MISC/Common/
|
./MISC/Common/
|
||||||
./tinyxml/tinyXmlA/
|
./TinyXml/tinyXmlA/
|
||||||
./WinControls/AnsiCharPanel/
|
./WinControls/AnsiCharPanel/
|
||||||
./WinControls/ClipboardHistory/
|
./WinControls/ClipboardHistory/
|
||||||
./WinControls/FindCharsInRange/
|
./WinControls/FindCharsInRange/
|
||||||
|
@ -144,7 +144,7 @@ SET(src_files
|
||||||
./uchardet/nsUniversalDetector.cpp
|
./uchardet/nsUniversalDetector.cpp
|
||||||
./uchardet/nsUTF8Prober.cpp
|
./uchardet/nsUTF8Prober.cpp
|
||||||
./Parameters.cpp
|
./Parameters.cpp
|
||||||
./Misc/PluginsManager/PluginsManager.cpp
|
./MISC/PluginsManager/PluginsManager.cpp
|
||||||
./WinControls/Preference/preferenceDlg.cpp
|
./WinControls/Preference/preferenceDlg.cpp
|
||||||
./ScintillaComponent/Printer.cpp
|
./ScintillaComponent/Printer.cpp
|
||||||
./WinControls/ProjectPanel/ProjectPanel.cpp
|
./WinControls/ProjectPanel/ProjectPanel.cpp
|
||||||
|
@ -381,7 +381,7 @@ SET(rcFiles
|
||||||
|
|
||||||
IF (WIN32)
|
IF (WIN32)
|
||||||
SET(option WIN32)
|
SET(option WIN32)
|
||||||
SET(win32_LIBRARIES comctl32 shlwapi dbghelp version crypt32 wintrust sensapi wininet imm32 msimg32)
|
SET(win32_LIBRARIES comctl32 shlwapi dbghelp version crypt32 wintrust sensapi wininet imm32 msimg32 uxtheme)
|
||||||
if ( MSVC )
|
if ( MSVC )
|
||||||
#do not use for mingw builds
|
#do not use for mingw builds
|
||||||
SET(CMAKE_CXX_FLAGS "/EHa /MP /W4")
|
SET(CMAKE_CXX_FLAGS "/EHa /MP /W4")
|
||||||
|
@ -390,7 +390,7 @@ if ( MSVC )
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
|
||||||
else ( MSVC )
|
else ( MSVC )
|
||||||
# For possible MinGW compilation
|
# For possible MinGW compilation
|
||||||
SET(CMAKE_CXX_FLAGS "-include../gcc/include/various.h -std=c++17 -fpermissive -municode")
|
SET(CMAKE_CXX_FLAGS "-include../gcc/gcc-fixes.h -std=c++17 -fpermissive -municode")
|
||||||
SET(defs -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0600 -D_USE_64BIT_TIME_T -DTIXML_USE_STL -DTIXMLA_USE_STL )
|
SET(defs -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0600 -D_USE_64BIT_TIME_T -DTIXML_USE_STL -DTIXMLA_USE_STL )
|
||||||
endif ( MSVC )
|
endif ( MSVC )
|
||||||
ENDIF (WIN32)
|
ENDIF (WIN32)
|
||||||
|
@ -414,5 +414,5 @@ find_library(LEXILLA_STATIC_LIBRARY
|
||||||
ADD_EXECUTABLE(notepad++ ${option} ${src_files} ${include_files} ${rcFiles})
|
ADD_EXECUTABLE(notepad++ ${option} ${src_files} ${include_files} ${rcFiles})
|
||||||
|
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES (notepad++ ${win32_LIBRARIES} ${SCINTILLA_STATIC_LIBRARY} ${LEXILLA_STATIC_LIBRARY})
|
TARGET_LINK_LIBRARIES (notepad++ ${SCINTILLA_STATIC_LIBRARY} ${LEXILLA_STATIC_LIBRARY} ${win32_LIBRARIES})
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#include "DarkMode.h"
|
#include "DarkMode.h"
|
||||||
|
|
||||||
#include "IatHook.h"
|
#include "IatHook.h"
|
||||||
|
|
||||||
#include <Uxtheme.h>
|
#include <uxtheme.h>
|
||||||
#include <Vssym32.h>
|
#include <vssym32.h>
|
||||||
|
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
|
@ -381,7 +381,7 @@ IDI_FUNCLIST_RELOADBUTTON_DM BITMAP "icons/darkMode/panels/funclstRel
|
||||||
IDI_FUNCLIST_PREFERENCEBUTTON_DM BITMAP "icons/darkMode/panels/funclstPreferences.bmp"
|
IDI_FUNCLIST_PREFERENCEBUTTON_DM BITMAP "icons/darkMode/panels/funclstPreferences.bmp"
|
||||||
|
|
||||||
|
|
||||||
IDI_GET_INFO_FROM_TOOLTIP ICON "icons/MoreOnTooltip.ico"
|
IDI_GET_INFO_FROM_TOOLTIP ICON "icons/moreOnTooltip.ico"
|
||||||
|
|
||||||
IDR_M30_MENU MENU
|
IDR_M30_MENU MENU
|
||||||
BEGIN
|
BEGIN
|
||||||
|
|
|
@ -20,13 +20,13 @@
|
||||||
#include "DarkMode/DarkMode.h"
|
#include "DarkMode/DarkMode.h"
|
||||||
#include "DarkMode/UAHMenuBar.h"
|
#include "DarkMode/UAHMenuBar.h"
|
||||||
|
|
||||||
#include <Uxtheme.h>
|
#include <uxtheme.h>
|
||||||
#include <Vssym32.h>
|
#include <vssym32.h>
|
||||||
|
|
||||||
#include "Parameters.h"
|
#include "Parameters.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
|
||||||
#include <Shlwapi.h>
|
#include <shlwapi.h>
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
constexpr COLORREF HEXRGB(DWORD rrggbb) {
|
constexpr COLORREF HEXRGB(DWORD rrggbb) {
|
||||||
// from 0xRRGGBB like natural #RRGGBB
|
// from 0xRRGGBB like natural #RRGGBB
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include "Parameters.h"
|
#include "Parameters.h"
|
||||||
#include "NppDarkMode.h"
|
#include "NppDarkMode.h"
|
||||||
#include <Uxtheme.h>
|
#include <uxtheme.h>
|
||||||
#include <Vssym32.h>
|
#include <vssym32.h>
|
||||||
|
|
||||||
//#define IDC_STATUSBAR 789
|
//#define IDC_STATUSBAR 789
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue