commit c31be75576eabad1317868cf77342af565d459e3 Author: James Pace Date: Wed Sep 16 19:54:38 2026 -0400 Init commit. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..72bf72a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +blend2d/ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..37962b6 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,23 @@ +cmake_minimum_required(VERSION 4.2) +project(blend2d_vendor) + +# I can't use fetchcontent here because belnd2d assumes asmjit is in +# a path relative to the cmake source dir (or something like that). +# +# That tar.gz file was built by cloning the blend2d source repo and +# then cloning asmjit into the proper place per the blend2d instructions. + +set(BLEND2D_SRC "${CMAKE_CURRENT_SOURCE_DIR}/blend2d") + +find_package(ament_cmake REQUIRED) + +execute_process( + COMMAND tar xvzf ${CMAKE_CURRENT_SOURCE_DIR}/blend2d.tar.gz + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + COMMAND_ERROR_IS_FATAL ANY +) + +add_subdirectory(${BLEND2D_SRC}) + +ament_export_dependencies(blend2d) +ament_package() diff --git a/blend2d.tar.gz b/blend2d.tar.gz new file mode 100644 index 0000000..4ee7b46 Binary files /dev/null and b/blend2d.tar.gz differ diff --git a/package.xml b/package.xml new file mode 100644 index 0000000..e572044 --- /dev/null +++ b/package.xml @@ -0,0 +1,15 @@ + + + + blend2d_vendor + 0.0.0 + TODO: Package description + jimmy + TODO: License declaration + + ament_cmake + + + ament_cmake + +