mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
Move android port code to servoshell (#32533)
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
6f64a5afad
commit
24906e1c21
17 changed files with 156 additions and 241 deletions
|
@ -18,5 +18,5 @@ MY_LOCAL_PATH := $(call my-dir)
|
|||
include $(CLEAR_VARS)
|
||||
LOCAL_PATH := $(SERVO_TARGET_DIR)
|
||||
LOCAL_MODULE := servojni
|
||||
LOCAL_SRC_FILES := libsimpleservo.so
|
||||
LOCAL_SRC_FILES := libservoshell.so
|
||||
include $(PREBUILT_SHARED_LIBRARY)
|
||||
|
|
|
@ -8,13 +8,13 @@ package org.mozilla.servoview;
|
|||
import android.app.Activity;
|
||||
import android.view.Surface;
|
||||
/**
|
||||
* Maps /ports/libsimpleservo API
|
||||
* Maps /ports/libservoshell API
|
||||
*/
|
||||
@SuppressWarnings("JniMissingFunction")
|
||||
public class JNIServo {
|
||||
JNIServo() {
|
||||
System.loadLibrary("c++_shared");
|
||||
System.loadLibrary("simpleservo");
|
||||
System.loadLibrary("servoshell");
|
||||
}
|
||||
|
||||
public native String version();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue