@@ -65,14 +65,6 @@ class InstallOptions:
65
65
# Third-party dependencies
66
66
third_party_src_dir : str = "<mrdocs-src-dir>/../third-party"
67
67
68
- # Fmt
69
- fmt_src_dir : str = "<third-party-src-dir>/fmt"
70
- fmt_build_type : str = "<mrdocs-build-type>"
71
- fmt_build_dir : str = "<fmt-src-dir>/build/<fmt-build-type:lower>"
72
- fmt_install_dir : str = "<fmt-src-dir>/install/<fmt-build-type:lower>"
73
- fmt_repo : str = "https://github.com/fmtlib/fmt"
74
- fmt_branch : str = "10.2.1"
75
-
76
68
# Duktape
77
69
duktape_src_dir : str = "<third-party-src-dir>/duktape"
78
70
duktape_url : str = "https://github.com/svaarala/duktape/releases/download/v2.7.0/duktape-2.7.0.tar.xz"
@@ -116,12 +108,6 @@ class InstallOptions:
116
108
"mrdocs_system_install" : "Whether to install MrDocs to the system directories instead of a custom install directory." ,
117
109
"mrdocs_run_tests" : "Whether to run tests after building MrDocs." ,
118
110
"third_party_src_dir" : "Directory for all third-party source dependencies." ,
119
- "fmt_src_dir" : "Directory for the fmt library source code." ,
120
- "fmt_build_type" : "CMake build type for the fmt library. (Release, Debug, RelWithDebInfo, MilRelSize, DebWithOpt)" ,
121
- "fmt_build_dir" : "Directory where the fmt library will be built." ,
122
- "fmt_install_dir" : "Directory where the fmt library will be installed." ,
123
- "fmt_repo" : "URL of the fmt library repository to clone." ,
124
- "fmt_branch" : "Branch or tag of the fmt library to use." ,
125
111
"duktape_src_dir" : "Directory for the Duktape source code." ,
126
112
"duktape_url" : "Download URL for the Duktape source archive." ,
127
113
"duktape_build_type" : "CMake build type for Duktape. (Release, Debug, RelWithDebInfo, MilRelSize, DebWithOpt)" ,
@@ -259,7 +245,7 @@ def repl(match):
259
245
key = match .group (1 )
260
246
has_dir_key = has_dir_key or key .endswith ("-dir" )
261
247
key = key .replace ("-" , "_" )
262
- fmt = match .group (2 )
248
+ transform_fn = match .group (2 )
263
249
if key == 'os' :
264
250
if self .is_windows ():
265
251
val = "windows"
@@ -271,10 +257,10 @@ def repl(match):
271
257
raise ValueError ("Unsupported operating system." )
272
258
else :
273
259
val = getattr (self .options , key , None )
274
- if fmt :
275
- if fmt == "lower" :
260
+ if transform_fn :
261
+ if transform_fn == "lower" :
276
262
val = val .lower ()
277
- elif fmt == "upper" :
263
+ elif transform_fn == "upper" :
278
264
val = val .upper ()
279
265
# Add more formats as needed
280
266
return val
@@ -539,17 +525,6 @@ def setup_third_party_dir(self):
539
525
self .prompt_dependency_path_option ("third_party_src_dir" )
540
526
os .makedirs (self .options .third_party_src_dir , exist_ok = True )
541
527
542
- def install_fmt (self ):
543
- self .prompt_dependency_path_option ("fmt_src_dir" )
544
- if not os .path .exists (self .options .fmt_src_dir ):
545
- self .prompt_option ("fmt_repo" )
546
- self .prompt_option ("fmt_branch" )
547
- self .clone_repo (self .options .fmt_repo , self .options .fmt_src_dir , branch = self .options .fmt_branch , depth = 1 )
548
- self .prompt_build_type_option ("fmt_build_type" )
549
- self .prompt_dependency_path_option ("fmt_build_dir" )
550
- self .prompt_dependency_path_option ("fmt_install_dir" )
551
- self .cmake_workflow (self .options .fmt_src_dir , self .options .fmt_build_type , self .options .fmt_build_dir , self .options .fmt_install_dir , ["-D" , "FMT_DOC=OFF" , "-D" , "FMT_TEST=OFF" ])
552
-
553
528
def install_duktape (self ):
554
529
self .prompt_dependency_path_option ("duktape_src_dir" )
555
530
if not os .path .exists (self .options .duktape_src_dir ):
@@ -715,7 +690,6 @@ def create_cmake_presets(self):
715
690
"Clang_ROOT" : self .options .llvm_install_dir ,
716
691
"duktape_ROOT" : self .options .duktape_install_dir ,
717
692
"Duktape_ROOT" : self .options .duktape_install_dir ,
718
- "fmt_ROOT" : self .options .fmt_install_dir ,
719
693
"libxml2_ROOT" : self .options .libxml2_install_dir ,
720
694
"LibXml2_ROOT" : self .options .libxml2_install_dir ,
721
695
"MRDOCS_BUILD_TESTS" : self .options .mrdocs_build_tests ,
@@ -797,7 +771,6 @@ def install_mrdocs(self):
797
771
"-D" , f"Clang_ROOT={ self .options .llvm_install_dir } " ,
798
772
"-D" , f"duktape_ROOT={ self .options .duktape_install_dir } " ,
799
773
"-D" , f"Duktape_ROOT={ self .options .duktape_install_dir } " ,
800
- "-D" , f"fmt_ROOT={ self .options .fmt_install_dir } "
801
774
])
802
775
if self .options .mrdocs_build_tests :
803
776
extra_args .extend ([
@@ -828,7 +801,6 @@ def install_all(self):
828
801
self .check_tools ()
829
802
self .setup_mrdocs_dir ()
830
803
self .setup_third_party_dir ()
831
- self .install_fmt ()
832
804
self .install_duktape ()
833
805
if self .options .mrdocs_build_tests :
834
806
self .install_libxml2 ()
0 commit comments