1
0
Fork 0
flightgear/src/Scripting/CMakeLists.txt

49 lines
877 B
Text
Raw Normal View History

include(FlightGearComponent)
set(SOURCES
2013-10-15 01:02:05 +02:00
NasalSys.cxx
nasal-props.cxx
Improved infrastructure for add-ons: C++ classes, metadata file, Nasal interface This commit adds C++ classes for add-on management, most notably AddonManager, Addon and AddonVersion. The AddonManager is used to register add-ons. It relies on an std::map<std::string, AddonRef> to hold the metadata of each registered add-on (keys of the std::map are add-on identifiers, and AddonRef is currently SGSharedPtr<Addon>). Accessor methods are available for: - retrieving the list of registered or loaded add-ons (terminology explained in $FG_ROOT/Docs/README.add-ons); - checking if a particular add-on has already been registered or loaded; - for each add-on, obtaining an Addon instance which can be queried for its name, id, version, base path, the minimum and maximum FlightGear versions it requires, its base node in the Property Tree, its order in the load sequence, short and long description strings, home page, etc. The most important metadata is made accessible in the Property Tree under /addons/by-id/<addon-id> and the property /addons/by-id/<addon-id>/loaded can be checked or listened to, in order to determine when a particular add-on is loaded. There is also a Nasal interface to access add-on metadata in a convenient way. In order to provide this metadata, each add-on must from now on have in its base directory a file called 'addon-metadata.xml'. All this is documented in much more detail in $FG_ROOT/Docs/README.add-ons. Mailing-list discussion: https://sourceforge.net/p/flightgear/mailman/message/36146017/
2017-11-06 13:58:14 +01:00
NasalAddons.cxx
NasalAircraft.cxx
2013-10-15 01:02:05 +02:00
NasalPositioned.cxx
NasalPositioned_cppbind.cxx
NasalCanvas.cxx
NasalClipboard.cxx
NasalCondition.cxx
NasalHTTP.cxx
NasalString.cxx
NasalModelData.cxx
2013-12-17 19:07:08 +01:00
NasalSGPath.cxx
2013-10-15 01:02:05 +02:00
)
2011-06-26 07:55:36 +01:00
set(HEADERS
2013-10-15 01:02:05 +02:00
NasalSys.hxx
NasalSys_private.hxx
Improved infrastructure for add-ons: C++ classes, metadata file, Nasal interface This commit adds C++ classes for add-on management, most notably AddonManager, Addon and AddonVersion. The AddonManager is used to register add-ons. It relies on an std::map<std::string, AddonRef> to hold the metadata of each registered add-on (keys of the std::map are add-on identifiers, and AddonRef is currently SGSharedPtr<Addon>). Accessor methods are available for: - retrieving the list of registered or loaded add-ons (terminology explained in $FG_ROOT/Docs/README.add-ons); - checking if a particular add-on has already been registered or loaded; - for each add-on, obtaining an Addon instance which can be queried for its name, id, version, base path, the minimum and maximum FlightGear versions it requires, its base node in the Property Tree, its order in the load sequence, short and long description strings, home page, etc. The most important metadata is made accessible in the Property Tree under /addons/by-id/<addon-id> and the property /addons/by-id/<addon-id>/loaded can be checked or listened to, in order to determine when a particular add-on is loaded. There is also a Nasal interface to access add-on metadata in a convenient way. In order to provide this metadata, each add-on must from now on have in its base directory a file called 'addon-metadata.xml'. All this is documented in much more detail in $FG_ROOT/Docs/README.add-ons. Mailing-list discussion: https://sourceforge.net/p/flightgear/mailman/message/36146017/
2017-11-06 13:58:14 +01:00
NasalAddons.hxx
NasalAircraft.hxx
2013-10-15 01:02:05 +02:00
NasalPositioned.hxx
NasalCanvas.hxx
NasalClipboard.hxx
NasalCondition.hxx
NasalHTTP.hxx
NasalString.hxx
NasalModelData.hxx
2013-12-17 19:07:08 +01:00
NasalSGPath.hxx
2013-10-15 01:02:05 +02:00
)
2011-06-26 07:55:36 +01:00
if(WIN32)
list(APPEND SOURCES ClipboardWindows.cxx)
elseif(APPLE)
list(APPEND SOURCES ClipboardCocoa.mm)
else()
find_package(X11)
if(X11_FOUND)
list(APPEND SOURCES ClipboardX11.cxx)
else()
list(APPEND SOURCES ClipboardFallback.cxx)
endif()
endif()
2011-06-26 07:55:36 +01:00
flightgear_component(Scripting "${SOURCES}" "${HEADERS}")