ejson/lutin_ejson.py

45 lines
847 B
Python
Raw Normal View History

2013-07-30 17:58:48 +02:00
#!/usr/bin/python
2015-05-08 22:37:25 +02:00
import lutin.module as module
import lutin.tools as tools
2013-07-30 17:58:48 +02:00
2013-12-23 22:38:46 +01:00
def get_desc():
2015-03-12 21:33:44 +01:00
return "e-json Json parser and generator"
2013-12-23 22:38:46 +01:00
def create(target):
myModule = module.Module(__file__, 'ejson', 'LIBRARY')
2013-07-30 17:58:48 +02:00
2013-12-23 22:38:46 +01:00
myModule.add_module_depend(['etk'])
2013-07-30 17:58:48 +02:00
# add extra compilation flags :
myModule.add_extra_compile_flags()
2013-12-23 22:38:46 +01:00
myModule.add_src_file([
2013-07-30 17:58:48 +02:00
'ejson/debug.cpp',
'ejson/ejson.cpp',
'ejson/Array.cpp',
'ejson/Boolean.cpp',
'ejson/Null.cpp',
'ejson/Number.cpp',
'ejson/String.cpp',
2013-07-30 17:58:48 +02:00
'ejson/Object.cpp',
2015-09-14 21:11:04 +02:00
'ejson/Value.cpp'
])
2013-07-30 17:58:48 +02:00
2015-09-14 21:11:04 +02:00
myModule.add_header_file([
'ejson/ejson.h',
'ejson/Array.h',
'ejson/Boolean.h',
'ejson/Null.h',
'ejson/Number.h',
'ejson/String.h',
'ejson/Object.h',
'ejson/Value.h'
])
myModule.add_path(tools.get_current_path(__file__))
2013-07-30 17:58:48 +02:00
# add the currrent module at the
return myModule