[DEV] start clean dependency with the new lutin

This commit is contained in:
Edouard DUPIN 2016-08-07 22:49:40 +02:00
parent eac1a954b2
commit 1a54741851

View File

@ -86,13 +86,15 @@ def create(target, module_name):
'gale/context/MacOs/Interface.mm', 'gale/context/MacOs/Interface.mm',
'gale/context/MacOs/Windows.mm', 'gale/context/MacOs/Windows.mm',
'gale/context/MacOs/OpenglView.mm', 'gale/context/MacOs/OpenglView.mm',
'gale/context/MacOs/AppDelegate.mm']) 'gale/context/MacOs/AppDelegate.mm'
])
elif target.name=="IOs": elif target.name=="IOs":
my_module.add_src_file([ my_module.add_src_file([
'gale/context/IOs/Context.cpp', 'gale/context/IOs/Context.cpp',
'gale/context/IOs/Interface.m', 'gale/context/IOs/Interface.m',
'gale/context/IOs/OpenglView.mm', 'gale/context/IOs/OpenglView.mm',
'gale/context/IOs/AppDelegate.mm']) 'gale/context/IOs/AppDelegate.mm'
])
else: else:
debug.error("unknow mode...") debug.error("unknow mode...")
# Key properties: # Key properties:
@ -134,7 +136,10 @@ def create(target, module_name):
'gale/resource/Texture.h', 'gale/resource/Texture.h',
'gale/resource/VirtualBufferObject.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('esignal', ["c++", "-DGALE_BUILD_ESIGNAL"])
my_module.add_optionnal_module_depend('eproperty', ["c++", "-DGALE_BUILD_EPROPERTY"]) my_module.add_optionnal_module_depend('eproperty', ["c++", "-DGALE_BUILD_EPROPERTY"])
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(tools.get_current_path(__file__))
@ -144,37 +149,29 @@ def create(target, module_name):
]) ])
if target.name=="Linux": if target.name=="Linux":
# todo : my_module.add_module_depend(['egami']) pass
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
elif target.name=="Android": elif target.name=="Android":
my_module.add_module_depend(["SDK", "jvm-basics"]) my_module.add_module_depend(["SDK", "jvm-basics"])
my_module.add_export_flag('link-lib', "GLESv2")
# add tre creator of the basic java class ... # add tre creator of the basic java class ...
target.add_action("BINARY", 50, "gale-auto-wrapper", tool_generate_main_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 ? # TODO : Add the same for BINARY to create a console interface ?
elif target.name=="Windows": elif target.name=="Windows":
my_module.add_module_depend("glew") #my_module.add_module_depend("glew")
pass
elif target.name=="MacOs": elif target.name=="MacOs":
my_module.add_export_flag('link', [ my_module.add_export_flag('link', [
"-framework Cocoa", "-framework Cocoa",
"-framework OpenGL",
"-framework QuartzCore", "-framework QuartzCore",
"-framework AppKit"]) "-framework AppKit"
])
elif target.name=="IOs": elif target.name=="IOs":
my_module.add_export_flag('link', [ my_module.add_export_flag('link', [
"-framework OpenGLES",
"-framework CoreGraphics", "-framework CoreGraphics",
"-framework UIKit", "-framework UIKit",
"-framework GLKit", "-framework GLKit",
"-framework Foundation", "-framework Foundation",
"-framework QuartzCore"]) "-framework QuartzCore"
])
return my_module return my_module