summaryrefslogtreecommitdiff
path: root/third_party/aesni-intel/wscript
blob: 002ba5d42d1463cb7cc45c17e73a4ad573a847db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python

def configure(conf):
    if conf.CHECK_CFLAGS('-Wp,-E,-lang-asm', '') and conf.env['SYSTEM_UNAME_MACHINE'] == 'x86_64':
        conf.DEFINE('HAVE_AESNI_INTEL', 1)

def build(bld):
    if not bld.CONFIG_SET('HAVE_AESNI_INTEL'):
        return

    bld.SAMBA_LIBRARY('aesni-intel',
        source='aesni-intel_asm.c',
        cflags='-Wp,-E,-lang-asm',
        private_library=True)