46 lines
1.1 KiB
Python
46 lines
1.1 KiB
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
##
|
|
## @author Edouard DUPIN
|
|
##
|
|
## @copyright 2012, Edouard DUPIN, all right reserved
|
|
##
|
|
## @license MPL v2.0 (see license file)
|
|
##
|
|
|
|
from lutin import debug
|
|
from lutin import system
|
|
from lutin import tools
|
|
from lutin import env
|
|
import os
|
|
|
|
class System(system.System):
|
|
def __init__(self, target):
|
|
system.System.__init__(self)
|
|
# create some HELP:
|
|
self.set_help("BOOST : Boost interface (need when we have not all c++ feature\n Can be install with the package:\n - libboost-all-dev")
|
|
# check if the library exist:
|
|
if not os.path.isfile("/usr/include/boost/chrono.hpp"):
|
|
# we did not find the library reqiested (just return) (automaticly set at false)
|
|
return;
|
|
self.set_valid(True)
|
|
if env.get_isolate_system() == False:
|
|
# todo : create a searcher of the presence of the library:
|
|
self.add_flag("link-lib", [
|
|
"boost_system",
|
|
"boost_thread",
|
|
"boost_chrono"
|
|
])
|
|
else:
|
|
self.add_header_file([
|
|
"/usr/include/boost/*"
|
|
],
|
|
destination_path="boost",
|
|
recursive=True)
|
|
self.add_depend([
|
|
'cxx'
|
|
])
|
|
|
|
|
|
|