ushare-/lutin_ushare.py

74 lines
1.4 KiB
Python

#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import os
def get_type():
return "BINARY"
def get_name():
return "micro-share"
def get_desc():
return "UPNP server"
def get_licence():
return "GPL-3"
#
#def get_compagny_type():
# return "org"
#
#def get_compagny_name():
# return ""
#
def get_maintainer():
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
def get_version():
return [1,1,"dev"]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_extra_compile_flags()
my_module.add_src_file([
'appl/http.cpp',
'appl/services.cpp',
'appl/ushare.cpp',
'appl/content.cpp',
'appl/trace.cpp',
'appl/cms.cpp',
'appl/redblack.cpp',
'appl/util_iconv.cpp',
'appl/osdep.cpp',
'appl/mime.cpp',
'appl/cfgparser.cpp',
'appl/metadata.cpp',
'appl/msr.cpp',
'appl/cds.cpp',
'appl/presentation.cpp',
'appl/buffer.cpp',
'appl/ctrl_telnet.cpp'
])
my_module.add_path(tools.get_current_path(__file__))
my_module.compile_flags('c', [
"-D_LARGEFILE_SOURCE",
"-D_FILE_OFFSET_BITS=64",
"-D_REENTRANT",
"-D_GNU_SOURCE",
"-DHAVE_SETLOCALE",
"-DHAVE_IFADDRS_H",
"-DHAVE_LANGINFO_CODESET",
"-DHAVE_ICONV",
"-pthread",
"-I/usr/include/upnp"
])
my_module.compile_flags('link', [
"-lixml",
"-lthreadutil",
"-lpthread",
"-lupnp",
"-pthread"
])
return my_module