File: pkgconfig.py

package info (click to toggle)
libxmlbird 1.2.15-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 308 kB
  • sloc: python: 649; xml: 122; sh: 51; makefile: 14
file content (17 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from scripts import config
from scripts import version

def generate_pkg_config_file():
        f = open('./build/xmlbird.pc', 'w+')
        f.write("prefix=" + config.PREFIX + "\n")
        f.write("""exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}""" + config.LIBDIR + """

Name: xmlbird
Description: XML parser
Version: """ + version.XMLBIRD_VERSION + """
Cflags: -I${includedir}
Libs: -L${libdir} -lxmlbird
Requires: glib-2.0
""")