Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android or iOS? #3

Open
asmaloney opened this issue Dec 6, 2022 · 2 comments
Open

Android or iOS? #3

asmaloney opened this issue Dec 6, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@asmaloney
Copy link
Owner

I'm sure there's a way to build for Android & iOS, but I've never worked with either of them so I don't know what's required.

If anyone is keen on those, please feel free to file a PR!

@asmaloney asmaloney added the enhancement New feature or request label Dec 6, 2022
@asmaloney asmaloney pinned this issue Dec 6, 2022
@scgm0
Copy link

scgm0 commented May 10, 2023

For my Android build, just add "-DCMAKE_SYSTEM_NAME=Android" to the command line
(cmake >= 3.21: https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling-for-android-with-the-ndk)

@scgm0
Copy link

scgm0 commented May 10, 2023

cmake -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=install JavaScriptApi -DCMAKE_SYSTEM_NAME=Android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants