Alistair Strachan | 60f8662 | 2018-03-22 17:37:55 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 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 | |
| 17 | cc_library_static { |
| 18 | name: "libLLVMSupport_subzero", |
| 19 | |
| 20 | defaults: [ "swiftshader_common_release" ], |
| 21 | |
| 22 | device_supported: false, |
| 23 | host_supported: true, |
| 24 | |
| 25 | cflags: [ |
| 26 | "-D_GNU_SOURCE", |
| 27 | "-D__STDC_LIMIT_MACROS", |
| 28 | "-D__STDC_CONSTANT_MACROS", |
| 29 | "-D__STDC_FORMAT_MACROS", |
| 30 | "-DLOG_TAG=\"libsubzero\"", |
Nicolas Capens | 7cfb50c | 2018-12-08 12:35:32 -0800 | [diff] [blame] | 31 | "-Wno-implicit-fallthrough", |
Alistair Strachan | 60f8662 | 2018-03-22 17:37:55 -0700 | [diff] [blame] | 32 | "-Wno-unused-parameter", |
| 33 | ], |
| 34 | |
| 35 | cppflags: [ |
| 36 | "-Wno-sign-promo", |
| 37 | ], |
| 38 | |
| 39 | srcs: [ |
| 40 | "lib/Demangle/ItaniumDemangle.cpp", |
| 41 | "lib/Support/APInt.cpp", |
| 42 | "lib/Support/Atomic.cpp", |
| 43 | "lib/Support/circular_raw_ostream.cpp", |
| 44 | "lib/Support/CommandLine.cpp", |
| 45 | "lib/Support/ConvertUTF.cpp", |
| 46 | "lib/Support/ConvertUTFWrapper.cpp", |
| 47 | "lib/Support/Debug.cpp", |
| 48 | "lib/Support/Errno.cpp", |
| 49 | "lib/Support/ErrorHandling.cpp", |
| 50 | "lib/Support/FoldingSet.cpp", |
| 51 | "lib/Support/Hashing.cpp", |
| 52 | "lib/Support/Host.cpp", |
| 53 | "lib/Support/ManagedStatic.cpp", |
| 54 | "lib/Support/MemoryBuffer.cpp", |
| 55 | "lib/Support/Mutex.cpp", |
| 56 | "lib/Support/NativeFormatting.cpp", |
| 57 | "lib/Support/Path.cpp", |
| 58 | "lib/Support/Process.cpp", |
| 59 | "lib/Support/Program.cpp", |
| 60 | "lib/Support/raw_os_ostream.cpp", |
| 61 | "lib/Support/raw_ostream.cpp", |
| 62 | "lib/Support/regcomp.c", |
| 63 | "lib/Support/regerror.c", |
| 64 | "lib/Support/Regex.cpp", |
| 65 | "lib/Support/regexec.c", |
| 66 | "lib/Support/regfree.c", |
| 67 | "lib/Support/regstrlcpy.c", |
| 68 | "lib/Support/Signals.cpp", |
| 69 | "lib/Support/SmallPtrSet.cpp", |
| 70 | "lib/Support/SmallVector.cpp", |
| 71 | "lib/Support/StringExtras.cpp", |
| 72 | "lib/Support/StringMap.cpp", |
| 73 | "lib/Support/StringRef.cpp", |
| 74 | "lib/Support/StringSaver.cpp", |
| 75 | "lib/Support/TargetParser.cpp", |
| 76 | "lib/Support/Threading.cpp", |
| 77 | "lib/Support/Timer.cpp", |
| 78 | "lib/Support/Triple.cpp", |
| 79 | "lib/Support/Twine.cpp", |
| 80 | ], |
| 81 | |
| 82 | export_include_dirs: [ |
| 83 | "build/Android/include", |
| 84 | "include", |
| 85 | ], |
| 86 | } |