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
Revisit how the Android port works. #20912
Merged
+2,449
−914
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
cbaf19c
new android port: Remove Android code from /ports/servo/
paulrouget baf6635
new android port: introduce a simple servo library
paulrouget be6b5f9
new android port: minimal Android app that relies on libsimpleservo
paulrouget 76d394e
new android port: update fakeld
paulrouget bef2fe8
new android port: fix android build and tests
paulrouget 6a31864
Update Gradle and SDK
paulrouget File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.
new android port: introduce a simple servo library
- Loading branch information
commit baf6635a4c96f80452d98980d38bf1bd041705e8
Some generated files are not rendered by default. Learn more.
Oops, something went wrong.
| @@ -0,0 +1,46 @@ | ||
| [package] | ||
| name = "libsimpleservo" | ||
| version = "0.0.1" | ||
| build = "build.rs" | ||
| authors = ["The Servo Project Developers"] | ||
| license = "MPL-2.0" | ||
| publish = false | ||
|
|
||
| [lib] | ||
| name = "simpleservo" | ||
| crate-type = ["cdylib"] | ||
| test = false | ||
| bench = false | ||
|
|
||
| [dependencies] | ||
| libservo = { path = "../../components/servo" } | ||
| log = "0.4" | ||
| serde_json = "1.0" | ||
|
|
||
| [target.'cfg(target_os = "android")'.dependencies] | ||
| android_injected_glue = "0.2" | ||
| android_logger = "0.6" | ||
| # FIXME: use `jni = "0.10.2"` once | ||
| # https://github.com/prevoty/jni-rs/pull/98 lands and is published | ||
| jni = { git = "https://github.com/paulrouget/jni-rs", branch = "return_javavm" } | ||
|
|
||
| [target.'cfg(not(target_os = "macos"))'.dependencies] | ||
| libc = "0.2" | ||
|
|
||
| [target.'cfg(target_os = "windows")'.dependencies] | ||
| winapi = "0.3.2" | ||
|
|
||
| [build-dependencies] | ||
| gl_generator = "0.9" | ||
| cc = "1.0" | ||
|
|
||
| [features] | ||
| default = ["unstable", "default-except-unstable"] | ||
| default-except-unstable = ["webdriver", "max_log_level"] | ||
| max_log_level = ["log/release_max_level_info"] | ||
| webdriver = ["libservo/webdriver"] | ||
| energy-profiling = ["libservo/energy-profiling"] | ||
| debugmozjs = ["libservo/debugmozjs"] | ||
| unstable = ["libservo/unstable"] | ||
| googlevr = ["libservo/googlevr"] | ||
| oculusvr = ["libservo/oculusvr"] | ||
|
||
| @@ -0,0 +1,3 @@ | ||
| This is a basic wrapper around Servo. While libservo itself (/components/servo/) offers a lot of flexibility, | ||
| libsimpleservo (/ports/libsimpleservo/) tries to make it easier to embed Servo, without much configuration needed. | ||
| It is limited to only one view (no tabs, no multiple rendering area). |
Oops, something went wrong.
ProTip!
Use n and p to navigate between commits in a pull request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
You probably also want:
… and maybe others from
ports/servo/Cargo.toml.