From d4393ea18c244a78d223db3d380bfb79256a873f Mon Sep 17 00:00:00 2001 From: Fabiano FidĂȘncio Date: Thu, 30 Oct 2014 11:31:03 +0100 Subject: Add option to make packages win64-aware For this, each component should have Win64="$(var.Win64)", what can be added by passing --win64 option to wixl-heat --- tools/wixl/wixl-heat.vala | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/wixl/wixl-heat.vala b/tools/wixl/wixl-heat.vala index ef426ec..7aeff92 100644 --- a/tools/wixl/wixl-heat.vala +++ b/tools/wixl/wixl-heat.vala @@ -6,6 +6,7 @@ static string prefix; static string vardir; [CCode (array_length = false, array_null_terminated = true)] static string[] exclude; +static bool win64; private const OptionEntry[] options = { { "directory-ref", 0, 0, OptionArg.STRING, ref dr, N_("Directory Ref"), null }, @@ -13,6 +14,7 @@ private const OptionEntry[] options = { { "var", 0, 0, OptionArg.STRING, ref vardir, N_("Variable for source dir"), null }, { "prefix", 'p', 0, OptionArg.STRING, ref prefix, N_("Prefix"), null }, { "exclude", 'x', 0, OptionArg.STRING_ARRAY, ref exclude, N_("Exclude prefix"), null }, + { "win64", 0, 0, OptionArg.NONE, ref win64, N_("Add Win64 Component"), null }, { null } }; @@ -97,7 +99,10 @@ public int main (string[] args) { if (!is_directory) { var id = generate_id ("cmp", 1, file); cmpref.append (id); - stdout.printf (indent + "\n".printf (id)); + if (win64) + stdout.printf (indent + "\n".printf (id)); + else + stdout.printf (indent + "\n".printf (id)); file = sourcedir + Path.DIR_SEPARATOR_S + file; stdout.printf (indent + " \n".printf (generate_id ("fil", 1, file), file)); stdout.printf (indent + "\n"); @@ -127,4 +132,4 @@ public int main (string[] args) { stdout.printf ("\n", Config.PACKAGE_STRING); stdout.printf ("\n", cmdline.replace ("--", "-")); return 0; -} \ No newline at end of file +} -- cgit