From 59fd40076c26bc1f56f51e30883a266a059a9262 Mon Sep 17 00:00:00 2001 From: cmuhammedrafi Date: Wed, 28 Aug 2024 11:00:25 +0530 Subject: [PATCH] Gnome build added --- .github/workflows/L1-tests.yml | 34 ++++++++++++++++++++++--- CMakeLists.txt | 2 +- unit_test.cmake => cmake/UnitTest.cmake | 0 3 files changed, 31 insertions(+), 5 deletions(-) rename unit_test.cmake => cmake/UnitTest.cmake (100%) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 9e94c6fa..f56899e2 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -177,11 +177,11 @@ jobs: if: ${{ matrix.compiler == 'gcc' && matrix.coverage == 'with-coverage' && !env.ACT }} run: echo "TOOLCHAIN_FILE=${{github.workspace}}/networkmanager/Tests/gcc-with-coverage.cmake" >> $GITHUB_ENV - - name: Build NetworkManager + - name: Build networkmanager with RDK Proxy run: > cmake -S "${{github.workspace}}/networkmanager" - -B build/networkmanager + -B build/RDKNetworkmanager -DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/install/usr" -DCMAKE_MODULE_PATH="${{github.workspace}}/install/tools/cmake" @@ -199,6 +199,32 @@ jobs: -DENABLE_NETWORKMANAGER_UNIT_TEST=ON -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} && - cmake --build build/networkmanager -j16 + cmake --build build/RDKNetworkmanager -j16 && - cmake --install build/networkmanager + cmake --install build/RDKNetworkmanager + + - name: Build networkmanager with Gnome Proxy + run: > + cmake + -S "${{github.workspace}}/networkmanager" + -B build/GnomeNetworkmanager + -DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" + -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/install/usr" + -DCMAKE_MODULE_PATH="${{github.workspace}}/install/tools/cmake" + -DCMAKE_CXX_FLAGS=" + -fprofile-arcs + -ftest-coverage + -DEXCEPTIONS_ENABLE=ON + -I ${{github.workspace}}/networkmanagerTests/headers + -I ${{github.workspace}}/networkmanager/Tests/headers/rdk/iarmbus + -I ${{github.workspace}}/networkmanager/Tests/headers/network + -Wall -Wno-error=format= + -Wl,-wrap,system -Wl,-wrap,popen -Wl,-wrap,syslog" + -DCMAKE_DISABLE_FIND_PACKAGE_IARMBus=ON + -DENABLE_GNOME_NETWORKMANAGER=ON + -DENABLE_NETWORKMANAGER_UNIT_TEST=OFF + -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + && + cmake --build build/GnomeNetworkmanager -j16 + && + cmake --install build/GnomeNetworkmanager \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bc5ea04..d86862f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,7 @@ find_package(IARMBus) endif () if(ENABLE_NETWORKMANAGER_UNIT_TEST) - include(unit_test.cmake) + include(cmake/UnitTest.cmake) endif() message("Setup ProxyStub for INetworkManager.h") diff --git a/unit_test.cmake b/cmake/UnitTest.cmake similarity index 100% rename from unit_test.cmake rename to cmake/UnitTest.cmake