Author SHA1 Message Date
Mikaël Capelle 1bb0c4ce3d Add scripts to generate prebuilt. 2024-06-30 19:43:50 +02:00
Mikaël Capelle f99e777433 Add -d option to mob cmake to build in debug mode. (#137) 2024-06-21 17:14:11 +02:00
Mikaël Capelle ecd210d700 More flexibility to build Debug components (#136)
* Build components in all variant for boost to avoid issue with USVFS.
* Build googletest in both Debug and Release.
* Allow build configurations other than RelWithDebInfo.
2024-06-15 22:19:35 +02:00
5 changed files with 40 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
param(
[Parameter(Mandatory = $true)][String]$Path,
[Parameter(Mandatory = $true)][String]$Output
)
7z a $Output (Join-Path -Path $Path -ChildPath "boost")
7z a $Output (Join-Path -Path $Path -ChildPath "lib32-msvc-14.3")
7z a $Output (Join-Path -Path $Path -ChildPath "lib64-msvc-14.3")
7z a $Output (Join-Path -Path $Path -ChildPath "LICENSE_1_0.txt")
+13
View File
@@ -0,0 +1,13 @@
param(
[Parameter(Mandatory = $true)][String]$PyQtPath,
[Parameter(Mandatory = $true)][String]$PythonPath,
[Parameter(Mandatory = $true)][String]$Output
)
$Output = [IO.Path]::GetFullPath($Output)
7z a $Output (Join-Path -Path $PyQtPath -ChildPath "LICENSE")
Push-Location $PythonPath
7z a $Output "Lib/site-packages/PyQt6" "-xr!__pycache__"
Pop-Location
+10
View File
@@ -0,0 +1,10 @@
param(
[Parameter(Mandatory = $true)][String]$Path,
[Parameter(Mandatory = $true)][String]$Output
)
7z a $Output (Join-Path -Path $Path -ChildPath "PCbuild/amd64") "-xr!pythoncore_temp"
7z rn $Output "amd64" "PCbuild/amd64"
7z a $Output (Join-Path -Path $Path -ChildPath "Include") "-xr!internal" "-xr!sip.h"
7z a $Output (Join-Path -Path $Path -ChildPath "Lib") "-xr!__pycache__" "-xr!site-packages"
7z a $Output (Join-Path -Path $Path -ChildPath "LICENSE")
+6 -1
View File
@@ -33,12 +33,17 @@ namespace mob {
(clipp::option("--install-prefix") & clipp::value("PATH") >> prefix_) % (clipp::option("--install-prefix") & clipp::value("PATH") >> prefix_) %
"sets CMAKE_INSTALL_PREFIX [default: empty]", "sets CMAKE_INSTALL_PREFIX [default: empty]",
(clipp::option("-d", "--debug").set(debug_, true)) %
"whether to configure for debug mode [default: false]",
(clipp::value("PATH") >> path_) % "path from which to run `cmake`"); (clipp::value("PATH") >> path_) % "path from which to run `cmake`");
} }
int cmake_command::do_run() int cmake_command::do_run()
{ {
auto t = tasks::modorganizer::create_cmake_tool(fs::path(utf8_to_utf16(path_))); auto t = tasks::modorganizer::create_cmake_tool(
fs::path(utf8_to_utf16(path_)), mob::cmake::generate,
debug_ ? config::debug : config::relwithdebinfo);
t.generator(gen_); t.generator(gen_);
t.cmd(cmd_); t.cmd(cmd_);
+2 -1
View File
@@ -382,7 +382,8 @@ namespace mob {
private: private:
std::string gen_; std::string gen_;
std::string cmd_; std::string cmd_;
bool x64_ = true; bool x64_ = true;
bool debug_ = false;
std::string prefix_; std::string prefix_;
std::string path_; std::string path_;
}; };