File: wscript

package info (click to toggle)
samba 2%3A4.23.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188,064 kB
  • sloc: ansic: 2,007,249; python: 272,609; sh: 72,208; xml: 51,608; perl: 36,091; makefile: 6,353; yacc: 5,320; exp: 1,582; lex: 1,504; cpp: 1,224; awk: 589; java: 119; csh: 58; pascal: 54; sed: 45; asm: 30
file content (42 lines) | stat: -rw-r--r-- 1,447 bytes parent folder | download
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
#!/usr/bin/env python

import os
import sys
from waflib import Logs

def configure(conf):
    pkg_name = 'libtasn1'
    pkg_minversion = '3.8'

    if conf.CHECK_BUNDLED_SYSTEM_PKG(pkg_name, minversion=pkg_minversion):
        if not conf.find_program('asn1Parser', var='ASN1PARSER'):
            Logs.warn('WARNING: ans1Parser hasn\'t been found! Please install it (e.g. libtasn1-bin)')

def build(bld):
    if (bld.CONFIG_SET('HAVE_LIBTASN1') and
        bld.env.ASN1PARSER):

        bld.SAMBA_GENERATOR('MSCAT_PARSER',
                            source='mscat.asn',
                            target='mscat_asn1_tab.c',
                            rule='${ASN1PARSER} --output ${TGT} ${SRC}',
                            group='build_source')

        bld.SAMBA_LIBRARY('mscat',
                          source='''
                                 mscat_asn1_tab.c
                                 mscat_ctl.c
                                 mscat_pkcs7.c
                                 ''',
                          deps='''
                               talloc
                               gnutls
                               libtasn1
                               samba-util
                               samba-debug
                               ''',
                          private_library=True)

        bld.SAMBA_BINARY('dumpmscat',
                         source='dumpmscat.c',
                         deps='mscat')