Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
treefrog-framework/configure.bat at master · treefrogframework/treefrog-framework · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
treefrogframework
treefrog-framework
Repository navigation
Code
Issues
4
(4)
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
treefrog-framework
/
configure.bat
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
264 lines (235 loc) · 6.82 KB
master
Breadcrumbs
treefrog-framework
/
configure.bat
Copy path
Top
File metadata and controls
Code
Blame
264 lines (235 loc) · 6.82 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
@
echo
off
@
setlocal
set
VERSION
=
2.12.1
set
TFDIR
=
C:\TreeFrog\
%VERSION%
set
MONBOC_VERSION
=
2.3.3
set
LZ4_VERSION
=
1.10.0
set
GLOG_VERSION
=
0.7.1
set
BASEDIR
=
%~dp0
set
CL
=
/MP
:
parse_loop
if
"
%1
"
==
"
"
goto
:
start
if
/i
"
%1
"
==
"
--prefix
"
goto
:
prefix
if
/i
"
%1
"
==
"
--enable-debug
"
goto
:
enable_debug
if
/i
"
%1
"
==
"
--enable-gui-mod
"
goto
:
enable_gui_mod
if
/i
"
%1
"
==
"
--help
"
goto
:
help
if
/i
"
%1
"
==
"
-h
"
goto
:
help
goto
:
help
:
continue
shift
goto
:
parse_loop
:
help
echo
Usage:
%0
[OPTION]... [VAR=VALUE]...
echo;
echo
Configuration:
echo
-h, --help display this help and exit
echo
--enable-debug compile with debugging information
echo
--enable-gui-mod compile and link with QtGui module
echo;
echo
Installation directories:
echo
--prefix=PREFIX install files in PREFIX [
%TFDIR%
]
goto
:
exit
:
prefix
shift
if
"
%1
"
==
"
"
goto
:
help
set
TFDIR
=
%1
goto
:
continue
:
enable_debug
set
DEBUG
=
yes
goto
:
continue
:
enable_gui_mod
set
USE_GUI
=
use_gui=
1
goto
:
continue
:
start
if
"
%DEBUG%
"
==
"
yes
"
(
set
OPT
=
"
CONFIG+=debug
"
)
else
(
set
OPT
=
"
CONFIG+=release
"
)
::
::
Generates tfenv.bat
::
for
%%I
in
(nmake.exe)
do
if
exist
%%~$path:I
set
NMAKE
=
%%~$path:I
if
"
%MAKE%
"
==
"
"
(
for
%%I
in
(jom.exe)
do
if
exist
%%~$path:I
set
NMAKE
=
%%~$path:I
)
for
%%I
in
(qmake.exe)
do
if
exist
%%~$path:I
set
QMAKE
=
%%~$path:I
for
%%I
in
(cmake.exe)
do
if
exist
%%~$path:I
set
CMAKE
=
%%~$path:I
for
%%I
in
(cl.exe)
do
if
exist
%%~$path:I
set
MSCOMPILER
=
%%~$path:I
for
%%I
in
(devenv.com)
do
if
exist
%%~$path:I
set
DEVENV
=
%%~$path:I
if
"
%QMAKE%
"
==
"
"
(
echo
Qt environment not found
pause
exit
/b
1
)
qmake --version
if
"
%CMAKE%
"
==
"
"
(
echo
CMake not found
pause
exit
/b
1
)
cmake --version
if
"
%NMAKE%
"
==
"
"
(
echo
Make not found
pause
exit
/b
1
)
if
"
%MSCOMPILER%
"
==
"
"
if
"
%DEVENV%
"
==
"
"
(
echo
Visual Studio compiler not found
pause
exit
/b
1
)
if
/i
not
"
%Platform%
"
==
"
x64
"
(
echo
Use 64-bit architecture
pause
exit
/b
1
)
::
vcvarsall.bat setup
set
ENVSTR
=
Environment to build for 64-bit executable MSVC / Qt
if
"
%VisualStudioVersion%
"
==
"
18.0
"
(
::
Visual Studio 2026
set
VCVARSOPT
=
amd64
set
CMAKEOPT
=
-A x64 -T v145
)
else
if
"
%VisualStudioVersion%
"
==
"
17.0
"
(
::
Visual Studio 2022
set
VCVARSOPT
=
amd64
set
CMAKEOPT
=
-A x64 -T v143
)
else
if
"
%VisualStudioVersion%
"
==
"
16.0
"
(
::
Visual Studio 2019
set
VCVARSOPT
=
amd64
set
CMAKEOPT
=
-A x64 -T v142
)
else
(
echo
Use Visual Studio 2026,
2022
or
2019
pause
exit
/b
1
)
SET
/P
X
=
"
%ENVSTR%
"
<
NUL
qtpaths.exe --qt-version
for
%%I
in
(qtenv2.bat)
do
if
exist
%%~$path:I
set
QTENV
=
%%~$path:I
set
TFENV
=
tfenv.bat
echo
@echo OFF
>
%TFENV%
echo
::
>>
%TFENV%
echo
:: This file is generated by configure.bat
>>
%TFENV%
echo
::
>>
%TFENV%
echo;
>>
%TFENV%
echo
set TFDIR=
%TFDIR%
>>
%TFENV%
echo
set TreeFrog_DIR=
%TFDIR%
>>
%TFENV%
echo
set QMAKESPEC=
%QMAKESPEC%
>>
%TFENV%
echo
set QTENV=
"
%QTENV%
"
>>
%TFENV%
echo
set VCVARSBAT=
"
"
>>
%TFENV%
echo
set VSVER=
18
2022
2019
>>
%TFENV%
echo
set VSWHERE=
"
%%
ProgramFiles(x86)
%%
\Microsoft Visual Studio\Installer\vswhere.exe
"
>>
%TFENV%
echo;
>>
%TFENV%
echo
if exist
%%
QTENV
%%
call
%%
QTENV
%%
>>
%TFENV%
echo
if exist
%%
VSWHERE
%%
^
(
>>
%TFENV%
echo
for
%%%%
v in (
%%
VSVER
%%
) do (
>>
%TFENV%
echo
for /f
"
usebackq tokens=*
"
%%%%
i in
^
(`
%%
VSWHERE
%%
-find **\vcvarsall.bat`
^
) do
^
(
>>
%TFENV%
echo
echo
%%%%
i
^
|
find
"
%%%%
v
"
^
>
NUL
>>
%TFENV%
echo
if not ERRORLEVEL
1
^
(
>>
%TFENV%
echo
set VCVARSBAT=
"
%%%%
i
"
>>
%TFENV%
echo
goto :break
>>
%TFENV%
echo
^
)
>>
%TFENV%
echo
^
)
>>
%TFENV%
echo
^
)
>>
%TFENV%
echo
^
)
>>
%TFENV%
echo
:break
>>
%TFENV%
echo
if exist
%%
VCVARSBAT
%%
^
(
>>
%TFENV%
echo
echo Setting up environment for MSVC usage...
>>
%TFENV%
echo
call
%%
VCVARSBAT
%%
%VCVARSOPT%
>>
%TFENV%
echo
^
)
>>
%TFENV%
echo
set QTENV=
>>
%TFENV%
echo
set VCVARSBAT=
>>
%TFENV%
echo
set VSVER=
>>
%TFENV%
echo
set VSWHERE=
>>
%TFENV%
echo
set PATH=
%%
TFDIR
^%%
\bin;
%%
PATH
%%
>>
%TFENV%
echo
echo Setup a TreeFrog/Qt environment.
>>
%TFENV%
echo
echo -- TFDIR set to
%%
TFDIR
%%
>>
%TFENV%
set
TFDIR
=
%TFDIR:
\
=
/
%
del
/f /q .qmake.stash src\.qmake.stash tools\.qmake.stash
>
nul
2
>&
1
::
Builds MongoDB driver
echo
Compiling MongoDB driver library ...
cd
/d
%BASEDIR%
3rdparty
rd
/s /q mongo-driver
>
nul
2
>&
1
del
/f /q mongo-driver
>
nul
2
>&
1
mklink
/j mongo-driver mongo-c-driver-
%MONBOC_VERSION%
>
nul
2
>&
1
cd
%BASEDIR%
3rdparty\mongo-driver
rd
/s /q CMakeFiles
>
nul
2
>&
1
del
/f /q CMakeCache.txt Makefile
>
nul
2
>&
1
set
CMAKECMD
=
cmake
%CMAKEOPT%
-S . -DENABLE_STATIC=ON -DENABLE_SSL=OFF -DENABLE_SNAPPY=OFF -DENABLE_ZLIB=OFF -DENABLE_ZSTD=OFF -DENABLE_SRV=OFF -DENABLE_SASL=OFF -DENABLE_ZLIB=OFF -DENABLE_SHM_COUNTERS=OFF -DENABLE_TESTS=OFF
echo
%CMAKECMD%
%CMAKECMD%
>
nul
2
>&
1
set
BUILDCMD
=
cmake --build . --config Release --target mongoc_static --clean-first -j
echo
%BUILDCMD%
%BUILDCMD%
>
nul
2
>&
1
if
ERRORLEVEL
1
(
::
Shows error
%BUILDCMD%
echo;
echo
Build failed.
echo
MongoDB driver not available.
pause
exit
/b
1
)
::
Builds LZ4
echo
Compiling LZ4 library ...
cd
%BASEDIR%
3rdparty
rd
/s /q lz4
>
nul
2
>&
1
del
/f /q lz4
>
nul
2
>&
1
mklink
/j lz4 lz4-
%LZ4_VERSION%
>
nul
2
>&
1
cd
%BASEDIR%
3rdparty\lz4
rmdir
/s /q bin
>
nul
2
>&
1
set
CMAKECMD
=
cmake
%CMAKEOPT%
-S build\cmake -B bin -DBUILD_STATIC_LIBS=ON
echo
%CMAKECMD%
%CMAKECMD%
>
nul
2
>&
1
set
BUILDCMD
=
cmake --build bin --config Release --clean-first -j
echo
%BUILDCMD%
%BUILDCMD%
>
nul
2
>&
1
if
ERRORLEVEL
1
(
::
Shows error
%BUILDCMD%
echo;
echo
Build failed.
echo
LZ4 not available.
pause
exit
/b
1
)
::
Builds glog
echo
Compiling glog library ...
cd
%BASEDIR%
3rdparty
rd
/s /q glog
>
nul
2
>&
1
del
/f /q glog
>
nul
2
>&
1
mklink
/j glog glog-
%GLOG_VERSION%
>
nul
2
>&
1
cd
%BASEDIR%
3rdparty\glog
rmdir
/s /q build
>
nul
2
>&
1
set
CMAKECMD
=
cmake -S . -B build
%CMAKEOPT%
-DBUILD_SHARED_LIBS=OFF -DWITH_GFLAGS=OFF
echo
%CMAKECMD%
%CMAKECMD%
if
"
%DEBUG%
"
==
"
yes
"
(
set
BUILDCMD
=
cmake --build build --config Debug --clean-first -j
)
else
(
set
BUILDCMD
=
cmake --build build --config Release --clean-first -j
)
echo
%BUILDCMD%
%BUILDCMD%
>
nul
2
>&
1
if
ERRORLEVEL
1
(
::
Shows error
%BUILDCMD%
echo;
echo
Build failed.
echo
glog not available.
pause
exit
/b
1
)
::
Builds TreeFrog
cd
%BASEDIR%
src
if
exist
Makefile ( nmake distclean
>
nul
2
>&
1 )
qmake
%OPT%
target.path='
%TFDIR%
/bin' header.path='
%TFDIR%
/include'
%USE_GUI%
cd
%BASEDIR%
tools
if
exist
Makefile ( nmake distclean
>
nul
2
>&
1 )
qmake -recursive
%OPT%
target.path='
%TFDIR%
/bin' header.path='
%TFDIR%
/include' datadir='
%TFDIR%
'
nmake qmake
echo;
echo
First, run
"
nmake install
"
in src directory.
echo
Next, run
"
nmake install
"
in tools directory.
:
exit
exit
/b
You can’t perform that action at this time.