Get Qt project building on Windows, remove Visual Studio files

This commit is contained in:
Adam Honse
2019-12-17 14:27:06 -06:00
parent 7d2b5f285f
commit 8beeb5f7b2
13 changed files with 135 additions and 939 deletions

View File

@@ -13,15 +13,8 @@
#include <stdio.h>
#include <stdlib.h>
#ifdef WIN32
#include "OpenAuraSDKDialog.h"
#else /* WIN32 */
#include "OpenAuraSDKQtDialog.h"
#endif /* WIN32 */
extern std::vector<i2c_smbus_interface*> busses;
extern std::vector<RGBController*> rgb_controllers;
@@ -38,20 +31,12 @@ int main(int argc, char* argv[])
{
DetectRGBControllers();
#if WIN32
OpenAuraSDKDialog dlg(busses, rgb_controllers);
dlg.DoModal();
return 0;
#else
QApplication a(argc, argv);
Ui::OpenAuraSDKQtDialog dlg(busses, rgb_controllers);
dlg.show();
return a.exec();
#endif
}
/******************************************************************************************\
@@ -63,8 +48,8 @@ int main(int argc, char* argv[])
\******************************************************************************************/
#ifdef WIN32
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
{
main(0, NULL);
}
#endif
//int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
//{
// main(0, NULL);
//}
#endif