docs and cosmetic changes

This commit is contained in:
Thomas Nagy 2012-06-09 09:42:11 +02:00
parent fb815d0c8a
commit 5de226d7ac
4 changed files with 21 additions and 23 deletions

View File

@ -1,39 +1,33 @@
#! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2011 (ita)
# Thomas Nagy, 2006-2012 (ita)
# A test script for the network cache
# the following two variables are used by the target "waf dist"
APPNAME='cc_test'
srcdir = '.'
blddir = 'build'
top = '.'
out = 'build'
def set_options(opt):
#opt.tool_options('compiler_cc')
def options(opt):
#opt.tool_options('compiler_c')
pass
def configure(conf):
#conf.check_tool('compiler_cc')
#conf.check_tool('compiler_c')
conf.check_tool('gcc')
conf.check_tool('netcache_client')
def build(bld):
# 1. A simple program
bld.new_task_gen(
features = 'cc cprogram',
bld(
features = 'c cprogram',
source = 'main.c',
target = 'test_c_app',
uselib_local = 'my_static_lib',
includes = '. /usr/include')
# 2. A simple static lib
bld.new_task_gen(
features = 'cc cstaticlib',
bld(
features = 'c cstlib',
source = 'test_staticlib.c',
target='my_static_lib')
# if we had subfolder we would do the following
#bld.add_subdirs('src')

View File

@ -578,9 +578,12 @@ def load_tool(tool, tooldir=None):
:type tooldir: list
:param tooldir: List of directories to search for the tool module
"""
tool = tool.replace('++', 'xx')
tool = tool.replace('java', 'javaw')
tool = tool.replace('compiler_cc', 'compiler_c')
if tool == 'java':
tool = 'javaw' # jython
elif tool == 'compiler_cc':
tool = 'compiler_c' # TODO remove in waf 1.8
else:
tool.replace('++', 'xx')
if tooldir:
assert isinstance(tooldir, list)

View File

@ -3,7 +3,8 @@
# Thomas Nagy, 2010 (ita)
"""
This file is provided to enable compatibility with waf 1.5, it will be removed in waf 1.7
This file is provided to enable compatibility with waf 1.5
It was enabled by default in waf 1.6, but it is not used in waf 1.7
"""
import sys

View File

@ -69,7 +69,7 @@ def process_valadoc(self):
"""
Generate API documentation from Vala source code with valadoc
doc = bld.new_task_gen (
doc = bld(
features = 'valadoc',
output_dir = '../doc/html',
package_name = 'vala-gtk-example',