xref: /aosp_15_r20/external/ksp/benchmark/TachiyomiExhaustive/build.sh (revision af87fb4bb8e3042070d2a054e912924f599b22b7)
1*af87fb4bSXin Li#!/bin/bash
2*af87fb4bSXin Li
3*af87fb4bSXin Li# Copyright 2022 Google LLC
4*af87fb4bSXin Li#
5*af87fb4bSXin Li# Licensed under the Apache License, Version 2.0 (the "License");
6*af87fb4bSXin Li# you may not use this file except in compliance with the License.
7*af87fb4bSXin Li# You may obtain a copy of the License at
8*af87fb4bSXin Li#
9*af87fb4bSXin Li# http://www.apache.org/licenses/LICENSE-2.0
10*af87fb4bSXin Li#
11*af87fb4bSXin Li# Unless required by applicable law or agreed to in writing, software
12*af87fb4bSXin Li# distributed under the License is distributed on an "AS IS" BASIS,
13*af87fb4bSXin Li# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*af87fb4bSXin Li# See the License for the specific language governing permissions and
15*af87fb4bSXin Li# limitations under the License.
16*af87fb4bSXin Li#
17*af87fb4bSXin Li
18*af87fb4bSXin Liset -e
19*af87fb4bSXin LiSCRIPT_DIR=$(dirname "$(realpath $0)")
20*af87fb4bSXin LiROOT=$SCRIPT_DIR/../..
21*af87fb4bSXin Licd $SCRIPT_DIR
22*af87fb4bSXin Lirm -rf tachiyomi
23*af87fb4bSXin Ligit clone https://github.com/inorichi/tachiyomi.git
24*af87fb4bSXin Licd tachiyomi
25*af87fb4bSXin Ligit checkout 938339690eecdfe309d83264b6a89aff3c767687
26*af87fb4bSXin Ligit apply $SCRIPT_DIR/tachi.patch
27*af87fb4bSXin Li./gradlew :app:copyDepsDevDebug
28*af87fb4bSXin Limkdir -p $SCRIPT_DIR/lib && cp app/build/output/devDebug/lib/* $SCRIPT_DIR/lib
29