From b1c12d8cb17f1d47eac481cf366029d4eb1bd4ac Mon Sep 17 00:00:00 2001 From: "Mr. eXoDia" Date: Mon, 16 Nov 2015 15:07:52 +0100 Subject: [PATCH] fixed gui building (once again, this time it didn't work when there were spaces in the path) --- build.bat | 2 +- src/gui/x64dbg.pro | 24 +++++++++++------------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/build.bat b/build.bat index c2d5134d..a26037cc 100644 --- a/build.bat +++ b/build.bat @@ -19,7 +19,7 @@ echo Building DBG... msbuild.exe x64dbg.sln /m /verbosity:minimal /t:Rebuild /p:%type% echo Building GUI... -rmdir /S /Q src\build +rmdir /S /Q src\gui_build cd src\gui qmake x64dbg.pro CONFIG+=release jom diff --git a/src/gui/x64dbg.pro b/src/gui/x64dbg.pro index f516ac56..59d4de63 100644 --- a/src/gui/x64dbg.pro +++ b/src/gui/x64dbg.pro @@ -7,17 +7,15 @@ ## ## Pre-defined global variables ## -X64_SRC_DIR = $$PWD/../ # Main /src/ directory relative to this project file. - # Contains dbg, exe, gui, bridge, and launcher. !contains(QMAKE_HOST.arch, x86_64) { - X64_BIN_DIR = $$PWD/../../bin/x32 # Relative BIN path, 32-bit - X64_GEN_DIR = $$PWD/../gui_build/out32 # QMake temporary generated files, placed inside the build folder. (OBJ, UI, MOC) - TARGET = x32gui # Build x32gui + X64_BIN_DIR = ../../bin/x32 # Relative BIN path, 32-bit + X64_GEN_DIR = ../gui_build/out32 # QMake temporary generated files, placed inside the build folder. (OBJ, UI, MOC) + TARGET = x32gui # Build x32gui } else { - X64_BIN_DIR = $$PWD/../../bin/x64 # Relative BIN path, 64-bit - X64_GEN_DIR = $$PWD/../gui_build/out64 # QMake temporary generated files, placed inside the build folder. (OBJ, UI, MOC) - TARGET = x64gui # Build x64gui + X64_BIN_DIR = ../../bin/x64 # Relative BIN path, 64-bit + X64_GEN_DIR = ../gui_build/out64 # QMake temporary generated files, placed inside the build folder. (OBJ, UI, MOC) + TARGET = x64gui # Build x64gui } ## @@ -53,7 +51,7 @@ TEMPLATE = lib ## Includes ## INCLUDEPATH += \ - $${X64_SRC_DIR} \ + ../ \ Src \ Src/Gui \ Src/BasicView \ @@ -254,12 +252,12 @@ LIBS += -luser32 !contains(QMAKE_HOST.arch, x86_64) { # Windows x86 (32bit) specific build - LIBS += -L"$${X64_SRC_DIR}/dbg/capstone/" -lcapstone_x86 + LIBS += -L"$$PWD/../dbg/capstone/" -lcapstone_x86 LIBS += -L"$$PWD/Src/ThirdPartyLibs/snowman/" -lsnowman_x86 - LIBS += -L"$${X64_BIN_DIR}" -lx32bridge + LIBS += -L"$${X64_BIN_DIR}/" -lx32bridge } else { # Windows x64 (64bit) specific build - LIBS += -L"$${X64_SRC_DIR}/dbg/capstone/" -lcapstone_x64 + LIBS += -L"$$PWD/../dbg/capstone/" -lcapstone_x64 LIBS += -L"$$PWD/Src/ThirdPartyLibs/snowman/" -lsnowman_x64 - LIBS += -L"$${X64_BIN_DIR}" -lx64bridge + LIBS += -L"$${X64_BIN_DIR}/" -lx64bridge }