[DEV] add rpc for gtest and gui mode for graphic windows application
This commit is contained in:
parent
2a9f3feed7
commit
ed3a26a638
38
lutin/z_system/lutinSystem_Windows_rpc.py
Normal file
38
lutin/z_system/lutinSystem_Windows_rpc.py
Normal 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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
28
lutin/z_system/lutinSystem_Windows_start-mode-gui.py
Normal file
28
lutin/z_system/lutinSystem_Windows_start-mode-gui.py
Normal 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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user