summaryrefslogtreecommitdiff
path: root/common.mk
blob: b778f7aaf955d96f139f7958d8ed7f9a7b86c528 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# -*- Mode: make -*-
# Copyright 2009-2010 Johan Dahlin
#
# This file defines variables that are compatible with
# Makefile.introspection, but for use within the gobject-introspection
# module itself.
#

INTROSPECTION_SCANNER = \
    env PATH=".libs:$(PATH)" \
        LPATH=.libs \
        CC="$(CC)" \
        PYTHONPATH=$(top_builddir):$(top_srcdir) \
        UNINSTALLED_INTROSPECTION_SRCDIR=$(top_srcdir) \
        UNINSTALLED_INTROSPECTION_BUILDDIR=$(top_builddir) \
        $(top_builddir)/g-ir-scanner

INTROSPECTION_SCANNER_ARGS = \
    --verbose \
    -I$(top_srcdir) \
    --add-include-path=$(srcdir) \
    --add-include-path=$(top_srcdir)/gir \
    --add-include-path=$(builddir) \
    --add-include-path=$(top_builddir) \
    --add-include-path=$(top_builddir)/gir

# GI_CROSS_LAUNCHER is the command to use for executing g-ir-compiler.
# Normally will be undefined but can be set (e.g. to wine or qemu)
# when cross-compiling
INTROSPECTION_COMPILER = \
    env PATH=".libs:$(PATH)" \
        $(GI_CROSS_LAUNCHER) \
        $(top_builddir)/g-ir-compiler$(EXEEXT)

INTROSPECTION_COMPILER_ARGS = \
    --includedir=$(srcdir) \
    --includedir=$(top_srcdir)/gir \
    --includedir=$(builddir) \
    --includedir=$(top_builddir) \
    --includedir=$(top_builddir)/gir

INTROSPECTION_DOCTOOL = \
    env PATH=".libs:$(PATH)" \
        LPATH=.libs \
        PYTHONPATH=$(top_builddir):$(top_srcdir) \
        UNINSTALLED_INTROSPECTION_SRCDIR=$(top_srcdir) \
        UNINSTALLED_INTROSPECTION_BUILDDIR=$(top_builddir) \
        $(top_builddir)/g-ir-doc-tool

INTROSPECTION_DOCTOOL_ARGS = \
    --add-include-path=$(srcdir) \
    --add-include-path=$(top_srcdir)/gir \
    --add-include-path=$(builddir) \
    --add-include-path=$(top_builddir) \
    --add-include-path=$(top_builddir)/gir