-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in pkgconfig_requires_private (pull request #184)
Ensure private dependencies are encoded in pkgconfig as Requires.private Approved-by: Ian Chen <[email protected]> Approved-by: Louise Poubel <[email protected]>
- Loading branch information
Showing
9 changed files
with
83 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) | ||
project(ignition-core_child_private VERSION 0.1.0) | ||
find_package(ignition-cmake2 REQUIRED) | ||
ign_configure_project() | ||
ign_find_package(ignition-core_no_deps PRIVATE REQUIRED) | ||
ign_configure_build(QUIT_IF_BUILD_ERRORS) | ||
ign_create_packages() | ||
ign_create_docs(TAGFILES "${IGNITION-CORE_NO_DEPS_DOXYGEN_TAGFILE} = ${IGNITION-CORE_NO_DEPS_API_URL}") |
Empty file.
Empty file.
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,6 @@ | ||
ign_get_libsources_and_unittests(sources gtest_sources) | ||
ign_create_core_library(SOURCES ${sources} CXX_STANDARD 11) | ||
target_link_libraries(${PROJECT_LIBRARY_TARGET_NAME} | ||
PRIVATE | ||
ignition-core_no_deps::ignition-core_no_deps) | ||
ign_build_tests(TYPE UNIT SOURCES ${gtest_sources}) |
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,17 @@ | ||
/* | ||
* Copyright (C) 2020 Open Source Robotics Foundation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
Empty file.
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 |
---|---|---|
@@ -1,12 +1,54 @@ | ||
#!/bin/bash | ||
if pkg-config ignition-core_child --print-requires \ | ||
TEST_STATUS=0 | ||
|
||
echo | ||
echo Expect ignition-core_child to require ignition-core_no_deps | ||
pkg-config ignition-core_child --print-requires | ||
if ! pkg-config ignition-core_child --print-requires \ | ||
| grep ignition-core_no_deps | ||
then | ||
echo Successfully detected ignition-core_nodep requirement | ||
echo oops | ||
TEST_STATUS=1 | ||
fi | ||
|
||
echo | ||
echo Expect ignition-core_child to not privately require ignition-core_no_deps | ||
pkg-config ignition-core_child --print-requires-private | ||
if pkg-config ignition-core_child --print-requires-private \ | ||
| grep ignition-core_no_deps | ||
then | ||
echo oops | ||
TEST_STATUS=1 | ||
fi | ||
|
||
echo | ||
echo Expect ignition-core_child_private to privately require ignition-core_no_deps | ||
pkg-config ignition-core_child_private --print-requires-private | ||
if ! pkg-config ignition-core_child_private --print-requires-private \ | ||
| grep ignition-core_no_deps | ||
then | ||
echo oops | ||
TEST_STATUS=1 | ||
fi | ||
|
||
echo | ||
echo Expect ignition-core_child_private to not require ignition-core_no_deps | ||
pkg-config ignition-core_child_private --print-requires | ||
if pkg-config ignition-core_child_private --print-requires \ | ||
| grep ignition-core_no_deps | ||
then | ||
echo oops | ||
TEST_STATUS=1 | ||
fi | ||
|
||
echo | ||
if [[ $TEST_STATUS -eq 0 ]] | ||
then | ||
echo Successfully detected ignition-core_nodep requirements | ||
cp core_child_requires_core_nodep_pass.xml ../test_results/core_child_requires_core_nodep.xml | ||
exit 0 | ||
else | ||
echo Could not detect ignition-core_nodep requirement | ||
echo Could not detect all ignition-core_nodep requirements correctly | ||
cp core_child_requires_core_nodep_fail.xml ../test_results/core_child_requires_core_nodep.xml | ||
exit 1 | ||
fi |