diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-03 16:39:32 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-03 16:39:32 +0100 |
commit | 85d9f14aa8bac16ab341662c770b64a15c21628b (patch) | |
tree | 422db18e798646cd4bc98abf342f25c09c0bdf1d /mach | |
parent | Download items' width should no longer exceed the list width (diff) | |
download | smolbote-85d9f14aa8bac16ab341662c770b64a15c21628b.tar.xz |
Changed from qbs to cmake
Diffstat (limited to 'mach')
-rwxr-xr-x | mach | 65 |
1 files changed, 0 insertions, 65 deletions
@@ -1,65 +0,0 @@ -#!/usr/bin/env ruby -# DISCLAIMER: this is not Mozilla's mach - -require 'optparse' - -options = { - :settingsDir => "../build/config", - :profile => 'qt5', - :build => 'release', - :buildDir => '../build', -} - -OptionParser.new do |opts| - opts.banner = "Usage: ./mach [options]" - - opts.on("-h", "--help", "Prints this help") do - puts opts - puts "Options: #{options}" - puts 'Commands: setup, run, clean, build' - exit - end - - opts.on("--profile", "Set profile") do |profile| - options[:profile] = profile - end - - opts.on("-d", "--build DIRECTORY", "Build location") do |dir| - options[:buildDir] = dir - end - - opts.on("-i", "--install DIRECTORY", "Install location") do |dir| - options[:installDir] = dir - end - - opts.on("--debug", "Debug build") do - options[:build] = 'debug' - end - - opts.on("--release", "Release build") do - options[:build] = 'release' - end - -end.parse! - -if not ARGV.empty? then - ARGV.each do|arg| - case arg - when 'setup' - system "qbs-setup-toolchains --settings-dir #{options[:settingsDir]} --detect" - system "qbs-setup-qt --settings-dir #{options[:settingsDir]} /usr/bin/qmake-qt5 #{options[:profile]}" - when 'run' - system "qbs run --settings-dir #{options[:settingsDir]} -d #{options[:buildDir]} -p poi profile:#{options[:profile]} #{options[:build]}" - when 'clean' - system "qbs clean --settings-dir #{options[:settingsDir]} -d #{options[:buildDir]} profile:#{options[:profile]} #{options[:build]}" - when 'build' - system "qbs build --settings-dir #{options[:settingsDir]} -d #{options[:buildDir]} --force-probe-execution profile:#{options[:profile]} #{options[:build]}" - else - puts "Unknown argument #{arg}; use ./mach -h for more details" - end - end - -else - puts 'No arguments; use ./mach -h for more details' -end - |