mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
projects.py fix: Cflags command doesn\'t pull in dependencies recursively
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
1b071fbe8e
commit
2e924cd664
1 changed files with 4 additions and 2 deletions
|
|
@ -275,11 +275,11 @@ def cmd_ldflags(args_):
|
|||
print(get_ldflags(args.module))
|
||||
|
||||
def cmd_cflags(args_):
|
||||
parser = argparse.ArgumentParser(description='ldlibpath')
|
||||
parser = argparse.ArgumentParser(description='cflags')
|
||||
parser.add_argument('module', nargs='*', help='Modules')
|
||||
args=parser.parse_args(args_)
|
||||
deps = get_modules_from_project_txt(args.module, 'pkg.required.jw', 'build',
|
||||
scope = 1, add_self=True, names_only=True)
|
||||
scope = 2, add_self=True, names_only=True)
|
||||
r = ''
|
||||
for m in reversed(deps):
|
||||
r = r + ' -I' + proj_dir(m) + '/include'
|
||||
|
|
@ -307,6 +307,8 @@ def cmd_prereq(args_):
|
|||
|
||||
def cmd_pkg_requires(args_):
|
||||
parser = argparse.ArgumentParser(description='pkg-requires')
|
||||
# TODO: implement Vendor evaluation
|
||||
parser.add_argument('vendor', help='Vendor', default='jw')
|
||||
parser.add_argument('flavour', help='Flavour')
|
||||
parser.add_argument('module', nargs='*', help='Modules')
|
||||
args=parser.parse_args(args_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue