Skip to content

Commit

Permalink
Merge pull request #47 from rdkcentral/development/lua-iface-list-update
Browse files Browse the repository at this point in the history
[LuaGen] Update interface list to scan
  • Loading branch information
pwielders authored Oct 18, 2023
2 parents d96d8a6 + 1636477 commit a862a06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
8 changes: 3 additions & 5 deletions LuaGenerator/GenerateLua.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
@rem Generates interface data in lua
@rem
@rem Typical usage:
@rem GenerateLua.bat [<Thunder_dir> <ThunderInterfaces_dir> <ThunderClientLibraries_dir>]
@rem GenerateLua.bat [<Thunder_dir> <ThunderInterfaces_dir>]
@rem GenerateLua.bat
@rem GenerateLua.bat ..\..\Thunder ..\..\ThunderInterfaces ..\..\ThunderClientLibraries
@rem GenerateLua.bat ..\..\Thunder ..\..\ThunderInterfaces
@rem

@echo off
Expand All @@ -33,12 +33,10 @@ if not exist ..\ProxyStubGenerator\StubGenerator.py (

set THUNDER_DIR=..\..\Thunder
set INTERFACES_DIR=..\..\ThunderInterfaces
set CLIENTLIBRARIES_DIR=..\..\ThunderClientLibraries

set files=%THUNDER_DIR%\Source\com\ICOM.h
set files=%files% %THUNDER_DIR%\Source\plugins\IController.h %THUNDER_DIR%\Source\plugins\IPlugin.h %THUNDER_DIR%\Source\plugins\IShell.h %THUNDER_DIR%\Source\plugins\IStateControl.h %THUNDER_DIR%\Source\plugins\ISubSystem.h
set files=%files% %THUNDER_DIR%\Source\plugins\IController.h %THUNDER_DIR%\Source\plugins\IPlugin.h %THUNDER_DIR%\Source\plugins\IShell.h %THUNDER_DIR%\Source\plugins\IStateControl.h %THUNDER_DIR%\Source\plugins\ISubSystem.h %THUNDER_DIR%\Source\plugins\IDispatcher.h
set files=%files% %INTERFACES_DIR%\interfaces\I*.h
set files=%files% %CLIENTLIBRARIES_DIR%\Source\cryptography\I*.h
rem add more interface files if needed..

echo Generating lua data file...
Expand Down
10 changes: 4 additions & 6 deletions LuaGenerator/GenerateLua.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,20 @@
# Generates interface data in lua
#
# Typical usage:
# ./GenerateLua.sh [<Thunder_dir> <ThunderInterfaces_dir> <ThunderClientLibraries_dir>]
# ./GenerateLua.sh [<Thunder_dir> <ThunderInterfaces_dir>]
# ./GenerateLua.sh
# ./GenerateLua.sh ../../Thunder ../../ThunderInterfaces ../../ThunderClientLibraries
# ./GenerateLua.sh ~/work/Thunder ~/work/ThunderInterfaces ~/work/ThunderClientLibraries
# ./GenerateLua.sh ../../Thunder ../../ThunderInterfaces
# ./GenerateLua.sh ~/work/Thunder ~/work/ThunderInterfaces
#

command -v ../ProxyStubGenerator/StubGenerator.py >/dev/null 2>&1 || { echo >&2 "StubGenerator.py is not available. Aborting."; exit 1; }

THUNDER_DIR="${1:-../../Thunder}"
INTERFACES_DIR="${2:-../../ThunderInterfaces}"
CLIENTLIBRARIES_DIR="${3:-../../ThunderClientLibraries}"

files="$THUNDER_DIR/Source/com/ICOM.h"
files="$files $THUNDER_DIR/Source/plugins/IController.h $THUNDER_DIR/Source/plugins/IPlugin.h $THUNDER_DIR/Source/plugins/IShell.h $THUNDER_DIR/Source/plugins/IStateControl.h $THUNDER_DIR/Source/plugins/ISubSystem.h"
files="$files $THUNDER_DIR/Source/plugins/IController.h $THUNDER_DIR/Source/plugins/IPlugin.h $THUNDER_DIR/Source/plugins/IShell.h $THUNDER_DIR/Source/plugins/IStateControl.h $THUNDER_DIR/Source/plugins/ISubSystem.h $THUNDER_DIR/Source/plugins/IDispatcher.h"
files="$files $INTERFACES_DIR/interfaces/I*.h"
files="$files $CLIENTLIBRARIES_DIR/Source/cryptography/I*.h"
# add more interface files if needed..

echo "Generating lua data file..."
Expand Down

0 comments on commit a862a06

Please sign in to comment.