summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-12-27 14:29:06 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2013-12-27 14:29:06 -0500
commitb0e4f81eb3a38b7236ec39f11d5211840a064d15 (patch)
tree91a917a2010fbaae80ff7fec6ab343b75bb978c2 /tools
parent28759617c4eb0cbadbd41e6d7ea97d5de182966c (diff)
parentc16551c80820e9f71341b2f940143c8b3f44f5ce (diff)
merge exportvis branch into cairocanvas, to reduce the number of "floating" branches.
Still need to add API export/visibility macros for the canvas library.
Diffstat (limited to 'tools')
-rw-r--r--tools/autowaf.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/autowaf.py b/tools/autowaf.py
index 46c563519f..87e19d5aea 100644
--- a/tools/autowaf.py
+++ b/tools/autowaf.py
@@ -526,7 +526,7 @@ def build_dox(bld, name, version, srcdir, blddir, outdir=''):
excl='**/_*'))
# Version code file generation
-def build_version_files(header_path, source_path, domain, major, minor, micro):
+def build_version_files(header_path, source_path, domain, major, minor, micro, exportname, visheader):
header_path = os.path.abspath(header_path)
source_path = os.path.abspath(source_path)
text = "int " + domain + "_major_version = " + str(major) + ";\n"
@@ -542,10 +542,12 @@ def build_version_files(header_path, source_path, domain, major, minor, micro):
text = "#ifndef __" + domain + "_version_h__\n"
text += "#define __" + domain + "_version_h__\n"
- text += " extern const char* " + domain + "_revision;\n"
- text += " extern int " + domain + "_major_version;\n"
- text += " extern int " + domain + "_minor_version;\n"
- text += " extern int " + domain + "_micro_version;\n"
+ if visheader != '':
+ text += "#include \"" + visheader + "\"\n"
+ text += exportname + " extern const char* " + domain + "_revision;\n"
+ text += exportname + " extern int " + domain + "_major_version;\n"
+ text += exportname + " extern int " + domain + "_minor_version;\n"
+ text += exportname + " extern int " + domain + "_micro_version;\n"
text += "#endif /* __" + domain + "_version_h__ */\n"
try:
o = open(header_path, 'w')