#src/! /usr/bin/env python
#src/ encoding: utf-8
#src/ Sandeep S Srinivasa, 2009
from Logs import error, debug, warn

common_sources = """
                    libnvpair.c
                    nvpair.c
                    nvpair_alloc_fixed.c
                    nvpair_alloc_system.c
                 """.split()


include_dirs = """
                 include 
                 #src/lib/libumem/include 
                 #src/lib/libnvpair/include1 
                 #src/lib/libsolcompat/include
                 .
                 """.split()

#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/#src/

obj_user = bld.new_task_gen(
        features = 'cc cstaticlib',
        includes = include_dirs,
        defines = [ '_FILE_OFFSET_BITS=64', 'TEXT_DOMAIN=\"zfs-fuse\"'],
        install_path = None, #prevents installation of this file
        name = "nvpair-user",
        target = 'nvpair-user'
        )


obj_user.find_sources_in_dirs('.') #src/ take the sources in the current folder

obj_kernel = bld.new_task_gen(
        features = 'cc cstaticlib',
        includes = include_dirs,
        defines = [ '_KERNEL', '_FILE_OFFSET_BITS=64', 'TEXT_DOMAIN=\"zfs-fuse\"'],
        install_path = None, #prevents installation of this file
        name = "nvpair-kernel",
        target = 'nvpair-kernel'
        )

obj_kernel.find_sources_in_dirs('.') #src/ take the sources in the current folder

