Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
85f9a4c
Development/ocdm enhancements (#145)
pwielders Aug 29, 2022
fb28036
Merge branch 'master' into R4
Divya-563 Aug 29, 2022
25d3307
Merge branch 'master' into R4
Divya-563 Sep 5, 2022
28cd880
Merge branch 'master' into R4
Divya-563 Oct 18, 2022
4778fb6
Merge branch 'master' into R4
Divya-563 Oct 25, 2022
6522afb
Merge branch 'master' into R4
Divya-563 Nov 15, 2022
a98c4a0
Merge branch 'master' into R4
Divya-563 Dec 5, 2022
df2aa95
localtracer: Fixes for Messaging refactors (#176)
bramoosterhuis Dec 7, 2022
29e141c
Cryptography:test app made it compilable again (#175)
HaseenaSainul Dec 9, 2022
1d1d8ed
fix height typo's
bramoosterhuis Dec 15, 2022
f57047b
Merge pull request #178 from rdkcentral/fix/fix-small-typo's
MFransen69 Dec 15, 2022
040e68a
LocalTracer: Fix line echo.
bramoosterhuis Dec 19, 2022
165452b
DeviceInfo/DisplayInfo stress tests (#181)
sebaszm Dec 21, 2022
96939a1
[DevInfo] fix build
MFransen69 Dec 23, 2022
d064426
Merge pull request #182 from rdkcentral/development/fixdevinfo
bramoosterhuis Dec 23, 2022
c846aee
Update C header files with generic ifndef-define structure instead pr…
HaseenaSainul Dec 28, 2022
4a300a6
Modified to check mime type in protection metadata to detect encrypti…
Jan 3, 2023
36c1855
Modified to fetch secbuf OCDM adapater from external repository. (#184)
Jan 10, 2023
0968952
[WINDOWS] Get it compiling under windows again..
pwielders Jan 10, 2023
de62484
Creating GitHub Actions to build ThunderClientLibraries (#188)
VeithMetro Feb 10, 2023
c9e2142
Fixing OCDM project file (#189)
VeithMetro Feb 15, 2023
9fc2043
Modified gstreamer ocdm adapter for MediaProperties related fix. (#192)
Feb 23, 2023
b80f208
[METRICS] Add a new metrics punch through on the OCDM framework. (#196)
pwielders Mar 14, 2023
c68c9f5
[WINDOWS] Fixes for windows (#195)
pwielders Mar 8, 2023
beaf406
[METRICS] Add a new metrics punch through on the OCDM framework. (#196)
pwielders Mar 14, 2023
50a8509
Merge branch 'master' into R4
Divya-563 Mar 15, 2023
712a130
Merge branch 'master' into R4
Divya-563 Apr 4, 2023
5a9dad1
Merge branch 'master' into R4
Divya-563 Apr 17, 2023
35f6af2
Fixing libdrm target name in compositorclient/RPI/CMakeLists.txt (#205)
dcarr45 May 2, 2023
ff80452
[WARNINGFREE] Suppress the ABI changes. We always build full stack. (…
pwielders Apr 19, 2023
4bb3224
Merge branch 'master' into R4
Divya-563 May 23, 2023
97052d8
[DRM] Renaming of the library for CMake (cherry pick did not work on …
pwielders May 24, 2023
2813b8f
fixing naming convention find cmakes (#207)
bramoosterhuis May 25, 2023
c88346f
localtracer: Align with latest messaging changes (#208)
bramoosterhuis May 25, 2023
adffa5c
compositorclient:RPI: Remove Announcements calls, since it is removed…
HaseenaSainul Jun 23, 2023
35903e0
Merge branch 'master' into R4
Divya-563 Jun 26, 2023
4b57015
Revert the uint32_t -> uint16_t on IHash and ICryptography (#211)
HaseenaSainul Jul 5, 2023
2b3c14e
cryptography: move ICryptography.h & INetflixSecurity.h to interfaces…
HaseenaSainul Aug 4, 2023
ba00103
update INetflixSecurity namespace based on interface change (#218)
HaseenaSainul Aug 8, 2023
0deedc7
Development/small cmake fixes (#203)
bramoosterhuis Apr 13, 2023
699f6c5
[DEPENDENCIES]Provision proxy was missing Messaging library dependenc…
HaseenaSainul Sep 15, 2023
474894b
[ocdm] Dispose improvements (#232)
MFransen69 Dec 13, 2023
c832de8
Merge pull request #233 from rdkcentral/development/ocdmtest
MFransen69 Dec 13, 2023
2594a8e
Fixing the conflict of cherry pick
volkan-aslan Dec 13, 2023
7e58718
Merge pull request #235 from rdkcentral/development/ocdmtest
volkan-aslan Dec 20, 2023
3600cce
Development/reference counting (#242)
pwielders Feb 5, 2024
087ae89
cryptography: force deprecation declarations to be a warning again (#…
bramoosterhuis Feb 2, 2024
09a75a8
Merge branch 'R4_4' of github.com:rdkcentral/ThunderClientLibraries i…
MFransen69 Feb 23, 2024
985156c
RDK-53574 OCDM client l1test framework
Nov 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions .github/workflows/Build ThunderClientLibraries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: CMake ThunderClientLibraries

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
ThunderInterfaces:
uses: rdkcentral/ThunderInterfaces/.github/workflows/Build ThunderInterfaces.yml@master

Interfaces:
needs: ThunderInterfaces

runs-on: ubuntu-latest

strategy:
matrix:
build_type: [Debug, Release, MinSizeRel]

name: Build type - ${{matrix.build_type}}
steps:
- name: Install necessary packages
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 10
command: |
sudo gem install apt-spy2
sudo apt-spy2 fix --commit --launchpad --country=US
sudo apt-get update
sudo apt install python3-pip
pip install jsonref
sudo apt install build-essential cmake ninja-build libusb-1.0-0-dev zlib1g-dev libssl-dev

- name: Checkout Thunder
uses: actions/checkout@v3
with:
path: Thunder
repository: ${{github.repository_owner}}/Thunder

- name: Checkout ThunderInterfaces
uses: actions/checkout@v3
with:
path: ThunderInterfaces
repository: ${{github.repository_owner}}/ThunderInterfaces

- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: ThunderInterfaces-${{matrix.build_type}}-artifact
path: ${{matrix.build_type}}

- name: Unpack files
run: |
tar -xvzf ${{matrix.build_type}}/${{matrix.build_type}}.tar.gz
rm ${{matrix.build_type}}/${{matrix.build_type}}.tar.gz

- name: Checkout ThunderClientLibraries
uses: actions/checkout@v3
with:
path: ThunderClientLibraries
repository: ${{github.repository_owner}}/ThunderClientLibraries

- name: Build ThunderClientLibraries
run: |
cmake -G Ninja -S ThunderClientLibraries -B ${{matrix.build_type}}/build/ThunderClientLibraries \
-DCMAKE_INSTALL_PREFIX="${{matrix.build_type}}/install/usr" \
-DCMAKE_MODULE_PATH="${PWD}/${{matrix.build_type}}/install/usr/include/WPEFramework/Modules" \
-DBLUETOOTHAUDIOSINK=ON \
-DDEVICEINFO=ON \
-DDISPLAYINFO=ON \
-DLOCALTRACER=ON \
-DSECURITYAGENT=ON \
-DPLAYERINFO=ON \
-DPROTOCOLS=ON \
-DVIRTUALINPUT=ON
cmake --build ${{matrix.build_type}}/build/ThunderClientLibraries --target install

- name: Tar files
run: tar -czvf ${{matrix.build_type}}.tar.gz ${{matrix.build_type}}

- name: Upload
uses: actions/upload-artifact@v3
with:
name: ThunderClientLibraries-${{matrix.build_type}}-artifact
path: ${{matrix.build_type}}.tar.gz
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ install_manifest.txt
Source/deviceinfo/device_info/device_info
Source/displayinfo/display_info/display_info
Source/playerinfo/player_info/player_info
*/*/*/*/*tests
*/*/generated
*/*/*/*/lib*.a
30 changes: 30 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,39 @@
cmake_minimum_required(VERSION 3.3)
project(ClientLibraries)

find_package(WPEFramework)

option(BLUETOOTHAUDIOSINK
"Include the bluetoothaudiosink library." OFF)
option(BLUETOOTHAUDIOSOURCE
"Include the bluetoothaudiosource library." OFF)
option(PROTOCOLS
"Include the protocols library." ON)
option(COMPOSITORCLIENT
"Include a graphics backend abstraction for external applications." OFF)
option(DEVICEINFO
"Include the deviceinfo COMRPC abstraction library." OFF)
option(DISPLAYINFO
"Include the displayinfo COMRPC abstraction library." OFF)
option(SECURITYAGENT
"Include the securityagent library." OFF)
option(PLAYERINFO
"Include the playerinfo COMRPC abstraction library." OFF)
option(PROVISIONPROXY
"Include the provisionproxy library." OFF)
option(CDMI
"Include OpenCDM interface." OFF)
option(CRYPTOGRAPHY
"Include the cryptography library." OFF)

option(INSTALL_TESTS "Install the test applications" OFF)

option(L1_TESTS "Install the test applications" OFF)

if (BUILD_REFERENCE)
add_definitions (-DBUILD_REFERENCE=${BUILD_REFERENCE})
endif()

add_subdirectory(Source)
add_subdirectory(Tests)

23 changes: 0 additions & 23 deletions Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

option(BLUETOOTHAUDIOSINK
"Include the bluetoothaudiosink library." OFF)
option(PROTOCOLS
"Include the protocols library." ON)
option(COMPOSITORCLIENT
"Include a graphics backend abstraction for external applications." OFF)
option(DEVICEINFO
"Include the deviceinfo COMRPC abstraction library." OFF)
option(DISPLAYINFO
"Include the displayinfo COMRPC abstraction library." OFF)
option(SECURITYAGENT
"Include the securityagent library." OFF)
option(PLAYERINFO
"Include the playerinfo COMRPC abstraction library." OFF)
option(PROVISIONPROXY
"Include the provisionproxy library." OFF)
option(CDMI
"Include OpenCDM interface." OFF)
option(CRYPTOGRAPHY
"Include the cryptography library." OFF)
option(LOCALTRACER
"Header only library to locally print traces coming from Messaging without the need of running Thunder/WPEFramework." OFF)

if(BLUETOOTHAUDIOSINK)
add_subdirectory(bluetoothaudiosink)
endif()
Expand Down
12 changes: 6 additions & 6 deletions Source/compositorclient/Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace Compositor {
};

// Lifetime management
virtual void AddRef() const = 0;
virtual uint32_t AddRef() const = 0;
virtual uint32_t Release() const = 0;

// Methods
Expand All @@ -78,7 +78,7 @@ namespace Compositor {
};

// Lifetime management
virtual void AddRef() const = 0;
virtual uint32_t AddRef() const = 0;
virtual uint32_t Release() const = 0;

// Methods
Expand All @@ -90,7 +90,7 @@ namespace Compositor {
virtual ~IWheel() {}

// Lifetime management
virtual void AddRef() const = 0;
virtual uint32_t AddRef() const = 0;
virtual uint32_t Release() const = 0;

// Methods
Expand All @@ -107,7 +107,7 @@ namespace Compositor {
};

// Lifetime management
virtual void AddRef() const = 0;
virtual uint32_t AddRef() const = 0;
virtual uint32_t Release() const = 0;

// Methods
Expand All @@ -118,7 +118,7 @@ namespace Compositor {
virtual ~ISurface(){};

// Lifetime management
virtual void AddRef() const = 0;
virtual uint32_t AddRef() const = 0;
virtual uint32_t Release() const = 0;

// Methods
Expand Down Expand Up @@ -187,7 +187,7 @@ namespace Compositor {
virtual ~IDisplay() {}

// Lifetime management
virtual void AddRef() const = 0;
virtual uint32_t AddRef() const = 0;
virtual uint32_t Release() const = 0;

// Methods
Expand Down
6 changes: 3 additions & 3 deletions Source/compositorclient/Mesa/Implementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,12 +702,12 @@ namespace Linux {
return (*result);
}

void AddRef() const override
uint32_t AddRef() const override
{
if (Core::InterlockedIncrement(_refCount) == 1) {
const_cast<Display*>(this)->Initialize();
}
return;
return Core::ERROR_NONE;
}
uint32_t Release() const override
{
Expand All @@ -724,7 +724,7 @@ namespace Linux {

const_cast<Display*>(this)->Deinitialize();

return (Core::ERROR_CONNECTION_CLOSED);
return (Core::ERROR_DESTRUCTION_SUCCEEDED);
}
return (Core::ERROR_NONE);
}
Expand Down
4 changes: 2 additions & 2 deletions Source/compositorclient/RPI/Implementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,12 +703,12 @@ class Display : public Compositor::IDisplay {
return (*result);
}

void AddRef() const override
uint32_t AddRef() const override
{
if (Core::InterlockedIncrement(_refCount) == 1) {
const_cast<Display*>(this)->Initialize();
}
return;
return (Core::ERROR_NONE);
}

uint32_t Release() const override
Expand Down
9 changes: 5 additions & 4 deletions Source/compositorclient/Wayland/Implementation.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,18 @@ namespace Wayland {
virtual ~SurfaceImplementation();

public:
void AddRef() const override
uint32_t AddRef() const override
{
_refcount++;
return;
return Core::ERROR_NONE;
}
uint32_t Release() const override
{
if (--_refcount == 0) {
delete const_cast<SurfaceImplementation*>(this);
return Core::ERROR_DESTRUCTION_SUCCEEDED;
}
return (0);
return Core::ERROR_NONE;
}
EGLNativeWindowType Native() const override
{
Expand Down Expand Up @@ -531,7 +532,7 @@ namespace Wayland {

public:
// Lifetime management
virtual void AddRef() const;
virtual uint32_t AddRef() const;
virtual uint32_t Release() const;

// Methods
Expand Down
6 changes: 3 additions & 3 deletions Source/compositorclient/Wayland/Westeros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1212,12 +1212,12 @@ namespace Wayland {
return result;
}

void Display::AddRef() const
uint32_t Display::AddRef() const
{
if (Core::InterlockedIncrement(_refCount) == 1) {
const_cast<Display*>(this)->Initialize();
}
return;
return Core::ERROR_NONE;
}

uint32_t Display::Release() const
Expand All @@ -1226,7 +1226,7 @@ namespace Wayland {
const_cast<Display*>(this)->Deinitialize();

//Indicate Wayland connection is closed properly
return (Core::ERROR_CONNECTION_CLOSED);
return (Core::ERROR_DESTRUCTION_SUCCEEDED);
}
return (Core::ERROR_NONE);
}
Expand Down
6 changes: 3 additions & 3 deletions Source/compositorclient/Wayland/Weston.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1078,12 +1078,12 @@ namespace Wayland {
return result;
}

void Display::AddRef() const
uint32_t Display::AddRef() const
{
if (Core::InterlockedIncrement(_refCount) == 1) {
const_cast<Display*>(this)->Initialize();
}
return;
return Core::ERROR_NONE;
}

uint32_t Display::Release() const
Expand All @@ -1092,7 +1092,7 @@ namespace Wayland {
const_cast<Display*>(this)->Deinitialize();

//Indicate Wayland connection is closed properly
return (Core::ERROR_CONNECTION_CLOSED);
return (Core::ERROR_DESTRUCTION_SUCCEEDED);
}
return (Core::ERROR_NONE);
}
Expand Down
13 changes: 0 additions & 13 deletions Source/cryptography/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,16 @@ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-as-needed")

option(INCLUDE_SOFTWARE_CRYPTOGRAPHY_LIBRARY "Include explicitly a software based cryptography library" OFF)

find_package(ProxyStubGenerator REQUIRED)

find_package(CompileSettingsDebug CONFIG REQUIRED)
find_package(${NAMESPACE}Core REQUIRED)
find_package(${NAMESPACE}COM REQUIRED)

ProxyStubGenerator(
NAMESPACE "WPEFramework::Cryptography"
INPUT "${CMAKE_CURRENT_LIST_DIR}"
OUTDIR "${CMAKE_CURRENT_BINARY_DIR}/generated/proxystubs"
)

add_subdirectory(implementation)

add_library(${TARGET} SHARED
Module.cpp
Cryptography.cpp
NetflixSecurity.cpp
"${CMAKE_CURRENT_BINARY_DIR}/generated/proxystubs/ProxyStubs_Cryptography.cpp"
"${CMAKE_CURRENT_BINARY_DIR}/generated/proxystubs/ProxyStubs_NetflixSecurity.cpp"
)

target_link_libraries(${TARGET}
Expand All @@ -73,11 +63,8 @@ target_include_directories(${TARGET}
)

set(PUBLIC_HEADERS
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/ICryptography.h>
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/Module.h>
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/INetflixSecurity.h>
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/cryptography.h>
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/cryptography_vault_ids.h>
)

set_target_properties(${TARGET} PROPERTIES
Expand Down
Loading