diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-11-17 14:52:12 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-11-17 14:52:12 -0800 |
commit | 4116c9fbd539423ce6226310384e6cd0c7a3f72f (patch) | |
tree | 14adcff6fdb38e72cb9c86b4531e2f72edd7f77d | |
parent | b4c553419fdd3753c393e9323b7e2fb1d52bf0c5 (diff) | |
parent | fc097b28c9d2093cd35f2508cd1b4ebc6b68a4f9 (diff) | |
download | libutf-4116c9fbd539423ce6226310384e6cd0c7a3f72f.tar.gz |
Convert libutf to Android.bp am: 7d29531067 am: 6001b75f8d
am: fc097b28c9
Change-Id: Id176036e4d4882fa84a529441dd078e601b66261
-rw-r--r-- | Android.bp | 40 | ||||
-rw-r--r-- | Android.mk | 37 |
2 files changed, 40 insertions, 37 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..ccf4cee --- /dev/null +++ b/Android.bp @@ -0,0 +1,40 @@ +// We only build the static library at the moment. +cc_library_static { + name: "libutf", + srcs: [ + "rune.c", + "runestrcat.c", + "runestrchr.c", + "runestrcmp.c", + "runestrcpy.c", + "runestrdup.c", + "runestrlen.c", + "runestrecpy.c", + "runestrncat.c", + "runestrncmp.c", + "runestrncpy.c", + "runestrrchr.c", + "runestrstr.c", + "runetype.c", + "utfecpy.c", + "utflen.c", + "utfnlen.c", + "utfrrune.c", + "utfrune.c", + "utfutf.c", + ], + cflags: [ + "-O3", + "-Wall", + "-Wno-missing-braces", + "-Wno-parentheses", + "-Wno-switch", + ], + export_include_dirs: ["."], + arch: { + arm: { + instruction_set: "arm", + }, + }, + sdk_version: "14", +} diff --git a/Android.mk b/Android.mk deleted file mode 100644 index 887a1ab..0000000 --- a/Android.mk +++ /dev/null @@ -1,37 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -utf_src := \ - rune.c \ - runestrcat.c \ - runestrchr.c \ - runestrcmp.c \ - runestrcpy.c \ - runestrdup.c \ - runestrlen.c \ - runestrecpy.c \ - runestrncat.c \ - runestrncmp.c \ - runestrncpy.c \ - runestrrchr.c \ - runestrstr.c \ - runetype.c \ - utfecpy.c \ - utflen.c \ - utfnlen.c \ - utfrrune.c \ - utfrune.c \ - utfutf.c - -utf_cflags := -Wall -Wno-missing-braces -Wno-parentheses -Wno-switch - -# We only build the static library at the moment. -include $(CLEAR_VARS) - -LOCAL_MODULE := libutf -LOCAL_SRC_FILES := $(utf_src) -LOCAL_CFLAGS += -O3 $(utf_cflags) -LOCAL_ARM_MODE := arm -LOCAL_SDK_VERSION := 14 - -include $(BUILD_STATIC_LIBRARY) - |