[DEV] Update new lutin 2.2.0 (no legacy support)

This commit is contained in:
Edouard DUPIN 2016-10-04 23:41:29 +02:00
parent 0de4cb8dba
commit 61e51bbc4a
2 changed files with 10 additions and 12 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/python #!/usr/bin/python
import lutin.module as module import lutin.debug as debug
import lutin.tools as tools import lutin.tools as tools
@ -24,18 +24,17 @@ def get_compagny_name():
def get_maintainer(): def get_maintainer():
return "authors.txt" return "authors.txt"
def create(target, module_name): def configure(target, my_module):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([ my_module.add_src_file([
'sample/basic.cpp' 'sample/basic.cpp'
]) ])
my_module.add_depend([ my_module.add_depend([
'gale', 'gale',
'test-debug' 'test-debug'
]) ])
my_module.copy_file('sample/basic.frag') my_module.copy_file('sample/basic.frag')
my_module.copy_file('sample/basic.vert') my_module.copy_file('sample/basic.vert')
return my_module return True

View File

@ -1,5 +1,5 @@
#!/usr/bin/python #!/usr/bin/python
import lutin.module as module import lutin.debug as debug
import lutin.tools as tools import lutin.tools as tools
import lutin.debug as debug import lutin.debug as debug
import os import os
@ -27,8 +27,7 @@ def get_maintainer():
def get_version(): def get_version():
return "version.txt" return "version.txt"
def create(target, module_name): def configure(target, my_module):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_extra_flags() my_module.add_extra_flags()
# add the file to compile: # add the file to compile:
my_module.add_src_file([ my_module.add_src_file([
@ -80,7 +79,7 @@ def create(target, module_name):
'android/src/org/gale/GaleWallpaper.java', 'android/src/org/gale/GaleWallpaper.java',
'org.gale.GaleConstants.javah' 'org.gale.GaleConstants.javah'
]) ])
my_module.add_path(tools.get_current_path(__file__) + '/android/src/', type='java') my_module.add_path('android/src/', type='java')
elif "MacOs" in target.get_type(): elif "MacOs" in target.get_type():
my_module.add_src_file([ my_module.add_src_file([
'gale/context/MacOs/Context.mm', 'gale/context/MacOs/Context.mm',
@ -143,7 +142,7 @@ def create(target, module_name):
]) ])
my_module.add_optionnal_depend('esignal', ["c++", "-DGALE_BUILD_ESIGNAL"]) my_module.add_optionnal_depend('esignal', ["c++", "-DGALE_BUILD_ESIGNAL"])
my_module.add_optionnal_depend('eproperty', ["c++", "-DGALE_BUILD_EPROPERTY"]) my_module.add_optionnal_depend('eproperty', ["c++", "-DGALE_BUILD_EPROPERTY"])
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(".")
my_module.add_flag('c++', [ my_module.add_flag('c++', [
"-DGALE_VERSION=\"\\\"" + tools.version_to_string(my_module.get_pkg("VERSION")) + "\\\"\"" "-DGALE_VERSION=\"\\\"" + tools.version_to_string(my_module.get_pkg("VERSION")) + "\\\"\""
@ -173,7 +172,7 @@ def create(target, module_name):
"QuartzCore", "QuartzCore",
]) ])
return my_module return True