diff options
author | Etan Cohen <etancohen@google.com> | 2014-08-20 10:11:11 -0700 |
---|---|---|
committer | Etan Cohen <etancohen@google.com> | 2014-08-20 10:11:11 -0700 |
commit | 7ef855e462b9a18b7d330e4b40f350164a6ad9da (patch) | |
tree | a43d91fcc4567b75966b901f2c1dbe7581a930e0 /Android.mk | |
parent | 430f996db620d94da8042d70c61e137175687693 (diff) | |
download | nanopb-c-lollipop-mr1-release.tar.gz |
Initial check-in of nanopb-c.android-wear-5.1.1_r1android-wear-5.1.0_r1android-wear-5.0.0_r1android-cts-5.1_r9android-cts-5.1_r8android-cts-5.1_r7android-cts-5.1_r6android-cts-5.1_r5android-cts-5.1_r4android-cts-5.1_r3android-cts-5.1_r28android-cts-5.1_r27android-cts-5.1_r26android-cts-5.1_r25android-cts-5.1_r24android-cts-5.1_r23android-cts-5.1_r22android-cts-5.1_r21android-cts-5.1_r20android-cts-5.1_r2android-cts-5.1_r19android-cts-5.1_r18android-cts-5.1_r17android-cts-5.1_r16android-cts-5.1_r15android-cts-5.1_r14android-cts-5.1_r13android-cts-5.1_r10android-cts-5.1_r1android-cts-5.0_r9android-cts-5.0_r8android-cts-5.0_r7android-cts-5.0_r6android-cts-5.0_r5android-cts-5.0_r4android-cts-5.0_r3android-5.1.1_r9android-5.1.1_r8android-5.1.1_r7android-5.1.1_r6android-5.1.1_r5android-5.1.1_r4android-5.1.1_r38android-5.1.1_r37android-5.1.1_r36android-5.1.1_r35android-5.1.1_r34android-5.1.1_r33android-5.1.1_r30android-5.1.1_r3android-5.1.1_r29android-5.1.1_r28android-5.1.1_r26android-5.1.1_r25android-5.1.1_r24android-5.1.1_r23android-5.1.1_r22android-5.1.1_r20android-5.1.1_r2android-5.1.1_r19android-5.1.1_r18android-5.1.1_r17android-5.1.1_r16android-5.1.1_r15android-5.1.1_r14android-5.1.1_r13android-5.1.1_r12android-5.1.1_r10android-5.1.1_r1android-5.1.0_r5android-5.1.0_r4android-5.1.0_r3android-5.1.0_r1android-5.0.2_r3android-5.0.2_r1android-5.0.1_r1android-5.0.0_r7android-5.0.0_r6android-5.0.0_r5.1android-5.0.0_r5android-5.0.0_r4android-5.0.0_r3android-5.0.0_r2android-5.0.0_r1master-soonglollipop-wear-releaselollipop-releaselollipop-mr1-wfc-releaselollipop-mr1-releaselollipop-mr1-fi-releaselollipop-mr1-devlollipop-mr1-cts-releaselollipop-devlollipop-cts-release
Copied from klp-wireless-dev.
Change-Id: I7055708554a8a818edba8ce1da35d589b76c1621
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..2cb2b90 --- /dev/null +++ b/Android.mk @@ -0,0 +1,63 @@ +# Copyright (C) 2014 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# + +LOCAL_PATH := $(call my-dir) + +IGNORED_WARNINGS := -Wno-sign-compare -Wno-unused-parameter + +# nanopb_c library +# ======================================================= +nanopb_c_src_files := \ + pb_decode.c \ + pb_encode.c + +include $(CLEAR_VARS) + +LOCAL_MODULE := libnanopb-c-2.8.0 +LOCAL_MODULE_TAGS := optional +LOCAL_C_EXTENSION := .c +LOCAL_SRC_FILES := $(nanopb_c_src_files) +LOCAL_C_INCLUDES := \ + $(LOCAL_PATH)/ \ + +LOCAL_CFLAGS := $(IGNORED_WARNINGS) + +LOCAL_SDK_VERSION := 19 + +include $(BUILD_STATIC_LIBRARY) + +# nanopb_c library with PB_ENABLE_MALLOC enabled + +include $(CLEAR_VARS) + +LOCAL_MODULE := libnanopb-c-2.8.0-enable_malloc +LOCAL_MODULE_TAGS := optional +LOCAL_C_EXTENSION := .c +LOCAL_SRC_FILES := $(nanopb_c_src_files) +LOCAL_C_INCLUDES := \ + $(LOCAL_PATH)/ \ + +LOCAL_CFLAGS := $(IGNORED_WARNINGS) -DPB_ENABLE_MALLOC + +LOCAL_SDK_VERSION := 19 + +include $(BUILD_STATIC_LIBRARY) + +# ======================================================= + +# Clean temp vars +nanopb_c_src_files := + |