Skip to content

Commit e9910ec

Browse files
committed
rename script
1 parent 016bf64 commit e9910ec

File tree

3 files changed

+90
-82
lines changed

3 files changed

+90
-82
lines changed

scripts/bootstrap_common.sh

Lines changed: 0 additions & 82 deletions
This file was deleted.

scripts/bootstrap_msvc.bat

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
@echo off
2+
setlocal enableextensions
3+
4+
cmake -B bin -S . ^
5+
-DCMAKE_BUILD_TYPE=Release ^
6+
-DFLTK_USE_SYSTEM_LIBPNG=OFF ^
7+
-DFLTK_USE_SYSTEM_LIBJPEG=OFF ^
8+
-DFLTK_USE_SYSTEM_LIBZLIB=OFF ^
9+
-DFLTK_BUILD_GL=ON ^
10+
-DCFLTK_USE_OPENGL=ON ^
11+
-DFLTK_BUILD_EXAMPLES=OFF ^
12+
-DFLTK_BUILD_TEST=OFF ^
13+
-DFLTK_OPTION_LARGE_FILE=ON ^
14+
-DFLTK_BUILD_HTML_DOCS=OFF ^
15+
-DFLTK_BUILD_PDF_DOCS=OFF ^
16+
-DFLTK_BUILD_FLUID=OFF ^
17+
-DFLTK_BUILD_FLTK_OPTIONS=OFF ^
18+
%*
19+
20+
cmake --build bin --config Release
21+
cmake --install bin
22+
23+
echo.
24+
echo Done!
25+
endlocal

scripts/bootstrap_posix.sh

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
COMMON_ARGS="
6+
-DCMAKE_BUILD_TYPE=Release
7+
-DFLTK_USE_SYSTEM_LIBPNG=OFF
8+
-DFLTK_USE_SYSTEM_LIBJPEG=OFF
9+
-DFLTK_USE_SYSTEM_LIBZLIB=OFF
10+
-DFLTK_BUILD_GL=ON
11+
-DCFLTK_USE_OPENGL=ON
12+
-DFLTK_BUILD_EXAMPLES=OFF
13+
-DFLTK_BUILD_TEST=OFF
14+
-DFLTK_OPTION_LARGE_FILE=ON
15+
-DFLTK_BUILD_HTML_DOCS=OFF
16+
-DFLTK_BUILD_PDF_DOCS=OFF
17+
-DFLTK_BUILD_FLUID=OFF
18+
-DFLTK_BUILD_FLTK_OPTIONS=OFF
19+
"
20+
21+
# Linux/BSD gets these extras
22+
LINUX_ARGS="
23+
-DFLTK_USE_PANGO=ON
24+
-DFLTK_GRAPHICS_CAIRO=ON
25+
-DFLTK_USE_LIBDECOR_GTK=OFF
26+
"
27+
28+
###############################################
29+
# 3. Detect environment and configure + build #
30+
###############################################
31+
32+
if [ -n "$MSYSTEM" ]; then
33+
###########################
34+
# MSYS2 / MinGW (Windows) #
35+
###########################
36+
echo "Detected MSYS2/MinGW environment..."
37+
38+
cmake -B bin -S . \
39+
$COMMON_ARGS \
40+
"$@"
41+
42+
elif [ "$(uname -s)" = "Darwin" ]; then
43+
###########
44+
# macOS #
45+
###########
46+
echo "Detected macOS environment..."
47+
48+
cmake -B bin -S . \
49+
$COMMON_ARGS \
50+
"$@"
51+
52+
else
53+
#################################
54+
# Linux or BSD (default branch) #
55+
#################################
56+
echo "Detected Linux or BSD environment..."
57+
58+
cmake -B bin -S . \
59+
$COMMON_ARGS \
60+
$LINUX_ARGS \
61+
"$@"
62+
fi
63+
64+
cmake --build bin --parallel
65+
cmake --install bin

0 commit comments

Comments
 (0)