Cleaning up the wren dependency
This commit is contained in:
parent
40c362f6da
commit
ebca413c0a
8 changed files with 42 additions and 37 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
tags
|
tags
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
|
subprojects/wren/
|
||||||
|
|
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +0,0 @@
|
||||||
[submodule "subprojects/wren/wren"]
|
|
||||||
path = subprojects/wren/wren
|
|
||||||
url = https://github.com/wren-lang/wren.git
|
|
|
@ -17,27 +17,27 @@ else
|
||||||
c_opts += '-DWREN_OPT_META=0'
|
c_opts += '-DWREN_OPT_META=0'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
wren_incl = include_directories('wren/src/include', is_system: true)
|
wren_incl = include_directories('src/include', is_system: true)
|
||||||
wren_pvt_incl = include_directories('wren/src/vm', 'wren/src/optional')
|
wren_pvt_incl = include_directories('src/vm', 'src/optional')
|
||||||
test_incl = include_directories('wren/test')
|
test_incl = include_directories('test')
|
||||||
|
|
||||||
threads_dep = dependency('threads')
|
threads_dep = dependency('threads')
|
||||||
libuv_dep = c_compiler.find_library('libuv', required: true)
|
libuv_dep = c_compiler.find_library('libuv', required: true)
|
||||||
m_dep = c_compiler.find_library('m', required: true)
|
m_dep = c_compiler.find_library('m', required: true)
|
||||||
|
|
||||||
opt_src = [
|
opt_src = [
|
||||||
'wren/src/optional/wren_opt_random.c',
|
'src/optional/wren_opt_random.c',
|
||||||
'wren/src/optional/wren_opt_meta.c',
|
'src/optional/wren_opt_meta.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
vm_src = [
|
vm_src = [
|
||||||
'wren/src/vm/wren_compiler.c',
|
'src/vm/wren_compiler.c',
|
||||||
'wren/src/vm/wren_core.c',
|
'src/vm/wren_core.c',
|
||||||
'wren/src/vm/wren_debug.c',
|
'src/vm/wren_debug.c',
|
||||||
'wren/src/vm/wren_primitive.c',
|
'src/vm/wren_primitive.c',
|
||||||
'wren/src/vm/wren_utils.c',
|
'src/vm/wren_utils.c',
|
||||||
'wren/src/vm/wren_value.c',
|
'src/vm/wren_value.c',
|
||||||
'wren/src/vm/wren_vm.c',
|
'src/vm/wren_vm.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
force_static = meson.is_subproject()
|
force_static = meson.is_subproject()
|
||||||
|
@ -69,24 +69,24 @@ if get_option('build_testing')
|
||||||
fs = import('fs')
|
fs = import('fs')
|
||||||
|
|
||||||
test_src = [
|
test_src = [
|
||||||
'wren/test/api/api_tests.c',
|
'test/api/api_tests.c',
|
||||||
'wren/test/api/benchmark.c',
|
'test/api/benchmark.c',
|
||||||
'wren/test/api/call.c',
|
'test/api/call.c',
|
||||||
'wren/test/api/call_calls_foreign.c',
|
'test/api/call_calls_foreign.c',
|
||||||
'wren/test/api/call_wren_call_root.c',
|
'test/api/call_wren_call_root.c',
|
||||||
'wren/test/api/error.c',
|
'test/api/error.c',
|
||||||
'wren/test/api/foreign_class.c',
|
'test/api/foreign_class.c',
|
||||||
'wren/test/api/get_variable.c',
|
'test/api/get_variable.c',
|
||||||
'wren/test/api/handle.c',
|
'test/api/handle.c',
|
||||||
'wren/test/api/lists.c',
|
'test/api/lists.c',
|
||||||
'wren/test/api/new_vm.c',
|
'test/api/new_vm.c',
|
||||||
'wren/test/api/reset_stack_after_call_abort.c',
|
'test/api/reset_stack_after_call_abort.c',
|
||||||
'wren/test/api/reset_stack_after_foreign_construct.c',
|
'test/api/reset_stack_after_foreign_construct.c',
|
||||||
'wren/test/api/resolution.c',
|
'test/api/resolution.c',
|
||||||
'wren/test/api/slots.c',
|
'test/api/slots.c',
|
||||||
'wren/test/api/user_data.c',
|
'test/api/user_data.c',
|
||||||
'wren/test/main.c',
|
'test/main.c',
|
||||||
'wren/test/test.c',
|
'test/test.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
test_script_paths = [
|
test_script_paths = [
|
||||||
|
@ -103,7 +103,7 @@ if get_option('build_testing')
|
||||||
|
|
||||||
test_scripts = run_command(
|
test_scripts = run_command(
|
||||||
files('find_scripts.py'),
|
files('find_scripts.py'),
|
||||||
meson.current_source_dir() / 'wren/test',
|
meson.current_source_dir() / 'test',
|
||||||
test_script_paths,
|
test_script_paths,
|
||||||
).stdout().strip().split('\n')
|
).stdout().strip().split('\n')
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ endif
|
||||||
|
|
||||||
if not force_static
|
if not force_static
|
||||||
install_headers(
|
install_headers(
|
||||||
'wren/src/include/wren.h',
|
'src/include/wren.h',
|
||||||
'wren/src/include/wren.hpp',
|
'src/include/wren.hpp',
|
||||||
)
|
)
|
||||||
endif
|
endif
|
8
subprojects/wren.wrap
Normal file
8
subprojects/wren.wrap
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[wrap-git]
|
||||||
|
url = https://github.com/wren-lang/wren.git
|
||||||
|
revision = 4a18fc489f9ea3d253b20dd40f4cdad0d6bb40eb
|
||||||
|
patch_directory = wren
|
||||||
|
|
||||||
|
[provide]
|
||||||
|
dependency_names = wren-0.4.0
|
||||||
|
wren = wren_dep
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 4a18fc489f9ea3d253b20dd40f4cdad0d6bb40eb
|
|
Loading…
Reference in a new issue