includepaths = [] obj_sources = [ 'obj.c', 'version.c' ] obj_lib = generator.lib(module = 'obj', sources = obj_sources + extrasources) #obj_so = generator.sharedlib(module = 'obj', sources = obj_sources + extrasources) if not target.is_ios() and not target.is_android() and not target.is_tizen(): configs = [config for config in toolchain.configs if config not in ['profile', 'deploy']] #No test cases if we're a submodule if generator.is_subninja(): sys.exit() includepaths = generator.test_includepaths() linklibs = ['test'] + dependlibs test_cases = [] if toolchain.is_monolithic() or target.is_ios() or target.is_android() or target.is_tizen(): #Build one fat binary with all test cases test_resources = [] test_extrasources = [] test_cases += ['all'] if target.is_ios(): test_resources = [os.path.join('all', 'ios', item) for item in ['test-all.plist', 'Images.xcassets', 'test-all.xib']] test_extrasources = [os.path.join('all', 'ios', 'viewcontroller.m')] elif target.is_android(): test_resources = [os.path.join('all', 'android', item) for item in [ 'AndroidManifest.xml', os.path.join('layout', 'main.xml'), os.path.join('values', 'strings.xml'),
target = generator.target writer = generator.writer toolchain = generator.toolchain lua_lib = generator.lib(module = 'lua', sources = [ 'bind.c', 'compile.c', 'foundation.c', 'import.c', 'lua.c', 'module.c', 'read.c', 'symbol.c', 'version.c']) if not target.is_ios() and not target.is_android(): configs = [config for config in toolchain.configs if config not in ['profile', 'deploy']] if not configs == []: generator.bin('lua', ['main.c'], 'lua', basepath = 'tools', implicit_deps = [lua_lib], libs = ['lua', 'luajit'] + dependlibs, configs = configs) generator.bin('luadump', ['main.c'], 'luadump', basepath = 'tools', implicit_deps = [lua_lib], libs = ['lua', 'luajit'] + dependlibs, configs = configs) generator.bin('luaimport', ['main.c'], 'luaimport', basepath = 'tools', implicit_deps = [lua_lib], libs = ['lua', 'luajit'] + dependlibs, configs = configs) generator.bin('luacompile', ['main.c'], 'luacompile', basepath = 'tools', implicit_deps = [lua_lib], libs = ['lua', 'luajit'] + dependlibs, configs = configs) includepaths = generator.test_includepaths() test_cases = [ 'bind', 'foundation' ] if target.is_ios() or target.is_android(): #Build one fat binary with all test cases test_resources = [] test_extrasources = [] test_cases += ['all'] if target.is_ios(): test_resources = [s.path.join('all', 'ios', item) for item in ['test-all.plist', 'Images.xcassets', 'test-all.xib']] elif target.is_android(): test_resources = [os.path.join('all', 'android', item) for item in [ 'AndroidManifest.xml', os.path.join('layout', 'main.xml'), os.path.join('values', 'strings.xml'), os.path.join('drawable-ldpi', 'icon.png'), os.path.join('drawable-mdpi', 'icon.png'), os.path.join('drawable-hdpi', 'icon.png'),