[DEV] add rpc for gtest and gui mode for graphic windows application

This commit is contained in:
Edouard DUPIN 2016-09-28 23:41:41 +02:00
parent 2a9f3feed7
commit ed3a26a638
2 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,38 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
## @author Edouard DUPIN
##
## @copyright 2012, Edouard DUPIN, all right reserved
##
## @license APACHE 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("rpc : generic RPC library (developed by oracle)")
# No check ==> on the basic std libs:
self.set_valid(True)
self.add_depend([
'c'
])
# todo : create a searcher of the presence of the library:
self.add_flag("link-lib", "rpcsvc")
if env.get_isolate_system() == True:
self.add_header_file([
"/usr/" + target.base_path + "/include/rpc/*"
],
destination_path="rpc",
recursive=True)

View File

@ -0,0 +1,28 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
## @author Edouard DUPIN
##
## @copyright 2012, Edouard DUPIN, all right reserved
##
## @license APACHE v2.0 (see license file)
##
from lutin import debug
from lutin import system
from lutin import tools
from lutin import env
import os
## With inluding this module you start your application in mode 'windows' instead of "console"
class System(system.System):
def __init__(self, target):
system.System.__init__(self)
# create some HELP:
self.set_help("gui: this is not a library, this is a hook to enable graphic interface in windows (not console mode)")
self.set_valid(True)
self.add_flag('link', '-mwindows')
# by default we have -mconsole then no need to remove -mconsole