From 796053b1025ad372f4d4269621569b2cac0bcb8e Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 8 Sep 2016 21:35:02 +0200 Subject: [PATCH] [DEV] update to future lutin 2.0 --- lutin_ogg.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lutin_ogg.py b/lutin_ogg.py index 7c61905..0867224 100644 --- a/lutin_ogg.py +++ b/lutin_ogg.py @@ -43,11 +43,11 @@ def create(target, module_name): 'ogg/tremor/mapping0.c' ]) my_module.compile_version("c", 1989, gnu=True) - my_module.compile_flags('c', "-Wno-duplicate-decl-specifier") - if target.name=="Android": - my_module.compile_flags('c', "-DBYTE_ORDER=1") - my_module.compile_flags('c', "-DBIG_ENDIAN=0") - my_module.compile_flags('c', "-DLITTLE_ENDIAN=1") + my_module.add_flag('c', "-Wno-duplicate-decl-specifier") + if "Android" in target.get_type(): + my_module.add_flag('c', "-DBYTE_ORDER=1") + my_module.add_flag('c', "-DBIG_ENDIAN=0") + my_module.add_flag('c', "-DLITTLE_ENDIAN=1") my_module.add_path(os.path.join(tools.get_current_path(__file__), "ogg")) my_module.add_path(os.path.join(tools.get_current_path(__file__), "ogg/ogg")) my_module.add_path(os.path.join(tools.get_current_path(__file__), "ogg/tremor")) @@ -75,7 +75,7 @@ def create(target, module_name): 'ogg/ogg/os_types.h' ], destination_path="ogg") - my_module.add_module_depend([ + my_module.add_depend([ 'c', 'm' ])