Skip to content

Conversation

@kraenhansen
Copy link
Collaborator

@kraenhansen kraenhansen commented Oct 17, 2025

Instead of simply filtering by shared libraries, we should filter by the --target value passed to cmake-rn to allow callers to pick the right shared object in CMake projects building outputting multiple.

Merging this PR will:

  • Use a non-empty array of target names to filter shared libraries in the platform specific postBuild functions.

@kraenhansen kraenhansen self-assigned this Oct 17, 2025
@kraenhansen kraenhansen added Apple 🍎 Anything related to the Apple platform (iOS, macOS, Cocoapods, Xcode, XCFrameworks, etc.) Android 🤖 Anything related to the Android platform (Gradle, NDK, Android SDK) CMake RN Our `cmake` wrapping CLI labels Oct 17, 2025
@kraenhansen kraenhansen force-pushed the kh/filter-by-target-name branch from d5aaa3d to 8cdb205 Compare October 17, 2025 21:16
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@kraenhansen kraenhansen requested a review from Copilot October 17, 2025 21:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables filtering CMake build targets by name in addition to type, allowing callers to select specific shared libraries when multiple are built in a project.

Key changes:

  • Added target parameter to postBuild functions for both Apple and Android platforms
  • Updated target filtering logic to include target name matching when target names are provided
  • Added changeset documenting this patch

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/cmake-rn/src/platforms/apple.ts Added target name filtering to Apple platform's postBuild function
packages/cmake-rn/src/platforms/android.ts Added target name filtering to Android platform's postBuild function
.changeset/cold-showers-arrive.md Added changeset entry for this patch

@kraenhansen kraenhansen merged commit d8e90a8 into main Oct 17, 2025
7 checks passed
@kraenhansen kraenhansen deleted the kh/filter-by-target-name branch October 17, 2025 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android 🤖 Anything related to the Android platform (Gradle, NDK, Android SDK) Apple 🍎 Anything related to the Apple platform (iOS, macOS, Cocoapods, Xcode, XCFrameworks, etc.) CMake RN Our `cmake` wrapping CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants