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:
@@ -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
|
||||
|
||||
|
@@ -1,2 +1 @@
|
||||
subdir('wp')
|
||||
subdir('wplua')
|
||||
|
@@ -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"'],
|
||||
|
5
modules/module-lua-scripting/api/meson.build
Normal file
5
modules/module-lua-scripting/api/meson.build
Normal 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')
|
4
modules/module-lua-scripting/meson.build
Normal file
4
modules/module-lua-scripting/meson.build
Normal file
@@ -0,0 +1,4 @@
|
||||
wplua_include_dir = include_directories('.')
|
||||
|
||||
subdir('wplua')
|
||||
subdir('api')
|
@@ -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],
|
||||
)
|
Reference in New Issue
Block a user