Skip to content

Commit

Permalink
Merge pull request #179 from WebPlatformForEmbedded/development/METRO…
Browse files Browse the repository at this point in the history
…L-557

Modified DeviceInfo, DisplayInfo, OpenCDMi, WebKitBrowser plugins to …
  • Loading branch information
bramoosterhuis authored Oct 14, 2022
2 parents 57a88e7 + fba6b62 commit c2221ba
Show file tree
Hide file tree
Showing 4 changed files with 177 additions and 0 deletions.
14 changes: 14 additions & 0 deletions DeviceInfo/DeviceInfo.conf.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
autostart = "@PLUGIN_DEVICEINFO_AUTOSTART@"

configuration = JSON()
configuration.add("modelName", "@PLUGIN_DEVICEINFO_MODELNAME@")
configuration.add("modelYear", "@PLUGIN_DEVICEINFO_MODELYEAR@")
configuration.add("systemIntegratorName", "@PLUGIN_DEVICEINFO_SYSTEMINTEGRATORNAME@")
configuration.add("friendlyName", "@PLUGIN_DEVICEINFO_FRIENDLYNAME@")
configuration.add("platformName", "@PLUGIN_DEVICEINFO_PLATFORMNAME@")

root = JSON()
root.add("mode", "Off")

configuration.add("root", root)

21 changes: 21 additions & 0 deletions DisplayInfo/DisplayInfo.conf.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
autostart = "@PLUGIN_DISPLAYINFO_AUTOSTART@"

configuration = JSON()

if boolean("@PLUGIN_DISPLAYINFO_USE_BEST_MODE@"):
configuration.add("useBestMode", "@PLUGIN_DISPLAYINFO_USE_BEST_MODE@")

configuration.add("drmDeviceName", "@PLUGIN_DISPLAYINFO_DRM_DEVICE_NAME@")
configuration.add("drmSubsystemPath", "@PLUGIN_DISPLAYINFO_EDID_FILEPATH@")
configuration.add("hdcpLevelFilepath", "@PLUGIN_DISPLAYINFO_HDCP_LEVEL_FILEPATH@")
configuration.add("hdrLevelFilepath", "@PLUGIN_DISPLAYINFO_HDR_LEVEL_FILEPATH@")
configuration.add("gpuMemoryFile", "@PLUGIN_DISPLAYINFO_GPU_MEMORY_FILE@")
configuration.add("gpuMemoryFreePattern", "@PLUGIN_DISPLAYINFO_GPU_MEMORY_FREE_PATTERN@")
configuration.add("gpuMemoryTotalPattern", "@PLUGIN_DISPLAYINFO_GPU_MEMORY_TOTAL_PATTERN@")
configuration.add("gpuMemoryUnitMultiplier", "@PLUGIN_DISPLAYINFO_GPU_MEMORY_UNIT_MULTIPLIER@")
configuration.add("hdcplevel", "@PLUGIN_DISPLAYINFO_HDCP_LEVEL@")

root = JSON()
root.add("mode", "@PLUGIN_DISPLAYINFO_MODE@")
configuration.add("root", root)

74 changes: 74 additions & 0 deletions OpenCDMi/OCDM.conf.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
autostart = "@PLUGIN_OPENCDMI_AUTOSTART@"

if boolean("@PLUGIN_OPENCDMI_PLAYREADY_NEXUS@") or \
boolean("@PLUGIN_OPENCDMI_PLAYREADY_NEXUS_SVP@") or \
boolean("@PLUGIN_OPENCDMI_NAGRA@") :
precondition.append("WebSource")

configuration = JSON()

systems = []

if boolean("@PLUGIN_OPENCDMI_CLEARKEY@"):
keysystem = JSON()
keysystem.add("name", "ClearKey")
keysystem.add("designators", [ "org.chromium.externalclearkey", "org.w3.clearkey" ])
systems.append(keysystem)


if boolean("@PLUGIN_OPENCDMI_PLAYREADY@") or \
boolean("@PLUGIN_OPENCDMI_PLAYREADY_NEXUS@") or \
boolean("@PLUGIN_OPENCDMI_PLAYREADY_NEXUS_SVP@") or \
boolean("@PLUGIN_OPENCDMI_PLAYREADY_VGDRM@") :
keysystem = JSON()
keysystem.add("name", "PlayReady")
keysystem.add("designators", ["com.youtube.playready", "com.microsoft.playready", "com.netflix.playready"])
conf = JSON()
conf.add("metering", "@PLUGIN_OPENCDMI_PLAYREADY_METERING_CERTIFICATE@")
conf.add("read-dir", "@PLUGIN_OCDM_PLAYREADY_READ_DIR@")
conf.add("store-location", "@PLUGIN_OCDM_PLAYREADY_STORE_LOCATION@")
conf.add("certificatelabel", "@PLUGIN_OPENCDMI_PLAYREADY_CERTIFICATE_LABEL@")
keysystem.add("configuration", conf)
systems.append(keysystem)


if boolean("@PLUGIN_OPENCDMI_WIDEVINE@") or boolean("@OPENCDMI_WIDEVINE_NEXUS_SVP@"):
keysystem = JSON()
keysystem.add("name", "WideVine")
keysystem.add("designators", [ "com.widevine.alpha" ])
conf = JSON()
conf.add("certificate", "@PLUGIN_OPENCDMI_WIDEVINE_DEVICE_CERTIFICATE@")
conf.add("keybox", "@PLUGIN_OPENCDMI_WIDEVINE_KEYBOX@")
conf.add("storagelocation", "@PLUGIN_OPENCDMI_WIDEVINE_STORAGE_LOCATION@")
keysystem.add("configuration", conf)
systems.append(keysystem)

if boolean("@PLUGIN_OPENCDMI_NAGRA@"):
keysystem = JSON()
keysystem.add("name", "NagraSystem")
keysystem.add("designators", [ "com.nagra.system" ])
conf = JSON()
conf.add("operatorvault", "/tmp/ov.json")
conf.add("licensepath", "/tmp/licenses")
keysystem.add("configuration", conf)
systems.append(keysystem)

keysystem = JSON()
keysystem.add("name", "NagraConnect")
keysystem.add("designators", [ "com.nagra.connect" ])
systems.append(keysystem)

if boolean("@PLUGIN_OPENCDMI_NCAS@"):
keysystem = JSON()
keysystem.add("name", "Ncas")
keysystem.add("designators", [ "com.ncas.alpha" ])
systems.append(keysystem)

configuration.add("systems", systems)

root = JSON()
root.add("mode", "@PLUGIN_OPENCDMI_MODE@")
root.add("user", "@PLUGIN_OPENCDMI_USER@")
root.add("group", "@PLUGIN_OPENCDMI_GROUP@")
configuration.add("root", root)

68 changes: 68 additions & 0 deletions WebKitBrowser/WebKitBrowser.conf.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
if boolean("@PLUGIN_WEBSERVER@"):
precondition.append("WebSource")

autostart = "@PLUGIN_WEBKITBROWSER_AUTOSTART@"
resumed = "@PLUGIN_WEBKITBROWSER_RESUMED@"

persistentpathpostfix = "@PLUGIN_WEBKITBROWSER_PERSISTENTPATHPOSTFIX@"

configuration = JSON()

configuration.add("url", "@PLUGIN_WEBKITBROWSER_STARTURL@")
configuration.add("useragent", "@PLUGIN_WEBKITBROWSER_USERAGENT@")

if not boolean("@WEBKIT_GLIB_API@"):
configuration.add("injectedbundle", "libWPEInjectedBundle@CMAKE_SHARED_LIBRARY_SUFFIX@")
else:
configuration.add("extensiondir", "@PLUGIN_WEBKITBROWSER_EXTENSION_DIRECTORY@")

configuration.add("transparent", "@PLUGIN_WEBKITBROWSER_TRANSPARENT@")
configuration.add("compositor", "noaa")
configuration.add("inspector", "@PLUGIN_WEBKITBROWSER_WEBINSPECTOR_ADDRESS@")
configuration.add("fps", "true")
configuration.add("cursor", "false")
configuration.add("touch", "false")
configuration.add("msebuffers", "@PLUGIN_WEBKITBROWSER_MSEBUFFERS@")
configuration.add("thunderdecryptorpreference", "@PLUGIN_WEBKITBROWSER_THUNDER_DECRYPTOR_PREFERENCE@")
configuration.add("memoryprofile", "@PLUGIN_WEBKITBROWSER_MEMORYPROFILE@")
configuration.add("memorypressure", "@PLUGIN_WEBKITBROWSER_MEMORYPRESSURE@")
configuration.add("mediacontenttypesrequiringhardwaresupport",
"@PLUGIN_WEBKITBROWSER_MEDIA_CONTENT_TYPES_REQUIRING_HARDWARE_SUPPORT@")
configuration.add("mediadiskcache", "@PLUGIN_WEBKITBROWSER_MEDIADISKCACHE@")
configuration.add("diskcachedir", "@PLUGIN_WEBKITBROWSER_DISKCACHEDIR@")
configuration.add("diskcache", "@PLUGIN_WEBKITBROWSER_DISKCACHE@")
configuration.add("xhrcache", "@PLUGIN_WEBKITBROWSER_XHRCACHE@")
configuration.add("webgl", "@PLUGIN_WEBKITBROWSER_WEBGL@")
configuration.add("threadedpainting", "@PLUGIN_WEBKITBROWSER_THREADEDPAINTING@")
configuration.add("height", "@PLUGIN_WEBKITBROWSER_HEIGHT@")
configuration.add("width", "@PLUGIN_WEBKITBROWSER_WIDTH@")
configuration.add("injectedbundle", "@PLUGIN_WEBKITBROWSER_INJECTEBLE_BUNDLE@")
configuration.add("clientidentifier", "@PLUGIN_WEBKITBROWSER_CLIENTIDENTIFIER@")
configuration.add("localstorageenabled", "@PLUGIN_WEBKITBROWSER_LOCALSTORAGE_ENABLE@")
configuration.add("localstorage", "@PLUGIN_WEBKITBROWSER_LOCALSTORAGE@")
configuration.add("cookiestorage", "@PLUGIN_WEBKITBROWSER_COOKIESTORAGE@")

if boolean("@PLUGIN_WEBKITBROWSER_WINDOWCLOSE@"):
configuration.add("windowclose", "@PLUGIN_WEBKITBROWSER_WINDOWCLOSE@")

configuration.add("execpath", "@PLUGIN_WEBKITBROWSER_ALTERNATIVE_EXEC_PATH@")
configuration.add("proxy", "@PLUGIN_WEBKITBROWSER_HTTP_PROXY@")
configuration.add("proxyexclusion", "@PLUGIN_WEBKITBROWSER_HTTP_PROXY_EXCLUSION@")
configuration.add("clientcert", "@PLUGIN_WEBKITBROWSER_CLIENT_CERT@")
configuration.add("clientcertkey", "@PLUGIN_WEBKITBROWSER_CLIENT_CERT_KEY@")
configuration.add("logtosystemconsoleenabled", "@PLUGIN_WEBKITBROWSER_LOGTOSYSTEMCONSOLE@")
configuration.add("secure", "@PLUGIN_WEBKITBROWSER_SECURE@")
configuration.add("watchdogchecktimeoutinseconds", 10)
configuration.add("watchdoghangthresholdtinseconds", 60)

root = JSON()
root.add("mode", "@PLUGIN_WEBKITBROWSER_MODE@")
root.add("locator", "lib@[email protected]")
root.add("user", "@PLUGIN_WEBKITBROWSER_USER@")
root.add("group", "@PLUGIN_WEBKITBROWSER_GROUP@")
configuration.add("root", root)

javascript = JSON()
javascript.add("useJIT", boolean("@PLUGIN_WEBKITBROWSER_ENABLE_JIT@"))
javascript.add("useDFG", boolean("@PLUGIN_WEBKITBROWSER_ENABLE_DFG@"))
configuration.add("javascript", javascript)

0 comments on commit c2221ba

Please sign in to comment.