1/* 2 * Copyright 2018 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17cc_library_headers { 18 name: "philox_random_headers", 19 host_supported: false, 20 vendor_available: true, 21 export_include_dirs: ["."], 22 apex_available: [ 23 "//apex_available:platform", 24 "com.android.neuralnetworks", 25 "test_com.android.neuralnetworks", 26 ], 27} 28 29cc_library_static { 30 name: "philox_random", 31 host_supported: false, 32 vendor_available: true, 33 apex_available: [ 34 "//apex_available:platform", 35 "com.android.neuralnetworks", 36 "test_com.android.neuralnetworks", 37 ], 38 srcs: [ 39 "guarded_philox_random.cc", 40 "random.cc", 41 "simple_philox.cc", 42 ], 43 cflags: [ 44 "-DLOG_TAG=\"Random\"", 45 "-Wno-invalid-partial-specialization", 46 "-Wno-unused-parameter", 47 ], 48 header_libs: [ 49 "libeigen", 50 "philox_random_headers", 51 "tensorflow_headers", 52 ], 53 shared_libs: [ 54 "libbase", 55 ], 56} 57