wplua: move under modules/module-lua-scripting

It's unlikely that wplua will ever be useful outside the context
of module-lua-scripting, so let's move it to keep all the code in one place
This commit is contained in:
George Kiagiadakis
2022-02-21 10:30:56 +02:00
parent 2f186c10e7
commit 17a257ddbe
24 changed files with 18 additions and 15 deletions

View File

@@ -43,7 +43,7 @@ In this environment, the following rules apply:
Here is a full list of Lua functions (and API tables) that are exposed:
.. literalinclude:: ../../../lib/wplua/sandbox.lua
.. literalinclude:: ../../../modules/module-lua-scripting/wplua/sandbox.lua
:language: lua
:lines: 40-55

View File

@@ -1,2 +1 @@
subdir('wp')
subdir('wplua')

View File

@@ -122,20 +122,15 @@ shared_library(
dependencies : [wp_dep, pipewire_dep],
)
m_lua_scripting_resources = gnome.compile_resources(
'm-lua-scripting-resources',
'module-lua-scripting/gresource.xml',
source_dir: 'module-lua-scripting',
c_name: '_m_lua_scripting_resources')
subdir('module-lua-scripting')
shared_library(
'wireplumber-module-lua-scripting',
[
'module-lua-scripting.c',
'module-lua-scripting/pod.c',
'module-lua-scripting/json.c',
'module-lua-scripting/api.c',
'module-lua-scripting/config.c',
'module-lua-scripting/module.c',
'module-lua-scripting/api/pod.c',
'module-lua-scripting/api/json.c',
'module-lua-scripting/api/api.c',
'module-lua-scripting/api/config.c',
m_lua_scripting_resources,
],
c_args : [common_c_args, '-DG_LOG_DOMAIN="m-lua-scripting"'],

View File

@@ -0,0 +1,5 @@
m_lua_scripting_resources = gnome.compile_resources(
'm-lua-scripting-resources',
'gresource.xml',
source_dir: meson.current_source_dir(),
c_name: '_m_lua_scripting_resources')

View File

@@ -0,0 +1,4 @@
wplua_include_dir = include_directories('.')
subdir('wplua')
subdir('api')

View File

@@ -22,12 +22,12 @@ wplua_lib = static_library('wplua-' + wireplumber_api_version,
'-DG_LOG_DOMAIN="wplua"',
],
install: false,
include_directories: wp_lib_include_dir,
include_directories: wplua_include_dir,
dependencies : [wp_dep, lua_dep],
)
wplua_dep = declare_dependency(
link_with: wplua_lib,
include_directories: wp_lib_include_dir,
include_directories: wplua_include_dir,
dependencies: [wp_dep, lua_dep],
)