GithubHelp home page GithubHelp logo

devikkim / j2v8forarm64 Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 23.27 MB

This repository is extension of J2V8 for support architecture arm64

CMake 0.07% C++ 58.40% C 0.15% Java 41.38%
j2v8 v8 v8-javascript-engine v8-engine v8-natives ndk ndk-build ndk-library java arm armv7 arm64 armv8 x86

j2v8forarm64's Introduction

J2V8ForArm64

This repository is extension of J2V8 for support architecture arm64

go -> Complie V8 for Android

go -> j2v8

  1. import include, armeabi-v7a, arm64-v8a, x86, include folder
app
-- libs
   -- arm64-v8a
   -- armeabi-v7a
   -- x86
   -- include
  1. edit CMakeLists.txt file
cmake_minimum_required(VERSION 3.4.1)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")

#import libv8_base.a
add_library( v8_base STATIC IMPORTED )
set_target_properties( v8_base PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI}/libv8_base.a )

#import libv8_nosnapshot.a
add_library( v8_nosnapshot STATIC IMPORTED )
set_target_properties( v8_nosnapshot PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI}/libv8_nosnapshot.a )

add_library( j2v8 SHARED src/main/cpp/com_eclipsesource_v8_V8Impl.cpp )
target_include_directories( j2v8 PRIVATE ${CMAKE_SOURCE_DIR}/libs/include )

target_link_libraries( j2v8 v8_base v8_nosnapshot log )
  1. add cmake option in build.gragle
cmake {
    cppFlags "-std=c++11 -frtti -fexceptions"
    abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a'
    arguments "-DANDROID_UNIFIED_HEADERS=ON"
}

Author

devikkim, [email protected]

j2v8forarm64's People

Contributors

devikkim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

j2v8forarm64's Issues

J2V8&xxx.a

Hi, there,
I'd like to know where did you get the libv8_base.a xxx.a(static link library). I didn't find them under eclipsesource/J2V8 .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.