Skip to content

Commit

Permalink
Added something to use Qt Creator for code eiditing
Browse files Browse the repository at this point in the history
and triggering of the build process without startin of Visual Studio

Note: Edit build.bat to set right path to MSBuild if it fails with "unknown command" on "MSBuild".
Better way is adding MSBuild's folder into path environment and remove full path to msbuild from build.bat
  • Loading branch information
Wohlstand committed Dec 14, 2015
1 parent 2ad455a commit 12eb92d
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 2 deletions.
33 changes: 31 additions & 2 deletions LunaDLL.pro
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,21 @@ HEADERS += \
LunaDll/PerformanceTimer.h \
LunaDll/PngRender.h \
LunaDll/resource.h \
LunaDll/version.h
LunaDll/version.h \
LunaDll/GameConfig/GeneralLunaConfig.h \
LunaDll/Misc/RuntimeHookManagers/LevelHUDController.h \
LunaDll/Misc/AsmPatch.h \
LunaDll/Misc/AsyncHTTPClient.h \
LunaDll/Misc/SafeFPUControl.h \
LunaDll/Misc/TypeLib.h \
LunaDll/Misc/VariantHelper.h \
LunaDll/Misc/win32_Unicode.h \
LunaDll/Rendering/Shaders/GLShader.h \
LunaDll/SMBXInternal/CollectedStarRecord.h \
LunaDll/SMBXInternal/Musicbox.h \
LunaDll/SMBXInternal/Path.h \
LunaDll/SMBXInternal/Scenery.h \
LunaDll/SMBXInternal/Tile.h

SOURCES += \
LunaDll/Autocode/Commands/AC_HeartSystem.cpp \
Expand Down Expand Up @@ -396,5 +410,20 @@ SOURCES += \
LunaDll/libs/luasocket/udp.c \
LunaDll/libs/luasocket/unix.c \
LunaDll/libs/luasocket/usocket.c \
LunaDll/libs/luasocket/wsocket.c
LunaDll/libs/luasocket/wsocket.c \
LunaDll/GameConfig/GeneralLunaConfig.cpp \
LunaDll/LuaMain/LuaProxyComponent/LuaProxyAsyncHTTPRequest.cpp \
LunaDll/LuaMain/LuaProxyComponent/LuaProxyConsole.cpp \
LunaDll/LuaMain/LuaProxyComponent/LuaProxyLogger.cpp \
LunaDll/LuaMain/LuaProxyComponent/LuaProxyMusicbox.cpp \
LunaDll/LuaMain/LuaProxyComponent/LuaProxyPath.cpp \
LunaDll/LuaMain/LuaProxyComponent/LuaProxyScenery.cpp \
LunaDll/LuaMain/LuaProxyComponent/LuaProxyTile.cpp \
LunaDll/Misc/RuntimeHookManagers/LevelHUDController.cpp \
LunaDll/Misc/AsyncHTTPClient.cpp \
LunaDll/Misc/SafeFPUControl.cpp \
LunaDll/Misc/TypeLib.cpp \
LunaDll/Misc/VariantHelper.cpp \
LunaDll/Misc/win32_Unicode.cpp \
LunaDll/Rendering/Shaders/GLShader.cpp

13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,16 @@ or
Visual Studio 2015 but with msvc120


Note for Qt Creator IDE
------
If you wish you edit code via Qt Creator, you still must have Visual Studio because MSVC compiler is required.
**How to setup building from Qt creator**
* Open project and configure it
* Go to the "Projects" tab
* Disable shadow build for both Debug and Release
* remove ALL items from "Building" and "Cenaring" sections
* Add into "Building" a special item with:
** Command "build.bat"
** Argument "Debug" for debug build and "Release" argument for release build
* Add into "Clearing" a special item with "clear.bat" command
* Try to build project. If you have "MSBuild" in another path, please modify build.bat to take working build!
5 changes: 5 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

if "%1"=="" SET CONFIG=Release
if NOT "%1"=="" SET CONFIG=%1

"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" LunaDll.sln /nologo /p:Configuration="%CONFIG%" /p:Platfprm="Win32"
1 change: 1 addition & 0 deletions clear.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cmd /c "del /q /f /s Release Debug LunaLoader\Debug LunaLoader\Release LunaDLL\Debug LunaDLL\Release"

0 comments on commit 12eb92d

Please sign in to comment.