|
7 | 7 | ##
|
8 | 8 | ## Pre-defined global variables
|
9 | 9 | ##
|
10 |
| -X64_SRC_DIR = $$PWD/../ # Main /src/<PROJECT> directory relative to this project file. |
11 |
| - # Contains dbg, exe, gui, bridge, and launcher. |
12 | 10 |
|
13 | 11 | !contains(QMAKE_HOST.arch, x86_64) {
|
14 |
| - X64_BIN_DIR = $$PWD/../../bin/x32 # Relative BIN path, 32-bit |
15 |
| - X64_GEN_DIR = $$PWD/../gui_build/out32 # QMake temporary generated files, placed inside the build folder. (OBJ, UI, MOC) |
16 |
| - TARGET = x32gui # Build x32gui |
| 12 | + X64_BIN_DIR = ../../bin/x32 # Relative BIN path, 32-bit |
| 13 | + X64_GEN_DIR = ../gui_build/out32 # QMake temporary generated files, placed inside the build folder. (OBJ, UI, MOC) |
| 14 | + TARGET = x32gui # Build x32gui |
17 | 15 | } else {
|
18 |
| - X64_BIN_DIR = $$PWD/../../bin/x64 # Relative BIN path, 64-bit |
19 |
| - X64_GEN_DIR = $$PWD/../gui_build/out64 # QMake temporary generated files, placed inside the build folder. (OBJ, UI, MOC) |
20 |
| - TARGET = x64gui # Build x64gui |
| 16 | + X64_BIN_DIR = ../../bin/x64 # Relative BIN path, 64-bit |
| 17 | + X64_GEN_DIR = ../gui_build/out64 # QMake temporary generated files, placed inside the build folder. (OBJ, UI, MOC) |
| 18 | + TARGET = x64gui # Build x64gui |
21 | 19 | }
|
22 | 20 |
|
23 | 21 | ##
|
@@ -53,7 +51,7 @@ TEMPLATE = lib
|
53 | 51 | ## Includes
|
54 | 52 | ##
|
55 | 53 | INCLUDEPATH += \
|
56 |
| - $${X64_SRC_DIR} \ |
| 54 | + ../ \ |
57 | 55 | Src \
|
58 | 56 | Src/Gui \
|
59 | 57 | Src/BasicView \
|
@@ -254,12 +252,12 @@ LIBS += -luser32
|
254 | 252 |
|
255 | 253 | !contains(QMAKE_HOST.arch, x86_64) {
|
256 | 254 | # Windows x86 (32bit) specific build
|
257 |
| - LIBS += -L"$${X64_SRC_DIR}/dbg/capstone/" -lcapstone_x86 |
| 255 | + LIBS += -L"$$PWD/../dbg/capstone/" -lcapstone_x86 |
258 | 256 | LIBS += -L"$$PWD/Src/ThirdPartyLibs/snowman/" -lsnowman_x86
|
259 |
| - LIBS += -L"$${X64_BIN_DIR}" -lx32bridge |
| 257 | + LIBS += -L"$${X64_BIN_DIR}/" -lx32bridge |
260 | 258 | } else {
|
261 | 259 | # Windows x64 (64bit) specific build
|
262 |
| - LIBS += -L"$${X64_SRC_DIR}/dbg/capstone/" -lcapstone_x64 |
| 260 | + LIBS += -L"$$PWD/../dbg/capstone/" -lcapstone_x64 |
263 | 261 | LIBS += -L"$$PWD/Src/ThirdPartyLibs/snowman/" -lsnowman_x64
|
264 |
| - LIBS += -L"$${X64_BIN_DIR}" -lx64bridge |
| 262 | + LIBS += -L"$${X64_BIN_DIR}/" -lx64bridge |
265 | 263 | }
|
0 commit comments