Skip to content

Commit 9e3df2e

Browse files
fix compilation errors for msvc.
1 parent baddfdc commit 9e3df2e

File tree

13 files changed

+34
-31
lines changed

13 files changed

+34
-31
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ChangeLog
22

3+
## 2.0.2
4+
- Updated the scaffold generator to generate WebAPI codes.
5+
- Modified the scaffold generator to generate service classes for the model
6+
layer.
7+
38
## 2.0.1
49
- Support for Qt version 6.
510
- Modified not to use obsolete functions of Qt.

defaults/appbase.pri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ lessThan(QT_MAJOR_VERSION, 6) {
44
} else {
55
CONFIG += c++17
66
QT += core5compat
7-
windows:QMAKE_CXXFLAGS += /std:c++17
7+
windows:QMAKE_CXXFLAGS += /Zc:__cplusplus /std:c++17
88
}
99

1010
windows {

installer/create_installer.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
:: 10行目、21行目、22行目を編集
88

99

10-
set VERSION=2.0.1
10+
set VERSION=2.0.2
1111
set QTBASE=C:\Qt
1212
set TFDIR=C:\TreeFrog\%VERSION%
1313

@@ -25,7 +25,7 @@ set LIB=
2525
set PATH=C:\WINDOWS\system32;C:\WINDOWS
2626

2727
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
28-
call :build_msi "%QTBASE%\6.1.0\msvc2019_64\bin\qtenv2.bat" 6.1
28+
call :build_msi "%QTBASE%\6.2.0\msvc2019_64\bin\qtenv2.bat" 6.2
2929

3030
:: Clear environment variables
3131
set VCToolsVersion=
@@ -36,7 +36,7 @@ set LIB=
3636
set PATH=C:\WINDOWS\system32;C:\WINDOWS
3737

3838
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
39-
call :build_msi "%QTBASE%\6.0.4\msvc2019_64\bin\qtenv2.bat" 6.0
39+
call :build_msi "%QTBASE%\6.1.1\msvc2019_64\bin\qtenv2.bat" 6.1
4040

4141
call :build_setup treefrog-%VERSION%-msvc_64-setup.exe
4242

installer/msi/TreeFrog.wxs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<!-- *** 基本的に 9行目,10行目,42行目,54行目も修正する (guidgen使用) *** -->
66

77
<!-- プロダクト情報 -->
8-
<Product Name='TreeFrog Framework 2.0.1'
9-
Id="43A746F5-087B-412E-BCAF-35E9C9640F56"
10-
UpgradeCode="A8AEF838-23A0-4A07-A7CD-BCA05C1BE09A"
8+
<Product Name='TreeFrog Framework 2.0.2'
9+
Id="B8DEB6FC-1076-46F4-86B8-4B5DDF4955AE"
10+
UpgradeCode="3DEA47C6-8228-479B-996A-951FC4E14CF7"
1111
Language='1041' Codepage='932'
12-
Version='2.0.1' Manufacturer='TreeFrog Framework Project'>
12+
Version='2.0.2' Manufacturer='TreeFrog Framework Project'>
1313

1414
<!-- パッケージ情報 -->
1515
<Package Id='*' Keywords='Installer'
@@ -27,21 +27,21 @@
2727
<Directory Id='TARGETDIR' Name='SourceDir'>
2828
<Directory Id='WINDOWSVOLUME'>
2929
<Directory Id='INSTALLDIR' Name='TreeFrog'>
30-
<Directory Id='VERSIONDIR' Name='2.0.1'>
30+
<Directory Id='VERSIONDIR' Name='2.0.2'>
3131
</Directory>
3232
</Directory>
3333
</Directory>
3434
<Directory Id="DesktopFolder" SourceName="Desktop"/>
3535
<Directory Id="ProgramMenuFolder">
36-
<Directory Id="ApplicationProgramsFolder" Name="TreeFrog Framework 2.0.1"/>
36+
<Directory Id="ApplicationProgramsFolder" Name="TreeFrog Framework 2.0.2"/>
3737
</Directory>
3838
</Directory>
3939

4040
<!-- デスクトップショートカット -->
4141
<DirectoryRef Id="DesktopFolder">
42-
<Component Id="DesktopShortcut" Guid="59AFEA0F-365F-4DF5-B50E-F2379B3FA511">
42+
<Component Id="DesktopShortcut" Guid="BA682D1B-678F-4E53-AF4C-71792F90AC07">
4343
<Shortcut Id="PromptDesktopShortcut"
44-
Name="TreeFrog Prompt 2.0.1"
44+
Name="TreeFrog Prompt 2.0.2"
4545
Description="TreeFrog Framework Prompt"
4646
Target="[SystemFolder]cmd.exe" Arguments="/K [VERSIONDIR]bin\\tfenv.bat"
4747
WorkingDirectory="PersonalFolder"/>
@@ -51,12 +51,12 @@
5151

5252
<!-- プログラムメニューショートカット -->
5353
<DirectoryRef Id="ApplicationProgramsFolder">
54-
<Component Id="ApplicationShortcut" Guid="28FCB4B4-C71B-4E06-BF03-CE6F964039A4">
54+
<Component Id="ApplicationShortcut" Guid="39D13752-A674-45EF-9107-46256C332A96">
5555
<CreateFolder Directory="ApplicationProgramsFolder"/>
5656

5757
<!-- Shortcut to TF prompt-->
5858
<Shortcut Id="PromptProgramMenuShortcut"
59-
Name="TreeFrog Prompt 2.0.1"
59+
Name="TreeFrog Prompt 2.0.2"
6060
Description="TreeFrog Framework Prompt"
6161
Target="[SystemFolder]cmd.exe" Arguments="/K [VERSIONDIR]bin\\tfenv.bat"
6262
WorkingDirectory="PersonalFolder"/>

installer/treefrog-setup/treefrog-setup/MainForm.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ namespace treefrogsetup {
4747
//
4848
// バージョン
4949
//
50-
static initonly String^ VERSION_STR600 = L"6.0";
51-
static initonly String^ VERSION_STR601 = L"6.1";
50+
static initonly String^ VERSION_STR6_NEW = L"6.2";
51+
static initonly String^ VERSION_STR6_PREV = L"6.1";
5252

5353
public:
5454
MainForm(void)
@@ -169,7 +169,7 @@ namespace treefrogsetup {
169169
this->label->Name = L"label";
170170
this->label->Size = System::Drawing::Size(309, 15);
171171
this->label->TabIndex = 4;
172-
this->label->Text = L"Specify a base folder of Qt version " + VERSION_STR601 + " or " + VERSION_STR600 + ".";
172+
this->label->Text = L"Specify a base folder of Qt version " + VERSION_STR6_NEW + " or " + VERSION_STR6_PREV + ".";
173173
//
174174
// label1
175175
//
@@ -180,7 +180,7 @@ namespace treefrogsetup {
180180
this->label1->Name = L"label1";
181181
this->label1->Size = System::Drawing::Size(162, 15);
182182
this->label1->TabIndex = 5;
183-
this->label1->Text = L"Example: C:\\Qt\\" + VERSION_STR601 + ".0\\msvc2019_64";
183+
this->label1->Text = L"Example: C:\\Qt\\" + VERSION_STR6_NEW + ".0\\msvc2019_64";
184184
//
185185
// labeltop
186186
//
@@ -389,12 +389,12 @@ namespace treefrogsetup {
389389

390390
// Get msi file from resource
391391
int rcid = 0;
392-
if (version->IndexOf("Qt version " + VERSION_STR601, StringComparison::OrdinalIgnoreCase) > 0) {
392+
if (version->IndexOf("Qt version " + VERSION_STR6_NEW, StringComparison::OrdinalIgnoreCase) > 0) {
393+
rcid = IDR_TREEFROG_QT602_MSI;
394+
} else if (version->IndexOf("Qt version " + VERSION_STR6_PREV, StringComparison::OrdinalIgnoreCase) > 0) {
393395
rcid = IDR_TREEFROG_QT601_MSI;
394-
} else if (version->IndexOf("Qt version " + VERSION_STR600, StringComparison::OrdinalIgnoreCase) > 0) {
395-
rcid = IDR_TREEFROG_QT600_MSI;
396396
} else {
397-
abort("Not found Qt version " + VERSION_STR601 + " or " + VERSION_STR600 + ".", "Abort");
397+
abort("Not found Qt version " + VERSION_STR6_NEW + " or " + VERSION_STR6_PREV + ".", "Abort");
398398
return;
399399
}
400400

installer/treefrog-setup/treefrog-setup/resource.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
#define IDC_BROWSE1 1003
77
#define IDS_APP_TITLE 1004
88

9-
#define IDR_TREEFROG_QT514_MSI 10514
10-
#define IDR_TREEFROG_QT515_MSI 10515
11-
#define IDR_TREEFROG_QT600_MSI 10600
129
#define IDR_TREEFROG_QT601_MSI 10601
1310
#define IDR_TREEFROG_QT602_MSI 10602
1411
#define IDR_TREEFROG_QT603_MSI 10603

src/corelib.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ lessThan(QT_MAJOR_VERSION, 6) {
99
} else {
1010
CONFIG += c++17
1111
QT += core5compat
12-
windows:QMAKE_CXXFLAGS += /std:c++17
12+
windows:QMAKE_CXXFLAGS += /Zc:__cplusplus /std:c++17
1313
}
1414

1515
DEFINES *= QT_USE_QSTRINGBUILDER

src/tglobal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
constexpr auto TF_VERSION_STR = "2.0.2";
33
constexpr auto TF_VERSION_NUMBER = 0x020002;
4-
constexpr auto TF_SRC_REVISION = 2384;
4+
constexpr auto TF_SRC_REVISION = 2392;
55

66
#include <QMetaType>
77
#include <QIODevice>

tools/tfmanager/tfmanager.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ lessThan(QT_MAJOR_VERSION, 6) {
1111
} else {
1212
CONFIG += c++17
1313
QT += core5compat
14-
windows:QMAKE_CXXFLAGS += /std:c++17
14+
windows:QMAKE_CXXFLAGS += /Zc:__cplusplus /std:c++17
1515
}
1616

1717
DEFINES *= QT_USE_QSTRINGBUILDER

tools/tfserver/tfserver.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ lessThan(QT_MAJOR_VERSION, 6) {
1111
} else {
1212
CONFIG += c++17
1313
QT += core5compat
14-
windows:QMAKE_CXXFLAGS += /std:c++17
14+
windows:QMAKE_CXXFLAGS += /Zc:__cplusplus /std:c++17
1515
}
1616

1717
DEFINES *= QT_USE_QSTRINGBUILDER

0 commit comments

Comments
 (0)