Browse Source

Fix for darkmode build with mingw

Close #9789
pull/9792/head
Christian Grasser 4 years ago committed by Don HO
parent
commit
6750be3432
  1. 18
      PowerEditor/gcc/makefile
  2. 2
      PowerEditor/src/DarkMode/DarkMode.cpp

18
PowerEditor/gcc/makefile

@ -18,7 +18,10 @@
NPP_DIR = ../src
SCI_DIR = ../../scintilla/include
GCC_DIR = .
GCCINCLUDE_DIR = $(GCC_DIR)/include
GCCINCLUDE_DIR = $(GCC_DIR)/include
#darkmode:
DARKMODE_DIR = $(NPP_DIR)/darkmode
#json:
JSON_DIR = $(NPP_DIR)/json
@ -79,7 +82,10 @@ WIN_DIR = $(NPP_DIR)/WinControls
# Sources:
SRC_NPP = $(wildcard $(NPP_DIR)/*.cpp)
SRC_GCCINCLUDE = $(wildcard $(GCCINCLUDE_DIR)/*.cpp)
SRC_GCCINCLUDE = $(wildcard $(GCCINCLUDE_DIR)/*.cpp)
#DARKMODE
SRC_DARKMODE = $(wildcard $(DARKMODE_DIR)/*.cpp)
#MISC
SRC_MISC = $(wildcard $(MISC_DIR)/*.cpp)
@ -136,7 +142,10 @@ SRC_WIN = $(wildcard $(WIN_DIR)/*.cpp)
# Objects:
OBJ_NPP = $(patsubst %.cpp,%.o,$(SRC_NPP))
OBJ_GCCINCLUDE = $(patsubst %.cpp,%.o,$(SRC_GCCINCLUDE))
OBJ_GCCINCLUDE = $(patsubst %.cpp,%.o,$(SRC_GCCINCLUDE))
#DARKMODE
OBJ_DARKMODE = $(patsubst %.cpp,%.o,$(SRC_DARKMODE))
#MISC
OBJ_MISC = $(patsubst %.cpp,%.o,$(SRC_MISC))
@ -210,8 +219,9 @@ OBJS_WIN = $(OBJ_WIN) $(OBJ_ABOUT) $(OBJ_ANSICHAR) $(OBJ_CLIPBOARD) $(OBJ_CONTE
OBJS_UCHARDET = $(OBJ_UCHARDET)
OBJS_TIXML = $(OBJ_TIXML) $(OBJ_TIXMLA)
OBJS_SCINT = $(OBJ_SCINT)
OBJS_DARKMODE = $(OBJ_DARKMODE)
OBJS_MISC = $(OBJ_MISC) $(OBJ_COMMON) $(OBJ_EXCEPTION) $(OBJ_MD5) $(OBJ_SHA2) $(OBJ_PLUGINS) $(OBJ_PROCESS) $(OBJ_REGEXT)
OBJS = $(OBJ_NPP) $(OBJS_WIN) $(OBJS_UCHARDET) $(OBJS_TIXML) $(OBJS_SCINT) $(OBJS_MISC) $(OBJ_GCCINCLUDE)
OBJS = $(OBJ_NPP) $(OBJS_WIN) $(OBJS_UCHARDET) $(OBJS_TIXML) $(OBJS_SCINT) $(OBJS_MISC) $(OBJS_DARKMODE) $(OBJ_GCCINCLUDE)
# Main resource file
SRC_RES = ./resources.rc

2
PowerEditor/src/DarkMode/DarkMode.cpp

@ -1,5 +1,3 @@
#pragma once
#include <Windows.h>
#include "DarkMode.h"

Loading…
Cancel
Save