Skip to content

Android JS Engine selection#193

Merged
CedricGuillemet merged 17 commits into
BabylonJS:masterfrom
CedricGuillemet:androidJSEngine
Mar 31, 2020
Merged

Android JS Engine selection#193
CedricGuillemet merged 17 commits into
BabylonJS:masterfrom
CedricGuillemet:androidJSEngine

Conversation

@CedricGuillemet
Copy link
Copy Markdown
Collaborator

@CedricGuillemet CedricGuillemet commented Mar 30, 2020

npm installation of JS engine
V8/JSC switch in Gradle
android pipelines for v8 and JSC
build instructions update in an upcoming PR

@CedricGuillemet CedricGuillemet changed the title JS Engine switch Android JS Engine selection Mar 30, 2020
@CedricGuillemet CedricGuillemet linked an issue Mar 30, 2020 that may be closed by this pull request
9 tasks
@CedricGuillemet CedricGuillemet marked this pull request as ready for review March 30, 2020 17:00
Comment thread azure-pipelines.yml
cp -r x86_64 Apps/Playground/Android/app/src/main/jniLibs
displayName: 'Install V8 npm'
cd Apps/Playground/Android
npm install
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: Is it possible/advisable to get Gradle to do this part, too?

Copy link
Copy Markdown
Collaborator Author

@CedricGuillemet CedricGuillemet Mar 31, 2020

Choose a reason for hiding this comment

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

I tried without success to do it with gradle using shell command. No idea why. I'm adding an issue: #197

@@ -0,0 +1,18 @@
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

update .gitignore to ignore node_modules?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

also remove Dependenceis/v8 from root .gitignore

Comment on lines +27 to +31
if (${ANDROID_JSENGINE_LIBNAME} STREQUAL "jsc")
set(NAPI_JAVASCRIPT_ENGINE "JavaScriptCore" CACHE STRING "JavaScript engine for N-API.")
else()
set(NAPI_JAVASCRIPT_ENGINE "V8" CACHE STRING "JavaScript engine for N-API.")
endif()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: might be better to have an else case that throws an error if the libname is not jsc or v8android.

@CedricGuillemet CedricGuillemet merged commit 9782a2f into BabylonJS:master Mar 31, 2020
bghgary added a commit to bghgary/BabylonNative that referenced this pull request May 22, 2026
Update playground snippet versions to match BJS config where the code is unchanged (no visual diff, no new reference images needed):
- Solid particle system: #WCDZS#92 -> BabylonJS#531 (v2 snippet format, same code)
- Volumetric Light Scattering + Morph Targets: #5E318S#5 -> BabylonJS#7 (same code)
- wgsl-in-shadermaterial: #8RU8Q3#157 -> BabylonJS#193 (same code)

The latter two are excludeFromAutomaticTesting so no CI impact.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android issues

3 participants