Skip to content

Commit

Permalink
Updates based on MAC testing (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
HaseenaSainul authored Feb 13, 2024
1 parent 30e8133 commit 6c20a90
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions languages/cpp/src/shared/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,16 @@ add_library(${TARGET} ${FIREBOLT_LIBRARY_TYPE}
)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

find_package(${NAMESPACE}WebSocket CONFIG REQUIRED)
find_package(${NAMESPACE}WebSocket CONFIG REQUIRED)
find_package(${NAMESPACE}Core CONFIG REQUIRED)

target_link_libraries(${TARGET}
PUBLIC
${NAMESPACE}WebSocket::${NAMESPACE}WebSocket
${NAMESPACE}Core::${NAMESPACE}Core
${NAMESPACE}WebSocket::${NAMESPACE}WebSocket
)

target_include_directories(${TARGET}
Expand Down
22 changes: 11 additions & 11 deletions languages/cpp/templates/sdk/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ ReleasePath=${InstallPath}/${ReleaseName}

rm -rf ${ReleasePath}
mkdir -p ${ReleasePath}
cp -ar ${SdkPath}/src ${ReleasePath}
cp -ar ${SdkPath}/include ${ReleasePath}
cp -ar ${SdkPath}/cmake ${ReleasePath}
cp -ar ${SdkPath}/scripts/build.sh ${ReleasePath}
cp -ar ${SdkPath}/CMakeLists.txt ${ReleasePath}
cp -ar ${SdkPath}/cpptest ${ReleasePath}/test
cp -aR ${SdkPath}/src ${ReleasePath}
cp -aR ${SdkPath}/include ${ReleasePath}
cp -aR ${SdkPath}/cmake ${ReleasePath}
cp -aR ${SdkPath}/scripts/build.sh ${ReleasePath}
cp -aR ${SdkPath}/CMakeLists.txt ${ReleasePath}
cp -aR ${SdkPath}/cpptest ${ReleasePath}/test

sed -i '/EnableTest="ON";;/d' ${ReleasePath}/build.sh
sed -i 's/getopts p:s:tch/getopts p:s:ch/g' ${ReleasePath}/build.sh
sed -i '/enable test/d' ${ReleasePath}/build.sh
sed -i '/EnableTest="OFF"/d' ${ReleasePath}/build.sh
sed -i 's/ -DENABLE_TESTS=${EnableTest}//g' ${ReleasePath}/build.sh
sed -i'' -e '/EnableTest="ON";;/d' ${ReleasePath}/build.sh
sed -i'' -e 's/getopts p:s:tch/getopts p:s:ch/g' ${ReleasePath}/build.sh
sed -i'' -e '/enable test/d' ${ReleasePath}/build.sh
sed -i'' -e '/EnableTest="OFF"/d' ${ReleasePath}/build.sh
sed -i'' -e 's/ -DENABLE_TESTS=${EnableTest}//g' ${ReleasePath}/build.sh

cd ${ReleasePath}/../
tar -cvzf ${ReleaseName}.tgz ${ReleaseName}/*
Expand Down

0 comments on commit 6c20a90

Please sign in to comment.