[DEV] start clean dependency with the new lutin
This commit is contained in:
parent
eac1a954b2
commit
1a54741851
@ -86,13 +86,15 @@ def create(target, module_name):
|
||||
'gale/context/MacOs/Interface.mm',
|
||||
'gale/context/MacOs/Windows.mm',
|
||||
'gale/context/MacOs/OpenglView.mm',
|
||||
'gale/context/MacOs/AppDelegate.mm'])
|
||||
'gale/context/MacOs/AppDelegate.mm'
|
||||
])
|
||||
elif target.name=="IOs":
|
||||
my_module.add_src_file([
|
||||
'gale/context/IOs/Context.cpp',
|
||||
'gale/context/IOs/Interface.m',
|
||||
'gale/context/IOs/OpenglView.mm',
|
||||
'gale/context/IOs/AppDelegate.mm'])
|
||||
'gale/context/IOs/AppDelegate.mm'
|
||||
])
|
||||
else:
|
||||
debug.error("unknow mode...")
|
||||
# Key properties:
|
||||
@ -134,7 +136,10 @@ def create(target, module_name):
|
||||
'gale/resource/Texture.h',
|
||||
'gale/resource/VirtualBufferObject.h'
|
||||
])
|
||||
my_module.add_module_depend(['etk'])
|
||||
my_module.add_module_depend([
|
||||
'etk',
|
||||
'opengl'
|
||||
])
|
||||
my_module.add_optionnal_module_depend('esignal', ["c++", "-DGALE_BUILD_ESIGNAL"])
|
||||
my_module.add_optionnal_module_depend('eproperty', ["c++", "-DGALE_BUILD_EPROPERTY"])
|
||||
my_module.add_path(tools.get_current_path(__file__))
|
||||
@ -144,37 +149,29 @@ def create(target, module_name):
|
||||
])
|
||||
|
||||
if target.name=="Linux":
|
||||
# todo : my_module.add_module_depend(['egami'])
|
||||
my_module.add_export_flag('link-lib', 'GL')
|
||||
#`pkg-config --cflags directfb` `pkg-config --libs directfb`
|
||||
#ifeq ("$(CONFIG___GALE_LINUX_GUI_MODE_X11__)","y")
|
||||
my_module.add_export_flag('link-lib', 'X11')
|
||||
#endif
|
||||
#ifeq ("$(CONFIG___GALE_LINUX_GUI_MODE_DIRECT_FB__)","y")
|
||||
#my_module.add_export_flag('link', ['-L/usr/local/lib', '-ldirectfb', '-lfusion', '-ldirect'])
|
||||
#endif
|
||||
pass
|
||||
elif target.name=="Android":
|
||||
my_module.add_module_depend(["SDK", "jvm-basics"])
|
||||
my_module.add_export_flag('link-lib', "GLESv2")
|
||||
# add tre creator of the basic java class ...
|
||||
target.add_action("BINARY", 50, "gale-auto-wrapper", tool_generate_main_java_class)
|
||||
# TODO : Add the same for BINARY to create a console interface ?
|
||||
elif target.name=="Windows":
|
||||
my_module.add_module_depend("glew")
|
||||
#my_module.add_module_depend("glew")
|
||||
pass
|
||||
elif target.name=="MacOs":
|
||||
my_module.add_export_flag('link', [
|
||||
"-framework Cocoa",
|
||||
"-framework OpenGL",
|
||||
"-framework QuartzCore",
|
||||
"-framework AppKit"])
|
||||
"-framework AppKit"
|
||||
])
|
||||
elif target.name=="IOs":
|
||||
my_module.add_export_flag('link', [
|
||||
"-framework OpenGLES",
|
||||
"-framework CoreGraphics",
|
||||
"-framework UIKit",
|
||||
"-framework GLKit",
|
||||
"-framework Foundation",
|
||||
"-framework QuartzCore"])
|
||||
"-framework QuartzCore"
|
||||
])
|
||||
|
||||
return my_module
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user