Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libconfig
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
libconfig
Commits
ec34ac02
Commit
ec34ac02
authored
Jan 10, 2021
by
lukas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Linux/Windows compatibility build issues
add github build workflow
parent
1f9b1971
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
.github/workflows/conan.yaml
.github/workflows/conan.yaml
+16
-0
conanfile.py
conanfile.py
+2
-2
No files found.
.github/workflows/conan.yaml
0 → 100644
View file @
ec34ac02
name
:
build conan package
on
:
push
jobs
:
build_conan
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
# install dependencies
-
name
:
dependencies
run
:
|
sudo apt-get update
sudo apt-get install -yq python3 python3-pip python3-setuptools build-essential cmake make
sudo pip3 install conan
# build project
-
name
:
build conan package
run
:
conan create .
\ No newline at end of file
conanfile.py
View file @
ec34ac02
...
@@ -56,13 +56,13 @@ class LibconfigConan(ConanFile):
...
@@ -56,13 +56,13 @@ class LibconfigConan(ConanFile):
def
package_info
(
self
):
def
package_info
(
self
):
# FIXME: `libconfig` is `libconfig::libconfig` in `libconfigConfig.cmake`
# FIXME: `libconfig` is `libconfig::libconfig` in `libconfigConfig.cmake`
# FIXME: `libconfig++` is `libconfig::libconfig++` in `libconfig++Config.cmake`
# FIXME: `libconfig++` is `libconfig::libconfig++` in `libconfig++Config.cmake`
self
.
cpp_info
.
components
[
"libconfig_c"
].
libs
=
[
"libconfig"
]
self
.
cpp_info
.
components
[
"libconfig_c"
].
libs
=
[
"libconfig"
if
self
.
settings
.
compiler
==
"Visual Studio"
else
"config"
]
if
not
self
.
options
.
shared
:
if
not
self
.
options
.
shared
:
self
.
cpp_info
.
components
[
"libconfig_c"
].
defines
=
[
"LIBCONFIG_STATIC"
]
self
.
cpp_info
.
components
[
"libconfig_c"
].
defines
=
[
"LIBCONFIG_STATIC"
]
self
.
cpp_info
.
components
[
"libconfig_c"
].
names
[
"cmake_find_package"
]
=
[
"libconfig"
]
self
.
cpp_info
.
components
[
"libconfig_c"
].
names
[
"cmake_find_package"
]
=
[
"libconfig"
]
self
.
cpp_info
.
components
[
"libconfig_c"
].
names
[
"cmake_find_package_multi"
]
=
[
"libconfig"
]
self
.
cpp_info
.
components
[
"libconfig_c"
].
names
[
"cmake_find_package_multi"
]
=
[
"libconfig"
]
self
.
cpp_info
.
components
[
"libconfig_c"
].
names
[
"pkg_config"
]
=
"libconfig"
self
.
cpp_info
.
components
[
"libconfig_c"
].
names
[
"pkg_config"
]
=
"libconfig"
self
.
cpp_info
.
components
[
"libconfig_cpp"
].
libs
=
[
"libconfig++"
]
self
.
cpp_info
.
components
[
"libconfig_cpp"
].
libs
=
[
"libconfig++"
if
self
.
settings
.
compiler
==
"Visual Studio"
else
"config++"
]
if
not
self
.
options
.
shared
:
if
not
self
.
options
.
shared
:
self
.
cpp_info
.
components
[
"libconfig_cpp"
].
defines
=
[
"LIBCONFIGXX_STATIC"
]
self
.
cpp_info
.
components
[
"libconfig_cpp"
].
defines
=
[
"LIBCONFIGXX_STATIC"
]
self
.
cpp_info
.
components
[
"libconfig_cpp"
].
names
[
"cmake_find_package"
]
=
[
"libconfig++"
]
self
.
cpp_info
.
components
[
"libconfig_cpp"
].
names
[
"cmake_find_package"
]
=
[
"libconfig++"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment