Fix spacing around colons in luajit subproject files

This commit is contained in:
Ryan Lucia 2019-01-30 18:33:39 -05:00 committed by odrling
parent c1872422a5
commit 3d79206987
4 changed files with 30 additions and 30 deletions

View File

@ -8,4 +8,4 @@ luabins_src = files(
'write.c', 'write.c',
) )
libluabins = static_library('luabins', luabins_src, include_directories : luajit_inc) libluabins = static_library('luabins', luabins_src, include_directories: luajit_inc)

View File

@ -1,31 +1,31 @@
project('luajit', 'c', version : '2.0.4', license : 'MIT') project('luajit', 'c', version: '2.0.4', license: 'MIT')
cc = meson.get_compiler('c') cc = meson.get_compiler('c')
system_deps = [ system_deps = [
cc.find_library('dl', required : false), cc.find_library('dl', required: false),
cc.find_library('m', required : false) cc.find_library('m', required: false)
] ]
system_deps_native = [ system_deps_native = [
cc.find_library('dl', required : false, native : true), cc.find_library('dl', required: false, native: true),
cc.find_library('m', required : false, native : true) cc.find_library('m', required: false, native: true)
] ]
add_project_arguments('-DLUAJIT_ENABLE_LUA52COMPAT', language : 'c') add_project_arguments('-DLUAJIT_ENABLE_LUA52COMPAT', language: 'c')
if host_machine.system() == 'linux' if host_machine.system() == 'linux'
add_project_arguments('-DLUAJIT_USE_LINUX', language : 'c') add_project_arguments('-DLUAJIT_USE_LINUX', language: 'c')
readline_dep = cc.find_library('readline') readline_dep = cc.find_library('readline')
ljvm_mode = 'elfasm' ljvm_mode = 'elfasm'
ljvm_bout = 'lj_vm.s' ljvm_bout = 'lj_vm.s'
elif host_machine.system() == 'darwin' elif host_machine.system() == 'darwin'
add_project_arguments(['-DLUAJIT_USE_MACOSX'], language : 'c') add_project_arguments(['-DLUAJIT_USE_MACOSX'], language: 'c')
readline_dep = cc.find_library('readline') readline_dep = cc.find_library('readline')
ljvm_mode = 'machasm' ljvm_mode = 'machasm'
ljvm_bout = 'lj_vm.s' ljvm_bout = 'lj_vm.s'
elif host_machine.system() == 'windows' elif host_machine.system() == 'windows'
add_project_arguments('-DLUAJIT_USE_WINDOWS', '-DWIN', add_project_arguments('-DLUAJIT_USE_WINDOWS', '-DWIN',
'-malign-double', language : 'c') '-malign-double', language: 'c')
readline_dep = [] readline_dep = []
ljvm_mode = 'peobj' ljvm_mode = 'peobj'
ljvm_bout = 'lj_vm.o' ljvm_bout = 'lj_vm.o'
@ -38,5 +38,5 @@ incdir = include_directories('include')
subdir('src') subdir('src')
luajit_dep = declare_dependency(link_with : luajit_lib, luajit_dep = declare_dependency(link_with: luajit_lib,
include_directories : incdir) include_directories: incdir)

View File

@ -1,6 +1,6 @@
minilua = executable('minilua', 'minilua.c', minilua = executable('minilua', 'minilua.c',
dependencies : system_deps_native, dependencies: system_deps_native,
native : true) native: true)
if host_machine.cpu_family() == 'x86_64' if host_machine.cpu_family() == 'x86_64'
dynasm_arch = 'x86' dynasm_arch = 'x86'
@ -25,8 +25,8 @@ if host_machine.cpu_family() == 'x86'
checkdefs += ['__SSE2__', '1', ['-D', 'SSE']] checkdefs += ['__SSE2__', '1', ['-D', 'SSE']]
endif endif
foreach def : checkdefs foreach def: checkdefs
if cc.get_define(def[0], prefix : hpre) == def[1] if cc.get_define(def[0], prefix: hpre) == def[1]
dasm += def[2] dasm += def[2]
endif endif
endforeach endforeach
@ -40,11 +40,11 @@ buildvm_src = files(
) )
buildvm_arch = custom_target('buildvm_arch.h', buildvm_arch = custom_target('buildvm_arch.h',
command : dasm + ['-o', '@OUTPUT@', '@INPUT@'], command: dasm + ['-o', '@OUTPUT@', '@INPUT@'],
input : dynasm_dasc, input: dynasm_dasc,
output : 'buildvm_arch.h') output: 'buildvm_arch.h')
buildvm = executable('buildvm', buildvm_src, buildvm_arch, buildvm = executable('buildvm', buildvm_src, buildvm_arch,
dependencies : system_deps_native, dependencies: system_deps_native,
include_directories : src_inc, include_directories: src_inc,
native : true) native: true)

View File

@ -77,19 +77,19 @@ hdrgen = [
] ]
genheaders = [] genheaders = []
foreach h : hdrgen foreach h: hdrgen
genheaders += custom_target(h, genheaders += custom_target(h,
command : [buildvm, '-m', h, '-o', '@OUTPUT@', ljlib_src], command: [buildvm, '-m', h, '-o', '@OUTPUT@', ljlib_src],
output : 'lj_@0@.h'.format(h)) output: 'lj_@0@.h'.format(h))
endforeach endforeach
genheaders += custom_target('folddef', genheaders += custom_target('folddef',
command : [buildvm, '-m', 'folddef', '-o', '@OUTPUT@', files('lj_opt_fold.c')], command: [buildvm, '-m', 'folddef', '-o', '@OUTPUT@', files('lj_opt_fold.c')],
output : 'lj_folddef.h') output: 'lj_folddef.h')
ljvm = custom_target(ljvm_bout, ljvm = custom_target(ljvm_bout,
command : [buildvm, '-m', ljvm_mode, '-o', '@OUTPUT@'], command: [buildvm, '-m', ljvm_mode, '-o', '@OUTPUT@'],
output : ljvm_bout) output: ljvm_bout)
luajit_lib = static_library('luajit', ljlib_src, ljcore_src, genheaders, ljvm, luajit_lib = static_library('luajit', ljlib_src, ljcore_src, genheaders, ljvm,
dependencies : system_deps) dependencies: system_deps)