1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* Copyright (C) 2011-2012 Robert Ancell <robert.ancell@gmail.com>
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version. See http://www.gnu.org/copyleft/gpl.html the full text of the
* license.
*/
public class DataModule : BuildModule
{
public override void generate_data_rules (Data data) throws Error
{
var recipe = data.recipe;
foreach (var entry in data.get_tagged_list ("files"))
{
if (!entry.is_allowed)
continue;
recipe.build_rule.add_input (entry.name);
if (data.install)
recipe.add_install_rule (entry.name, data.install_directory);
}
}
}
|