2013-07-24 07:43:48 +02:00
|
|
|
#!/usr/bin/python
|
2013-12-23 22:38:46 +01:00
|
|
|
import lutinModule as module
|
|
|
|
import lutinTools as tools
|
2013-07-24 07:43:48 +02:00
|
|
|
|
2013-12-23 22:38:46 +01:00
|
|
|
def get_desc():
|
|
|
|
return "MINIZIP : Small zip interface"
|
|
|
|
|
|
|
|
|
|
|
|
def create(target):
|
|
|
|
myModule = module.Module(__file__, 'minizip', 'LIBRARY')
|
|
|
|
myModule.add_src_file([
|
2013-07-24 07:43:48 +02:00
|
|
|
"zlib/contrib/minizip/unzip.c",
|
|
|
|
"zlib/contrib/minizip/zip.c",
|
|
|
|
"zlib/contrib/minizip/miniunz.c",
|
|
|
|
"zlib/contrib/minizip/ioapi.c"])
|
|
|
|
|
2013-12-23 22:38:46 +01:00
|
|
|
myModule.add_export_path(tools.get_current_path(__file__) + "/zlib/contrib/")
|
2013-07-24 07:43:48 +02:00
|
|
|
|
2013-12-23 22:38:46 +01:00
|
|
|
myModule.add_module_depend('z')
|
2013-07-24 07:43:48 +02:00
|
|
|
|
2013-12-23 22:38:46 +01:00
|
|
|
myModule.compile_flags_CC([
|
2013-07-24 22:30:18 +02:00
|
|
|
"-DNOCRYPT",
|
|
|
|
"-DIOAPI_NO_64"])
|
2014-04-22 23:49:45 +02:00
|
|
|
|
|
|
|
if target.name=="IOs" or target.name=="MacOs":
|
|
|
|
myModule.compile_flags_CC("-Wno-implicit-function-declaration")
|
|
|
|
|
2013-07-24 07:43:48 +02:00
|
|
|
# add the currrent module at the
|
|
|
|
return myModule
|
|
|
|
|
|
|
|
|