Skip to content

Move several libs from default App CMake setup to static linking#43909

Closed
cortinico wants to merge 3 commits into
facebook:mainfrom
cortinico:export-D55751683
Closed

Move several libs from default App CMake setup to static linking#43909
cortinico wants to merge 3 commits into
facebook:mainfrom
cortinico:export-D55751683

Conversation

@cortinico
Copy link
Copy Markdown
Contributor

Summary:
As we're moving towards a single libreactnative.so file, we need to remove several of our prefab targets. Here I'm cleaning up those that are not having an OnLoad.cpp file which needs to be loaded from SoLoader.

This is breaking for libraries using native dependencies via Prefab (i.e. search for ReactAndroid:: in CMakeLists.txt files for your project).

If so, the CMakeLists.txt files should be updated as follows:

- ReactAndroid::react_render_debug
+ ReactAndroid::reactnative

This applies to every prefab dependencies (the example is just for react_render_debug

Changelog:
[General] [Breaking] - Remove several libs from default App CMake setup

Differential Revision: D55751683

Summary:
This frees up the `reactnative` CMake target so we could use it as single .so
for the CMake build.

Changelog:
[Internal] [Changed] - Rename reactnative.a -> react_cxxreact.a

Differential Revision: D55745640
Summary:
This creates a new dynamic library that we want to be the only .so that is loaded from apps/libraries.

Changelog:
[Internal] [Changed] - Create the libreactnative.so dependency

Differential Revision: D55751682
Summary:
As we're moving towards a single `libreactnative.so` file, we need to remove several of our prefab targets. Here I'm cleaning up those that are not having an OnLoad.cpp file which needs to be loaded from SoLoader.

This is breaking for libraries using native dependencies via Prefab (i.e. search for `ReactAndroid::` in CMakeLists.txt files for your project).

If so, the CMakeLists.txt files should be updated as follows:

```diff
- ReactAndroid::react_render_debug
+ ReactAndroid::reactnative
```

This applies to every prefab dependencies (the example is just for `react_render_debug`

Changelog:
[General] [Breaking] - Remove several libs from default App CMake setup

Differential Revision: D55751683
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Apr 5, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D55751683

@cortinico
Copy link
Copy Markdown
Contributor Author

Closing as stale

@cortinico
Copy link
Copy Markdown
Contributor Author

Close as stale

@cortinico cortinico closed this Jul 16, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D55751683

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D55751683

cortinico added a commit to cortinico/react-native that referenced this pull request Jul 26, 2024
…ebook#43909)

Summary:
Pull Request resolved: facebook#43909

As we're moving towards a single `libreactnative.so` file, we need to remove several of our prefab targets. Here I'm cleaning up those that are not having an OnLoad.cpp file which needs to be loaded from SoLoader.

This is breaking for libraries using native dependencies via Prefab (i.e. search for `ReactAndroid::` in CMakeLists.txt files for your project).

If so, the CMakeLists.txt files should be updated as follows:

```diff
- ReactAndroid::react_render_debug
+ ReactAndroid::reactnative
```

This applies to every prefab dependencies (the example is just for `react_render_debug`

Changelog:
[General] [Breaking] - Remove several libs from default App CMake setup

bypass-github-export-checks

Reviewed By: cipolleschi

Differential Revision: D55751683
facebook-github-bot pushed a commit that referenced this pull request Jul 26, 2024
)

Summary:
Pull Request resolved: #43909

As we're moving towards a single `libreactnative.so` file, we need to remove several of our prefab targets. Here I'm cleaning up those that are not having an OnLoad.cpp file which needs to be loaded from SoLoader.

This is breaking for libraries using native dependencies via Prefab (i.e. search for `ReactAndroid::` in CMakeLists.txt files for your project).

If so, the CMakeLists.txt files should be updated as follows:

```diff
- ReactAndroid::react_render_debug
+ ReactAndroid::reactnative
```

This applies to every prefab dependencies (the example is just for `react_render_debug`

Changelog:
[General] [Breaking] - Remove several libs from default App CMake setup

Reviewed By: cipolleschi

Differential Revision: D55751683

fbshipit-source-id: 3aca7897852b5f323d60ede3c5036cae2f81e6c3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants