summaryrefslogtreecommitdiff
path: root/chromium/third_party/android_ndk/BUILD.gn
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2023-02-16 11:16:36 +0100
committerMichal Klocek <michal.klocek@qt.io>2023-02-21 09:09:02 +0000
commiteb596ba9fe579987eb93f6b4021ca156885b48c2 (patch)
treedfe61631c2263cfe9f3fcd95e191e7a12eeb8d91 /chromium/third_party/android_ndk/BUILD.gn
parent6f9ba85ba9e84eb225ab8d4a6f0cb99e5dc61563 (diff)
downloadqtwebengine-chromium-upstream-master.tar.gz
Add android required resources for chromium repoupstream-master
Add android related file for build support. These are mainly missing pydeps, info and BUILD.gn files. New snapshot removes also .mailmap files. BASELINE: 108.0.5359.220 Note gn is left still behind upstream master snapshot and transport_security_state_static.json.gz is updated. Task-number: QTBUG-83459 Change-Id: I64a23bffbd1fe258f30a02338ae488b7d6d2c14b Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/392937 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/android_ndk/BUILD.gn')
-rw-r--r--chromium/third_party/android_ndk/BUILD.gn29
1 files changed, 29 insertions, 0 deletions
diff --git a/chromium/third_party/android_ndk/BUILD.gn b/chromium/third_party/android_ndk/BUILD.gn
new file mode 100644
index 00000000000..86691d42f97
--- /dev/null
+++ b/chromium/third_party/android_ndk/BUILD.gn
@@ -0,0 +1,29 @@
+# Copyright 2019 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+config("cpu_features_include") {
+ include_dirs = [ "sources/android/cpufeatures" ]
+}
+
+config("cpu_features_warnings") {
+ if (is_clang) {
+ # cpu-features.c has few unused functions on x86 b/26403333
+ cflags = [ "-Wno-unused-function" ]
+ }
+}
+
+source_set("cpu_features") {
+ sources = [
+ "sources/android/cpufeatures/cpu-features.c",
+ ]
+ public_configs = [ ":cpu_features_include" ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ "//build/config/compiler:no_chromium_code",
+
+ # Must be after no_chromium_code for warning flags to be ordered correctly.
+ ":cpu_features_warnings",
+ ]
+}