blob: eb308865de096ceb7407fe4b7e4afd4310139f8d [file] [log] [blame]
keunyounge18e25d2015-08-28 15:57:19 -07001# Copyright (C) 2015 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#
16LOCAL_PATH:= $(call my-dir)
17
18include $(CLEAR_VARS)
19
20LOCAL_SRC_FILES := $(call all-proto-files-under, .)
21
22LOCAL_SHARED_LIBRARIES := \
23 libprotobuf-cpp-lite
24
25LOCAL_PROTOC_OPTIMIZE_TYPE := lite
26
27LOCAL_MODULE := libvehiclenetworkproto-native
28LOCAL_MODULE_CLASS := STATIC_LIBRARIES
29
30LOCAL_MODULE_TAGS := optional
31
32LOCAL_STRIP_MODULE := keep_symbols
33
34generated_sources_dir := $(call local-generated-sources-dir)
35LOCAL_EXPORT_C_INCLUDE_DIRS := \
36 $(generated_sources_dir)/proto/packages/services/Car/libvehiclenetwork/proto/
37
38include $(BUILD_STATIC_LIBRARY)
39
40# =======================================================
41
42include $(CLEAR_VARS)
43
44LOCAL_SRC_FILES := $(call all-proto-files-under, .)
45
46LOCAL_PROTOC_OPTIMIZE_TYPE := lite
47
48LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)
49
50LOCAL_MODULE := libvehiclenetworkproto-java
51
52LOCAL_MODULE_TAGS := optional
53
54include $(BUILD_STATIC_JAVA_LIBRARY)