Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gxml
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Canek Peláez Valdés
Gxml
Commits
98f472ca
Commit
98f472ca
authored
13 years ago
by
Richard Schwarting
Browse files
Options
Downloads
Patches
Plain Diff
* add rule to build .pc so I can easily use gxml for other software
* add hacky call to valadoc, finally something that works
parent
e937c8bb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
wscript
+5
-1
5 additions, 1 deletion
wscript
with
5 additions
and
1 deletion
wscript
+
5
−
1
View file @
98f472ca
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
# the following two variables are used by the target "waf dist"
# the following two variables are used by the target "waf dist"
VERSION
=
'
0.0.2
'
VERSION
=
'
0.0.2
'
SHORTVERSION
=
'
0.0
'
APPNAME
=
'
gxml
'
APPNAME
=
'
gxml
'
# these variables are mandatory ('/' are converted automatically)
# these variables are mandatory ('/' are converted automatically)
...
@@ -27,11 +28,14 @@ def configure(conf):
...
@@ -27,11 +28,14 @@ def configure(conf):
conf
.
env
.
CFLAGS
=
[
'
-g
'
]
conf
.
env
.
CFLAGS
=
[
'
-g
'
]
conf
.
check_tool
(
'
gcc vala
'
)
# do we need to do this? only saw it in the valadoc example
conf
.
check_tool
(
'
gcc vala
'
)
# do we need to do this? only saw it in the valadoc example
#
conf.check_tool ('valadoc')
conf
.
check_tool
(
'
valadoc
'
)
def
build
(
bld
):
def
build
(
bld
):
bld
.
recurse
(
'
gxml test
'
)
bld
.
recurse
(
'
gxml test
'
)
bld
(
source
=
"
gxml.pc.in
"
,
install_path
=
"
${LIBDIR}/pkgconfig/
"
,
SHORTVERSION
=
SHORTVERSION
,
VERSION
=
VERSION
)
bld
(
rule
=
"
cp ${SRC} ${TGT}
"
,
source
=
"
test/test.xml
"
,
target
=
"
build/test/
"
)
bld
(
rule
=
"
cp ${SRC} ${TGT}
"
,
source
=
"
test/test.xml
"
,
target
=
"
build/test/
"
)
bld
(
rule
=
"
rm -rf doc; valadoc --package-name=
"
+
APPNAME
+
"
--package-version=
"
+
VERSION
+
"
--pkg libxml-2.0 --pkg gio-2.0 --pkg gee-1.0 ../gxml/*.vala -o doc
"
);
## want to call valadoc, but TypeError encountered by WAF, sigh
## want to call valadoc, but TypeError encountered by WAF, sigh
# bld(features='valadoc',
# bld(features='valadoc',
# output_dir = './doc',
# output_dir = './doc',
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment