Skip to content

Instantly share code, notes, and snippets.

View uilianries's full-sized avatar

Uilian Ries uilianries

View GitHub Profile
@uilianries
uilianries / Makefile
Last active June 14, 2023 17:32
Conan MakeDeps with Poco example
#----------------------------------------
# Prepare flags from make generator
#----------------------------------------
include conandeps.mk
CFLAGS += $(CONAN_CFLAGS)
CXXFLAGS += $(CONAN_CXXFLAGS)
CPPFLAGS += $(addprefix -I, $(CONAN_INCLUDE_DIRS))
CPPFLAGS += $(addprefix -I, $(CONAN_INCLUDE_DIRS_POCO_POCO_FOUNDATION))
@uilianries
uilianries / conan_v2_ready.py
Created April 3, 2023 15:06
List all Conan packages v2 ready in Conan Center
import json
import os
import yaml
import argparse
import tempfile
import asyncio
from conan.api.conan_api import ConanAPI
from conan.api.output import ConanOutput
from conan.cli.command import OnceArgument
@uilianries
uilianries / conanfile.py
Created March 3, 2022 17:42
Conan - Export cmake targets correctly
from conans import ConanFile
class FoobarConan(ConanFile):
def package_info(self):
self.cpp_info.filenames["cmake_find_package"] = "FooBar"
self.cpp_info.filenames["cmake_find_package_multi"] = "FooBar"
self.cpp_info.names["cmake_find_package"] = "Foo"
self.cpp_info.names["cmake_find_package_multi"] = "Foo"
self.cpp_info.components["Foo"].libs = ["foobar"]
@uilianries
uilianries / gdb.log
Created June 3, 2021 17:09
Clang 9 + libstdc++.so.6.0.29
root@2a0a244cef6f:/tmp/bin# gdb ./foobar_cpp_libstdcpp
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
@uilianries
uilianries / c3istd GCC 10
Created May 25, 2021 15:37
GCC10 compare
$ gcc -dM -E -x c++ /dev/null
#define __DBL_MIN_EXP__ (-1021)
#define __cpp_attributes 200809L
#define __UINT_LEAST16_MAX__ 0xffff
#define __ATOMIC_ACQUIRE 2
#define __FLT128_MAX_10_EXP__ 4932
#define __FLT_MIN__ 1.17549435082228750796873653722224568e-38F
#define __GCC_IEC_559_COMPLEX 2
#define __cpp_aggregate_nsdmi 201304L
#define __UINT_LEAST8_TYPE__ unsigned char
$ conan create . -o libunwind:shared=True
foo/0.1: Copying sources to build folder
foo/0.1: Building your package in /home/conan/.conan/data/foo/0.1/_/_/build/8fb161a2601aef34fcdfb3babeed4056fa08a623
foo/0.1: Generator cmake_find_package_multi created ZLIBConfigVersion.cmake
foo/0.1: Generator cmake_find_package_multi created ZLIBConfig.cmake
foo/0.1: Generator cmake_find_package_multi created ZLIBTargets.cmake
foo/0.1: Generator cmake_find_package_multi created ZLIBTarget-release.cmake
foo/0.1: Generator cmake_find_package_multi created spdlog-config-version.cmake
foo/0.1: Generator cmake_find_package_multi created spdlogTarget-release.cmake
foo/0.1: Generator cmake_find_package_multi created spdlogTargets.cmake
@uilianries
uilianries / Dockerfile
Last active March 6, 2021 14:06
Ubuntu 16.04 GCC 10 - Stats
FROM ubuntu:xenial
LABEL maintainer="Conan.io <info@conan.io>"
RUN apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends \
sudo \
binutils \
wget \
git \
@uilianries
uilianries / pkg-conan.mk
Created February 17, 2021 01:01
Buildroot Conan Integration
################################################################################
# Conan package create infrastructure
#
# This file implements an infrastructure that eases development of
# package .mk files for Conan packages. It should be used for all
# packages that use Conan as their build system.
#
# See the Buildroot documentation for details on the usage of this
# infrastructure
#
@uilianries
uilianries / .config
Created February 3, 2021 14:36
Buildroot config file for OrangePi Zero
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2020.11.2-dirty Configuration
#
BR2_HAVE_DOT_CONFIG=y
BR2_HOST_GCC_AT_LEAST_4_9=y
BR2_HOST_GCC_AT_LEAST_5=y
BR2_HOST_GCC_AT_LEAST_6=y
BR2_HOST_GCC_AT_LEAST_7=y
BR2_HOST_GCC_AT_LEAST_8=y
@uilianries
uilianries / build.log
Created January 4, 2021 15:04
OpenCV 3.4 Linux x64 Static Library
Exporting package recipe
opencv/3.4.12 exports: File 'conandata.yml' found. Exporting it...
opencv/3.4.12 exports: Copied 1 '.yml' file: conandata.yml
opencv/3.4.12 exports_sources: Copied 1 '.txt' file: CMakeLists.txt
opencv/3.4.12: The stored package has not changed
opencv/3.4.12: Exported revision: ac926a800451e0df263603bfc36cacdf
Configuration:
[settings]
arch=x86_64
arch_build=x86_64