android fixes
This commit is contained in:
parent
a807bf0cb3
commit
3351465f2b
9 changed files with 18 additions and 18 deletions
|
@ -24,7 +24,6 @@ debuggable_apks = false
|
||||||
use_relative_vtables_abi = false
|
use_relative_vtables_abi = false
|
||||||
icu_use_data_file = true
|
icu_use_data_file = true
|
||||||
# use_cfi_cast = true
|
# use_cfi_cast = true
|
||||||
use_gnome_keyring = false
|
|
||||||
v8_use_external_startup_data = true
|
v8_use_external_startup_data = true
|
||||||
android_channel = "stable"
|
android_channel = "stable"
|
||||||
disable_android_lint = true
|
disable_android_lint = true
|
||||||
|
|
|
@ -24,7 +24,6 @@ is_cfi = true
|
||||||
use_relative_vtables_abi = false
|
use_relative_vtables_abi = false
|
||||||
icu_use_data_file = true
|
icu_use_data_file = true
|
||||||
use_cfi_cast = true
|
use_cfi_cast = true
|
||||||
use_gnome_keyring = false
|
|
||||||
v8_use_external_startup_data = true
|
v8_use_external_startup_data = true
|
||||||
android_channel = "stable"
|
android_channel = "stable"
|
||||||
disable_android_lint = true
|
disable_android_lint = true
|
||||||
|
|
|
@ -16,7 +16,6 @@ is_cfi = true
|
||||||
use_relative_vtables_abi = false
|
use_relative_vtables_abi = false
|
||||||
icu_use_data_file = true
|
icu_use_data_file = true
|
||||||
use_cfi_cast = true
|
use_cfi_cast = true
|
||||||
#use_gnome_keyring = false
|
|
||||||
v8_use_external_startup_data = true
|
v8_use_external_startup_data = true
|
||||||
android_channel = "stable"
|
android_channel = "stable"
|
||||||
disable_android_lint = true
|
disable_android_lint = true
|
||||||
|
|
|
@ -16,7 +16,6 @@ is_cfi = true
|
||||||
use_relative_vtables_abi = false
|
use_relative_vtables_abi = false
|
||||||
icu_use_data_file = true
|
icu_use_data_file = true
|
||||||
use_cfi_cast = true
|
use_cfi_cast = true
|
||||||
#use_gnome_keyring = false
|
|
||||||
v8_use_external_startup_data = true
|
v8_use_external_startup_data = true
|
||||||
android_channel = "stable"
|
android_channel = "stable"
|
||||||
disable_android_lint = true
|
disable_android_lint = true
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -19,7 +19,7 @@ try() { "$@" || die "${RED}Failed $*"; }
|
||||||
displayHelp () {
|
displayHelp () {
|
||||||
printf "\n" &&
|
printf "\n" &&
|
||||||
printf "${bold}${GRE}Script to build Thorium on Linux.${c0}\n" &&
|
printf "${bold}${GRE}Script to build Thorium on Linux.${c0}\n" &&
|
||||||
printf "${underline}${YEL}Usage: ${c0}build.sh # (where # is number of jobs)${c0}\n" &&
|
printf "${underline}${YEL}Usage:${c0} build.sh # (where # is number of jobs)${c0}\n" &&
|
||||||
printf "\n"
|
printf "\n"
|
||||||
}
|
}
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|
|
@ -19,9 +19,9 @@ try() { "$@" || die "${RED}Failed $*"; }
|
||||||
displayHelp () {
|
displayHelp () {
|
||||||
printf "\n" &&
|
printf "\n" &&
|
||||||
printf "${bold}${GRE}Script to build Thorium for Android.${c0}\n" &&
|
printf "${bold}${GRE}Script to build Thorium for Android.${c0}\n" &&
|
||||||
printf "${underline}${YEL}Usage: ${c0}build.sh # (where # is number of jobs)${c0}\n" &&
|
printf "${underline}${YEL}Usage:${c0} build.sh # (where # is number of jobs)${c0}\n" &&
|
||||||
printf "${underline}${YEL}Use the --arm32 flag to make an ARM32 Build.{c0}\n" &&
|
printf "${YEL}Use the --arm32 flag to make an ARM32 Build.${c0}\n" &&
|
||||||
printf "${underline}${YEL}Use the --help flag to show this help.{c0}\n" &&
|
printf "${YEL}Use the --help flag to show this help.${c0}\n" &&
|
||||||
printf "\n"
|
printf "\n"
|
||||||
}
|
}
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|
|
@ -19,8 +19,8 @@ try() { "$@" || die "${RED}Failed $*"; }
|
||||||
displayHelp () {
|
displayHelp () {
|
||||||
printf "\n" &&
|
printf "\n" &&
|
||||||
printf "${bold}${GRE}Script to build Thorium and Thorium Shell on MacOS.${c0}\n" &&
|
printf "${bold}${GRE}Script to build Thorium and Thorium Shell on MacOS.${c0}\n" &&
|
||||||
printf "${underline}${YEL}Usage: ${c0}build.sh # (where # is number of jobs)${c0}\n" &&
|
printf "${underline}${YEL}Usage:${c0} build.sh # (where # is number of jobs)${c0}\n" &&
|
||||||
printf "${c0}Use the --build-shell flag to also build the thorium_shell target.${c0}\n" &&
|
printf "${YEL}Use the --build-shell flag to also build the thorium_shell target.${c0}\n" &&
|
||||||
printf "\n"
|
printf "\n"
|
||||||
}
|
}
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|
|
@ -19,7 +19,7 @@ try() { "$@" || die "${RED}Failed $*"; }
|
||||||
displayHelp () {
|
displayHelp () {
|
||||||
printf "\n" &&
|
printf "\n" &&
|
||||||
printf "${bold}${GRE}Script to build Thorium for Windows on Linux.${c0}\n" &&
|
printf "${bold}${GRE}Script to build Thorium for Windows on Linux.${c0}\n" &&
|
||||||
printf "${underline}${YEL}Usage: ${c0}build_win.sh # (where # is number of jobs)${c0}\n" &&
|
printf "${underline}${YEL}Usage:${c0} build_win.sh # (where # is number of jobs)${c0}\n" &&
|
||||||
printf "\n"
|
printf "\n"
|
||||||
}
|
}
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# found in the LICENSE file.
|
# found in the LICENSE file.
|
||||||
|
|
||||||
import("//build/config/android/config.gni")
|
import("//build/config/android/config.gni")
|
||||||
|
import("//build/config/android/jni.gni")
|
||||||
import("//build/config/android/rules.gni")
|
import("//build/config/android/rules.gni")
|
||||||
import("//third_party/icu/config.gni")
|
import("//third_party/icu/config.gni")
|
||||||
|
|
||||||
|
@ -18,7 +19,7 @@ generate_jni("content_shell_jni_headers") {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
shared_library("libcontent_shell_content_view") {
|
shared_library_with_jni("libcontent_shell_content_view") {
|
||||||
testonly = true
|
testonly = true
|
||||||
deps = [
|
deps = [
|
||||||
":content_shell_jni_headers",
|
":content_shell_jni_headers",
|
||||||
|
@ -41,9 +42,10 @@ shared_library("libcontent_shell_content_view") {
|
||||||
sources = [ "shell_library_loader.cc" ]
|
sources = [ "shell_library_loader.cc" ]
|
||||||
configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
|
configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
|
||||||
configs += [ "//build/config/android:hide_all_but_jni" ]
|
configs += [ "//build/config/android:hide_all_but_jni" ]
|
||||||
|
java_targets = [ ":content_shell_apk" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
shared_library("libcontent_native_test") {
|
shared_library_with_jni("libcontent_native_test") {
|
||||||
testonly = true
|
testonly = true
|
||||||
deps = [
|
deps = [
|
||||||
"//base",
|
"//base",
|
||||||
|
@ -56,6 +58,7 @@ shared_library("libcontent_native_test") {
|
||||||
sources = [ "shell_test_library_loader.cc" ]
|
sources = [ "shell_test_library_loader.cc" ]
|
||||||
configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
|
configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
|
||||||
configs += [ "//build/config/android:hide_all_but_jni" ]
|
configs += [ "//build/config/android:hide_all_but_jni" ]
|
||||||
|
java_targets = [ ":content_shell_test_apk__test_apk" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
android_resources("content_shell_java_resources") {
|
android_resources("content_shell_java_resources") {
|
||||||
|
@ -95,13 +98,12 @@ android_library("content_shell_java") {
|
||||||
"//ui/base/cursor/mojom:cursor_type_java",
|
"//ui/base/cursor/mojom:cursor_type_java",
|
||||||
"//url:gurl_java",
|
"//url:gurl_java",
|
||||||
]
|
]
|
||||||
|
srcjar_deps = [ ":content_shell_jni_headers" ]
|
||||||
sources = [
|
sources = [
|
||||||
"java/src/org/chromium/content_shell/Shell.java",
|
"java/src/org/chromium/content_shell/Shell.java",
|
||||||
"java/src/org/chromium/content_shell/ShellManager.java",
|
"java/src/org/chromium/content_shell/ShellManager.java",
|
||||||
"java/src/org/chromium/content_shell/ShellViewAndroidDelegate.java",
|
"java/src/org/chromium/content_shell/ShellViewAndroidDelegate.java",
|
||||||
]
|
]
|
||||||
|
|
||||||
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
jinja_template("content_shell_manifest") {
|
jinja_template("content_shell_manifest") {
|
||||||
|
@ -208,24 +210,26 @@ template("content_shell_apk_tmpl") {
|
||||||
|
|
||||||
content_shell_apk_tmpl("content_shell_apk") {
|
content_shell_apk_tmpl("content_shell_apk") {
|
||||||
target_type = "android_apk"
|
target_type = "android_apk"
|
||||||
apk_name = "ThoriumShell"
|
apk_name = "Thorium_Shell"
|
||||||
android_manifest = content_shell_manifest
|
android_manifest = content_shell_manifest
|
||||||
android_manifest_dep = ":content_shell_manifest"
|
android_manifest_dep = ":content_shell_manifest"
|
||||||
shared_libraries = [ ":libcontent_shell_content_view" ]
|
shared_libraries = [ ":libcontent_shell_content_view" ]
|
||||||
|
srcjar_deps = [ ":libcontent_shell_content_view__jni_registration" ]
|
||||||
command_line_flags_file = "content-shell-command-line"
|
command_line_flags_file = "content-shell-command-line"
|
||||||
}
|
}
|
||||||
|
|
||||||
content_shell_apk_tmpl("content_shell_test_apk") {
|
content_shell_apk_tmpl("content_shell_test_apk") {
|
||||||
target_type = "instrumentation_test_apk"
|
target_type = "instrumentation_test_apk"
|
||||||
apk_name = "ThoriumShellTest"
|
apk_name = "Thorium_Shell_Test"
|
||||||
android_manifest = content_shell_test_manifest
|
android_manifest = content_shell_test_manifest
|
||||||
android_manifest_dep = ":content_shell_test_manifest"
|
android_manifest_dep = ":content_shell_test_manifest"
|
||||||
shared_libraries = [ ":libcontent_native_test" ]
|
shared_libraries = [ ":libcontent_native_test" ]
|
||||||
|
srcjar_deps = [ ":libcontent_native_test__jni_registration" ]
|
||||||
deps = [
|
deps = [
|
||||||
"//base:base_java_test_support",
|
"//base:base_java_test_support",
|
||||||
"//base:base_javatests",
|
"//base:base_javatests",
|
||||||
"//content/public/android:content_javatests",
|
"//content/public/android:content_javatests",
|
||||||
"//net/android:net_javatests",
|
"//net/android:net_tests_java",
|
||||||
]
|
]
|
||||||
data_deps = [ "//testing/buildbot/filters:content_shell_test_apk_filters" ]
|
data_deps = [ "//testing/buildbot/filters:content_shell_test_apk_filters" ]
|
||||||
if (enable_chrome_android_internal) {
|
if (enable_chrome_android_internal) {
|
||||||
|
|
Loading…
Reference in a new issue