blob: fbf2b1b061d1ca435ae34e66fe9f9f15f8abffba [file] [log] [blame]
Doug Zongker37bee622009-06-08 17:35:39 -07001# Copyright 2009 The Android Open Source Project
Tao Baod770d2e2016-10-03 15:26:06 -07002#
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.
Doug Zongker37bee622009-06-08 17:35:39 -070014
15LOCAL_PATH := $(call my-dir)
16
17edify_src_files := \
Tao Baod770d2e2016-10-03 15:26:06 -070018 lexer.ll \
19 parser.yy \
20 expr.cpp
Doug Zongker37bee622009-06-08 17:35:39 -070021
22#
Tao Baod770d2e2016-10-03 15:26:06 -070023# Build the device-side library (static library)
Doug Zongker9931f7f2009-06-10 14:11:53 -070024#
25include $(CLEAR_VARS)
Doug Zongker37bee622009-06-08 17:35:39 -070026
Doug Zongker9931f7f2009-06-10 14:11:53 -070027LOCAL_SRC_FILES := $(edify_src_files)
Doug Zongker37bee622009-06-08 17:35:39 -070028
Tianjie Xuc7cd9182017-08-29 12:06:02 -070029LOCAL_CFLAGS := -Wall -Werror
Tao Bao2a5a49d2015-08-20 12:10:46 -070030LOCAL_CPPFLAGS := -Wno-unused-parameter
31LOCAL_CPPFLAGS += -Wno-deprecated-register
Doug Zongker9931f7f2009-06-10 14:11:53 -070032LOCAL_MODULE := libedify
Tao Bao26436d62017-10-05 17:16:31 +000033LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
34LOCAL_STATIC_LIBRARIES += libbase
Doug Zongker37bee622009-06-08 17:35:39 -070035
Doug Zongker9931f7f2009-06-10 14:11:53 -070036include $(BUILD_STATIC_LIBRARY)
Tao Bao38d78d12017-10-09 11:03:38 -070037
38#
39# Build the host-side library (static library)
40#
41include $(CLEAR_VARS)
42
43LOCAL_SRC_FILES := $(edify_src_files)
44
45LOCAL_CFLAGS := -Wall -Werror
46LOCAL_CPPFLAGS := -Wno-unused-parameter
47LOCAL_CPPFLAGS += -Wno-deprecated-register
48LOCAL_MODULE := libedify
49LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
50LOCAL_STATIC_LIBRARIES += libbase
51
52include $(BUILD_HOST_STATIC_LIBRARY)