Skip to content

Instantly share code, notes, and snippets.

@foundry-markf
foundry-markf / Makefile
Last active February 6, 2024 10:44
fast-math side-effects for library code between GLIBC versions
ALL: test
lib.o: lib.c
gcc -o $@ -c $< -ffast-math
lib.a: lib.o
gcc -o $@ -r -s $<
main.o: main.c
gcc -o $@ -c $<
#!/usr/bin/env sh
export CONAN_USER_HOME=`pwd`
conan config home
conan profile new --detect default
git clone https://github.com/conan-io/conan-center-index.git
# make two variants of Alembic, with a different OpenEXR version (major version change to influence package_id)
conan create conan-center-index/recipes/alembic/all 1.8.3@ --build=missing
@foundry-markf
foundry-markf / CMakeLists.txt
Created August 11, 2022 14:18
Conan build configure running further than CMake configure with new CMakeTool
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
project(configonly)
add_executable(configonly main.cpp)
@foundry-markf
foundry-markf / bcp_boost_python_test.sh
Created July 5, 2022 16:00
Extracting Boost Python via bcp and building causes errors due to a missing header from the Boost parent repo
#!/usr/bin/env sh
set -x
set -e
if [ ! -f boost_1_79_0.tar.gz ]
then
curl -Lo boost_1_79_0.tar.gz https://boostorg.jfrog.io/artifactory/main/release/1.79.0/source/boost_1_79_0.tar.gz
fi
#!/usr/bin/env bash
set -x
#set -e
conan create -o lib1:foobar=False conanfile_lib1.py lib1/1.0@
conan create -o lib1:foobar=True conanfile_lib1.py lib1/1.0@
conan create -o lib2:logic_for_foobar=False conanfile_lib2.py lib2/2.0@
conan create -o lib2:logic_for_foobar=True conanfile_lib2.py lib2/2.0@
@foundry-markf
foundry-markf / jenkins-auth-test.py
Last active February 23, 2021 14:58
Python Jenkins auth test
#!/usr/bin/env python
import argparse
from getpass import getpass
import jenkins
import logging
import os
default_logger = logging.getLogger()
default_logger.setLevel(os.environ.get('LOGLEVEL', 'INFO'))
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>EmptyDialog</class>
<widget class="EmptyDialog" name="EmptyDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
@foundry-markf
foundry-markf / conan.conf
Created December 10, 2020 15:34
A Conan config
[log]
run_to_output = True # environment CONAN_LOG_RUN_TO_OUTPUT
run_to_file = False # environment CONAN_LOG_RUN_TO_FILE
level = critical # environment CONAN_LOGGING_LEVEL
# trace_file = # environment CONAN_TRACE_FILE
print_run_commands = False # environment CONAN_PRINT_RUN_COMMANDS
[general]
default_profile = default
@foundry-markf
foundry-markf / booleanerror_conanfile.txt
Created December 10, 2020 14:56
Conan info, different package orders, different results/errors
[build_requires]
libpng/1.6.37@
zlib/1.2.11@
zlib/1.2.8@
@foundry-markf
foundry-markf / CMakeLists.txt
Created May 19, 2020 19:49
Conan package folder inconsistency
cmake_minimum_required(VERSION 3.0.0)
project(PackageFolder)
install(
FILES ${CMAKE_SOURCE_DIR}/testdata.xml
DESTINATION pkgdata
)