gn gen doesn't work for Android with enable_resource_whitelist_generation = true

431 views
Skip to first unread message

kuzne...@yandex-team.ru

unread,
Jun 26, 2018, 4:53:44 AM6/26/18
to Chromium-dev
ERROR at //tools/grit/grit_rule.gni:94:1: Assertion failed.
assert(!enable_resource_whitelist_generation || is_android,
^-----
resource whitelist generation only works on android
See //net/BUILD.gn:16:1: whence it was imported.
import("//tools/grit/grit_rule.gni")
^----------------------------------
See //third_party/blink/renderer/platform/BUILD.gn:191:5: which caused the file to be included.
    "//net",
    ^------


gn refs says:
gn refs out/Default "//net(//build/toolchain/linux:clang_x64)" --tree
//components/subresource_filter/core/common:common(//build/toolchain/linux:clang_x64)
  //components/subresource_filter/core/browser:browser(//build/toolchain/linux:clang_x64)
    //components/subresource_filter/tools:tools_lib(//build/toolchain/linux:clang_x64)
      //components/subresource_filter/tools:subresource_indexing_tool(//build/toolchain/linux:clang_x64)
        //components/subresource_filter/tools:index_ruleset
          //tools/perf:perf
            //chrome/test:telemetry_perf_tests
              //chrome/test:performance_test_suite
                //chrome/test:performance_webview_test_suite
              //chrome/test:telemetry_perf_webview_tests
            //chrome/test:telemetry_perf_unittests
              //:gn_all
            //tools/perf/contrib/vr_benchmarks:vr_perf_tests
              //:gn_all
          //tools/perf:perf_without_chrome
            //chrome/test:telemetry_perf_tests_without_chrome
  //components/subresource_filter/tools:tools_lib(//build/toolchain/linux:clang_x64)...
//net:net(//build/toolchain/linux:clang_x64)
  //components/subresource_filter/core/common:common(//build/toolchain/linux:clang_x64)...


Is it ok to build //net for host tool?

Colin Blundell

unread,
Jun 26, 2018, 5:11:49 AM6/26/18
to kuzne...@yandex-team.ru, Chromium-dev
What's your GN configuration?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/d1265052-2c64-4655-bc50-c3ba877f9855%40chromium.org.

kuzne...@yandex-team.ru

unread,
Jun 26, 2018, 5:15:21 AM6/26/18
to Chromium-dev, kuzne...@yandex-team.ru
is_component_build = true
is_debug = true
target_os = "android"
target_cpu = "arm"
is_clang = true
symbol_level = 1
remove_webcore_debug_symbols = false
use_jumbo_build = true
enable_resource_whitelist_generation = true

Nico Weber

unread,
Jun 26, 2018, 10:33:19 AM6/26/18
to kuzne...@yandex-team.ru, Chromium-dev
As you say, that's because setting enable_resource_whitelist_generation to true in args.gn enables it globally, including for host builds.

enable_resource_whitelist_generation is set to true for target builds if you set is_official_build = true. Is there any reason why you can't set that?

Torne (Richard Coles)

unread,
Jun 26, 2018, 11:17:40 AM6/26/18
to tha...@chromium.org, kuzne...@yandex-team.ru, Chromium-dev
We should probably remove the declare_args for enable_resource_whitelist_generation entirely then, if setting it doesn't actually work?

Nico Weber

unread,
Jun 26, 2018, 11:18:43 AM6/26/18
to Torne (Richard Coles), kuzne...@yandex-team.ru, Chromium-dev
Sounds right to me (but I didn't add it).

kuzne...@yandex-team.ru

unread,
Jun 26, 2018, 11:29:30 AM6/26/18
to Chromium-dev, kuzne...@yandex-team.ru
Thanks, I've missed the fact, that enable_resource_whitelist_generation is already set for official builds for android.
Reply all
Reply to author
Forward
0 new messages