forked from vaibhavpandeyvpz/apkstudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apkstudio.pro
126 lines (107 loc) · 3.58 KB
/
apkstudio.pro
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
include(QHexView/QHexView.pri)
QT += core gui widgets
TARGET = ApkStudio
TEMPLATE = app
CONFIG += c++11
HEADERS += \
Qt-Frameless-Window-DarkStyle/DarkStyle.h \
sources/adbinstallworker.h \
sources/apkdecompiledialog.h \
sources/apkdecompileworker.h \
sources/apkrecompileworker.h \
sources/apksignworker.h \
sources/appearancesettingswidget.h \
sources/binarysettingswidget.h \
sources/findreplacedialog.h \
sources/flickcharm.h \
sources/hexedit.h \
sources/imageviewerwidget.h \
sources/mainwindow.h \
sources/processutils.h \
sources/settingsdialog.h \
sources/signingconfigdialog.h \
sources/signingconfigwidget.h \
sources/sourcecodeedit.h \
sources/splashwindow.h \
sources/themedsyntaxhighlighter.h \
sources/versionresolveworker.h
SOURCES += \
Qt-Frameless-Window-DarkStyle/DarkStyle.cpp \
sources/flickcharm.cpp \
sources/hexedit.cpp \
sources/imageviewerwidget.cpp \
sources/main.cpp \
sources/adbinstallworker.cpp \
sources/apkdecompiledialog.cpp \
sources/apkdecompileworker.cpp \
sources/apkrecompileworker.cpp \
sources/apksignworker.cpp \
sources/appearancesettingswidget.cpp \
sources/binarysettingswidget.cpp \
sources/findreplacedialog.cpp \
sources/mainwindow.cpp \
sources/processutils.cpp \
sources/settingsdialog.cpp \
sources/signingconfigdialog.cpp \
sources/signingconfigwidget.cpp \
sources/sourcecodeedit.cpp \
sources/splashwindow.cpp \
sources/themedsyntaxhighlighter.cpp \
sources/versionresolveworker.cpp
RESOURCES += \
Qt-Frameless-Window-DarkStyle/darkstyle.qrc \
resources/all.qrc
OTHER_FILES += \
build/linux.sh \
build/osx.sh \
build/windows.bat \
docs/index.html \
resources/apkstudio.desktop \
.appveyor.yml \
.travis.yml \
README.md
mac:ICON = resources/icon.icns
unix {
isEmpty(PREFIX) {
PREFIX = /usr/local
}
target.path = $$PREFIX/bin
icons.files += resources/icon.png
icons.path = $$PREFIX/share/pixmaps/
shortcut.files = resources/apkstudio.desktop
shortcut.path = $$PREFIX/share/applications/
INSTALLS += target icons shortcut
TARGET = apkstudio
}
win32:RC_ICONS += resources/icon.ico
QMAKE_TARGET_COMPANY = Vaibhav Pandey -aka- VPZ
QMAKE_TARGET_COPYRIGHT = Vaibhav Pandey
QMAKE_TARGET_DESCRIPTION = Open-source, cross-platform Qt based IDE for reverse-engineering Android application packages.
QMAKE_TARGET_PRODUCT = APK Studio
win32 {
NULL_DEVICE = NUL
} else {
NULL_DEVICE = /dev/null
}
GIT_CMD_BASE = git --git-dir $$PWD/.git --work-tree $$PWD
GIT_BRANCH = $$system($$GIT_CMD_BASE rev-parse --abbrev-ref HEAD 2> $$NULL_DEVICE)
GIT_COMMIT_FULL = $$system($$GIT_CMD_BASE rev-parse HEAD 2> $$NULL_DEVICE)
GIT_COMMIT_NUMBER = $$system($$GIT_CMD_BASE rev-list HEAD --count 2> $$NULL_DEVICE)
GIT_COMMIT_SHORT = $$system($$GIT_CMD_BASE rev-parse --short HEAD 2> $$NULL_DEVICE)
GIT_TAG = $$system($$GIT_CMD_BASE tag -l --points-at HEAD 2> $$NULL_DEVICE)
DEFINES += GIT_BRANCH=\\\"$$GIT_BRANCH\\\" \
GIT_COMMIT_FULL=\\\"$$GIT_COMMIT_FULL\\\" \
GIT_COMMIT_NUMBER=\\\"$$GIT_COMMIT_NUMBER\\\" \
GIT_COMMIT_SHORT=\\\"$$GIT_COMMIT_SHORT\\\" \
GIT_TAG=\\\"$$GIT_TAG\\\"
!isEmpty(GIT_TAG) {
win32 {
VERSION = $${GIT_TAG}.$${GIT_COMMIT_NUMBER}
} else {
VERSION = $$GIT_TAG
}
macx {
INFO_PLIST_PATH = $$shell_quote($${OUT_PWD}/$${TARGET}.app/Contents/Info.plist)
QMAKE_POST_LINK += /usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString $${VERSION}\" $${INFO_PLIST_PATH}
}
}