1// Copyright (C) 2020 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15/** 16 To run on host, 17 m icu4c_sample_break && ANDROID_DATA=$ANDROID_HOST_OUT \ 18 ANDROID_TZDATA_ROOT=$ANDROID_HOST_OUT/com.android.tzdata/ \ 19 ANDROID_I18N_ROOT=$ANDROID_HOST_OUT/com.android.i18n/ \ 20 $ANDROID_HOST_OUT/nativetest/icu4c_sample_break/icu4c_sample_break 21 22 To run on device, 23 m icu4c_sample_break && adb push $ANDROID_PRODUCT_OUT/data/nativetest/icu4c_sample_break/icu4c_sample_break \ 24 /data/local/tmp/ && adb shell /data/local/tmp/icu4c_sample_break 25 26*/ 27package { 28 // See: http://go/android-license-faq 29 // A large-scale-change added 'default_applicable_licenses' to import 30 // all of the 'license_kinds' from "external_icu_icu4c_license" 31 // to get the below license kinds: 32 // SPDX-license-identifier-Unicode-DFS 33 default_applicable_licenses: ["external_icu_icu4c_license"], 34} 35 36cc_test { 37 name: "icu4c_sample_break", 38 host_supported: true, 39 srcs: [ 40 "break.cpp", 41 "ubreak.c", 42 ], 43 shared_libs: ["libicuuc"], 44 cflags: [ 45 "-DANDROID_LINK_SHARED_ICU4C", 46 ], 47 gtest: false, 48} 49