forked from abdurrhmansaeed/ColorRemover
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColorRemover.pro
More file actions
92 lines (74 loc) · 1.78 KB
/
Copy pathColorRemover.pro
File metadata and controls
92 lines (74 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
QT += core widgets
CONFIG += c++17
TARGET = ColorRemover
TEMPLATE = app
# Define target directory for debug and release builds
CONFIG(debug, debug|release) {
DESTDIR = $$PWD/debug
}
CONFIG(release, debug|release) {
DESTDIR = $$PWD/release
}
# Source files
SOURCES += \
main.cpp \
mainwindow.cpp
# Header files
HEADERS += \
mainwindow.h
# Resource files
RESOURCES += \
resources.qrc
# Application icon for Windows
win32 {
RC_ICONS = icons/app_icon.ico
RC_FILE = ColorRemover_resource.rc
}
# Application icon for other platforms
macx:ICON = icons/app_icon.icns
# Define application version
VERSION = 1.0.0
QMAKE_TARGET_PRODUCT = "Color Remover"
QMAKE_TARGET_DESCRIPTION = "Remove specific colors from images"
QMAKE_TARGET_COMPANY = "ImageEditor"
QMAKE_TARGET_COPYRIGHT = "Copyright (c) 2025"
# Platform specific settings
win32 {
CONFIG += windows console # Add console to fix MinGW linking
DEFINES += WIN32_LEAN_AND_MEAN
# Fix for MinGW linking issues with Qt 6.x
mingw {
QMAKE_LFLAGS += -Wl,--allow-multiple-definition
LIBS += -ladvapi32
# Disable Qt6EntryPoint to avoid linking issues
CONFIG -= qtquickcompiler
DEFINES += QT_NO_ENTRYPOINT
}
}
unix:!macx {
CONFIG += linux
}
macx {
CONFIG += mac
ICON = app_icon.icns
}
# Optimization settings
CONFIG(release, debug|release) {
DEFINES += QT_NO_DEBUG_OUTPUT
CONFIG += optimize_full
}
# Deployment settings
win32 {
QTPLUGIN += qwindows qjpeg qgif qico qtiff
}
# Ensure proper linking
win32 {
LIBS += -luser32 -lgdi32 -lshell32 -lkernel32
}
# Include paths for headers
INCLUDEPATH += $$PWD
# Define output directory structure
OBJECTS_DIR = $$DESTDIR/.obj
MOC_DIR = $$DESTDIR/.moc
RCC_DIR = $$DESTDIR/.rcc
UI_DIR = $$DESTDIR/.ui