-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f59afcb
commit f32fdd1
Showing
184 changed files
with
1,011 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
|
||
#include "DeviceIdentification.h" | ||
|
||
namespace WPEFramework { | ||
namespace Thunder { | ||
|
||
namespace Plugin { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# - Try to find bcm_host. | ||
# Once done, this will define | ||
# | ||
# BCM_HOST_FOUND - the bcm_host is available | ||
# BCM_HOST::BCM_HOST - The bcm_host library and all its dependecies | ||
# | ||
# Copyright (C) 2019 RDK Management | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions | ||
# are met: | ||
# 1. Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in the | ||
# documentation and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND ITS CONTRIBUTORS ``AS | ||
# IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR ITS | ||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | ||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
if(BCM_HOST_FIND_QUIETLY) | ||
set(_BCM_HOST_MODE QUIET) | ||
elseif(BCM_HOST_FIND_REQUIRED) | ||
set(_BCM_HOST_MODE REQUIRED) | ||
endif() | ||
|
||
find_package(PkgConfig) | ||
pkg_check_modules(PC_BCM_HOST ${_BCM_HOST_MODE} bcm_host) | ||
|
||
if(${PC_BCM_HOST_FOUND}) | ||
find_library(BCM_HOST_LIBRARY bcm_host | ||
HINTS ${PC_BCM_LIBDIR} ${PC_BCM_LIBRARY_DIRS} | ||
) | ||
set(BCM_LIBRARIES ${PC_BCM_HOST_LIBRARIES}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(BCM_HOST DEFAULT_MSG PC_BCM_HOST_FOUND PC_BCM_HOST_INCLUDE_DIRS BCM_HOST_LIBRARY PC_BCM_HOST_LIBRARIES) | ||
mark_as_advanced(PC_BCM_HOST_INCLUDE_DIRS PC_BCM_HOST_LIBRARIES) | ||
|
||
if(BCM_HOST_FOUND AND NOT TARGET BCM_HOST::BCM_HOST) | ||
add_library(BCM_HOST::BCM_HOST UNKNOWN IMPORTED) | ||
|
||
set_target_properties(BCM_HOST::BCM_HOST | ||
PROPERTIES | ||
IMPORTED_LINK_INTERFACE_LANGUAGES "C" | ||
IMPORTED_LOCATION "${BCM_HOST_LIBRARY}" | ||
INTERFACE_COMPILE_DEFINITIONS "PLATFORM_RPI" | ||
INTERFACE_COMPILE_OPTIONS "${PC_BCM_HOST_CFLAGS_OTHER}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${PC_BCM_HOST_INCLUDE_DIRS}" | ||
INTERFACE_LINK_LIBRARIES "${PC_BCM_HOST_LIBRARIES}" | ||
) | ||
endif() | ||
endif() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# - Try to find Broadcom Nexus. | ||
# Once done this will define | ||
# NEXUS_FOUND - System has Nexus | ||
# NEXUS::NEXUS - The Nexus library | ||
# | ||
# Copyright (C) 2019 RDK Management | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions | ||
# are met: | ||
# 1. Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in the | ||
# documentation and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND ITS CONTRIBUTORS ``AS | ||
# IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR ITS | ||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | ||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
find_path(LIBNEXUS_INCLUDE nexus_config.h | ||
PATH_SUFFIXES refsw) | ||
|
||
find_library(LIBNEXUS_LIBRARY nexus) | ||
|
||
if(EXISTS "${LIBNEXUS_LIBRARY}") | ||
find_library(LIBB_OS_LIBRARY b_os) | ||
find_library(LIBNEXUS_CLIENT_LIBRARY nexus_client) | ||
find_library(LIBNXCLIENT_LIBRARY nxclient) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(NEXUS DEFAULT_MSG LIBNEXUS_INCLUDE LIBNEXUS_LIBRARY) | ||
mark_as_advanced(LIBNEXUS_INCLUDE LIBNEXUS_LIBRARY) | ||
|
||
if(NEXUS_FOUND AND NOT TARGET NEXUS::NEXUS) | ||
add_library(NEXUS::NEXUS UNKNOWN IMPORTED) | ||
set_target_properties(NEXUS::NEXUS PROPERTIES | ||
IMPORTED_LINK_INTERFACE_LANGUAGES "C" | ||
INTERFACE_INCLUDE_DIRECTORIES "${LIBNEXUS_INCLUDE}" | ||
) | ||
|
||
if(NOT EXISTS "${LIBNEXUS_CLIENT_LIBRARY}") | ||
message(STATUS "Nexus in Proxy mode") | ||
set_target_properties(NEXUS::NEXUS PROPERTIES | ||
IMPORTED_LOCATION "${LIBNEXUS_LIBRARY}" | ||
) | ||
else() | ||
message(STATUS "Nexus in Client mode") | ||
set_target_properties(NEXUS::NEXUS PROPERTIES | ||
IMPORTED_LOCATION "${LIBNEXUS_CLIENT_LIBRARY}" | ||
) | ||
endif() | ||
|
||
if(NOT EXISTS "${LIBNXCLIENT_LIBRARY}") | ||
set_target_properties(NEXUS::NEXUS PROPERTIES | ||
INTERFACE_COMPILE_DEFINITIONS NO_NXCLIENT | ||
) | ||
endif() | ||
|
||
if(EXISTS "${LIBB_OS_LIBRARY}") | ||
set_target_properties(NEXUS::NEXUS PROPERTIES | ||
IMPORTED_LINK_INTERFACE_LIBRARIES "${LIBB_OS_LIBRARY}" | ||
) | ||
endif() | ||
endif() | ||
set_target_properties(NEXUS::NEXUS PROPERTIES | ||
INTERFACE_COMPILE_DEFINITIONS "PLATFORM_BRCM" | ||
) | ||
else() | ||
if(NEXUS_FIND_REQUIRED) | ||
message(FATAL_ERROR "LIBNEXUS_LIBRARY not available") | ||
elseif(NOT NEXUS_FIND_QUIETLY) | ||
message(STATUS "LIBNEXUS_LIBRARY not available") | ||
endif() | ||
endif() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# - Try to find Broadcom Nexus client. | ||
# Once done this will define | ||
# NXCLIENT_FOUND - System has a Nexus client | ||
# NXCLIENT::NXCLIENT - The Nexus client library | ||
# | ||
# Copyright (C) 2019 RDK Management | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions | ||
# are met: | ||
# 1. Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in the | ||
# documentation and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND ITS CONTRIBUTORS ``AS | ||
# IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR ITS | ||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | ||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
find_path(LIBNXCLIENT_INCLUDE nexus_config.h | ||
PATH_SUFFIXES refsw) | ||
|
||
find_library(LIBNXCLIENT_LIBRARY nxclient) | ||
|
||
if(EXISTS "${LIBNXCLIENT_LIBRARY}") | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(NXCLIENT DEFAULT_MSG LIBNXCLIENT_INCLUDE LIBNXCLIENT_LIBRARY) | ||
mark_as_advanced(LIBNXCLIENT_LIBRARY) | ||
|
||
if(NXCLIENT_FOUND AND NOT TARGET NXCLIENT::NXCLIENT) | ||
add_library(NXCLIENT::NXCLIENT UNKNOWN IMPORTED) | ||
set_target_properties(NXCLIENT::NXCLIENT PROPERTIES | ||
IMPORTED_LINK_INTERFACE_LANGUAGES "C" | ||
IMPORTED_LOCATION "${LIBNXCLIENT_LIBRARY}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${LIBNXCLIENT_INCLUDE}" | ||
) | ||
endif() | ||
else() | ||
if(NXCLIENT_FIND_REQUIRED) | ||
message(FATAL_ERROR "LIBNXCLIENT_LIBRARY not available") | ||
elseif(NOT NXCLIENT_FIND_QUIETLY) | ||
message(STATUS "LIBNXCLIENT_LIBRARY not available") | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.