Index: device/battery/android/BUILD.gn |
diff --git a/third_party/instrumented_libraries/scripts/pulseaudio.sh b/device/battery/android/BUILD.gn |
old mode 100755 |
new mode 100644 |
similarity index 52% |
copy from third_party/instrumented_libraries/scripts/pulseaudio.sh |
copy to device/battery/android/BUILD.gn |
index da9aa667a349a51f9253fe4d6079a130979ae5e6..e612067d23c463b5879572baeefdca0bb2d83d81 |
--- a/third_party/instrumented_libraries/scripts/pulseaudio.sh |
+++ b/device/battery/android/BUILD.gn |
@@ -1,9 +1,10 @@ |
-#!/bin/bash |
# Copyright 2014 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. |
-# This script does some preparations before build of instrumented pulseaudio. |
+import("//build/config/android/config.gni") |
+import("//build/config/android/rules.gni") |
-# The configure script enforces FORTIFY_SOURCE=2, but we can't live with that. |
-sed -i "s/-D_FORTIFY_SOURCE=2/-U_FORTIFY_SOURCE/g" ./configure |
+generate_jar_jni("battery_jni_headers") { |
+ jni_package = "battery" |
+} |