Skip to content

Commit

Permalink
Merge pull request #2221 from drdanz/lua_swig
Browse files Browse the repository at this point in the history
portmonitor: Update and autogenerate the lua-swig runtime
  • Loading branch information
drdanz authored Mar 4, 2020
2 parents 3ae0da7 + 9f18763 commit 467c6eb
Show file tree
Hide file tree
Showing 8 changed files with 2,717 additions and 1,680 deletions.
6 changes: 3 additions & 3 deletions COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,17 @@ The list of committers in the YARP repository (ordered by number of commit) is:
Jonas Ruesch
Lorenzo Rapetti
Michael Bucko
Prashanth Ramadoss
Massimo Regoli
Alessio Rocchi
Mirko Ferrati
Prashanth Ramadoss
Stefano Dafarra
Aiko Dinale
Andrea Ruzzenenti
Bertrand Higy
David-Estevez
Francesco Giovannini
Giulio Romualdi
Arren Glover
Bruno Nery
Davide Pollarolo
Expand All @@ -160,7 +161,6 @@ The list of committers in the YARP repository (ordered by number of commit) is:
Enrico Mingo
Francesca Stramandinoli
Giovanni Saponaro
Giulio Romualdi
GiulioRomualdi
Jason Chevrie
Marco Monforte
Expand All @@ -174,7 +174,7 @@ The list of committers in the YARP repository (ordered by number of commit) is:

The list of copyright holders for YARP is:
Copyright (C) 1995, 2000, 2003, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020
Istituto Italiano di Tecnologia (IIT) (2207 files)
Istituto Italiano di Tecnologia (IIT) (2262 files)
RobotCub Consortium (733 files)
Daniel Krieg <krieg@fias.uni-frankfurt.de> (16 files)
David Miller <miller@oxygen-icons.org> (13 files)
Expand Down
2 changes: 1 addition & 1 deletion scripts/admin/update-license
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ for f in `cd license_check; find . -type f -iname "*.cpp" \
-or -name "CMakeLists.txt" \
| grep -v "/extern" \
| grep -v "/qtquick2applicationviewer/" \
| grep -v "src/carriers/portmonitor_carrier/lua/lua_swig.h" \
| grep -v "/src_gen/" \
`; do
./scripts/admin/update-license-single $f
done
Expand Down
12 changes: 12 additions & 0 deletions src/carriers/portmonitor_carrier/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ if (NOT SKIP_portmonitor)
if(YARP_HAS_Lua)
target_sources(yarp_portmonitor PRIVATE lua/MonitorLua.cpp
lua/MonitorLua.h)
if(YARP_HAS_SWIG AND NOT CMAKE_CROSSCOMPILING)
include(${SWIG_USE_FILE})
add_custom_command(
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/lua/src_gen/swigluarun.h"
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/lua/src_gen/"
COMMAND "${SWIG_EXECUTABLE}" -c++ -lua -external-runtime "${CMAKE_CURRENT_BINARY_DIR}/lua/src_gen/swigluarun.h"
COMMENT "Generating swig-lua runtime")
target_include_directories(yarp_portmonitor PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/lua/src_gen")
target_sources(yarp_portmonitor PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/lua/src_gen/swigluarun.h")
else()
target_include_directories(yarp_portmonitor PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/lua/src_gen")
endif()
endif()

target_include_directories(yarp_portmonitor PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Expand Down
2 changes: 1 addition & 1 deletion src/carriers/portmonitor_carrier/lua/MonitorLua.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <string>
#include <yarp/os/PeriodicThread.h>
#include "MonitorBinding.h"
#include "lua_swig.h"
#include "swigluarun.h"
#include <mutex>

class MonitorTrigger;
Expand Down
Loading

0 comments on commit 467c6eb

Please sign in to comment.