[DEV] better inclusion methode for Mac and IOs system dependency

This commit is contained in:
Edouard DUPIN 2016-09-28 22:39:33 +02:00
parent ac9e861ad6
commit 16a127482c

View File

@ -159,21 +159,19 @@ def create(target, module_name):
my_module.add_depend("glew") my_module.add_depend("glew")
pass pass
elif "MacOs" in target.get_type(): elif "MacOs" in target.get_type():
my_module.add_flag('link', [ my_module.add_depend([
"-framework Cocoa", "Cocoa",
"-framework QuartzCore", "QuartzCore",
"-framework AppKit" "AppKit",
], ])
export=True)
elif "IOs" in target.get_type(): elif "IOs" in target.get_type():
my_module.add_flag('link', [ my_module.add_depend([
"-framework CoreGraphics", "CoreGraphics",
"-framework UIKit", "UIKit",
"-framework GLKit", "GLKit",
"-framework Foundation", "Foundation",
"-framework QuartzCore" "QuartzCore",
], ])
export=True)
return my_module return my_module