2009-06-09 02:35:39 +02:00
|
|
|
# Copyright 2009 The Android Open Source Project
|
2016-10-04 00:26:06 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2009-06-09 02:35:39 +02:00
|
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
edify_src_files := \
|
2016-10-04 00:26:06 +02:00
|
|
|
lexer.ll \
|
|
|
|
parser.yy \
|
|
|
|
expr.cpp
|
2009-06-09 02:35:39 +02:00
|
|
|
|
|
|
|
#
|
2016-10-04 00:26:06 +02:00
|
|
|
# Build the host-side command line tool (host executable)
|
2009-06-09 02:35:39 +02:00
|
|
|
#
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2016-10-04 00:26:06 +02:00
|
|
|
$(edify_src_files) \
|
|
|
|
edify_parser.cpp
|
2009-06-09 02:35:39 +02:00
|
|
|
|
2016-09-28 20:42:17 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2015-08-20 21:10:46 +02:00
|
|
|
LOCAL_CPPFLAGS := -g -O0
|
2016-10-04 00:26:06 +02:00
|
|
|
LOCAL_MODULE := edify_parser
|
2009-06-09 02:35:39 +02:00
|
|
|
LOCAL_YACCFLAGS := -v
|
2015-08-08 02:24:49 +02:00
|
|
|
LOCAL_CPPFLAGS += -Wno-unused-parameter
|
2015-08-20 21:10:46 +02:00
|
|
|
LOCAL_CPPFLAGS += -Wno-deprecated-register
|
2015-06-03 19:49:29 +02:00
|
|
|
LOCAL_CLANG := true
|
2016-04-30 20:49:59 +02:00
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
|
|
|
|
LOCAL_STATIC_LIBRARIES += libbase
|
2009-06-09 02:35:39 +02:00
|
|
|
|
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|
|
|
|
|
2009-06-10 23:11:53 +02:00
|
|
|
#
|
2016-10-04 00:26:06 +02:00
|
|
|
# Build the device-side library (static library)
|
2009-06-10 23:11:53 +02:00
|
|
|
#
|
|
|
|
include $(CLEAR_VARS)
|
2009-06-09 02:35:39 +02:00
|
|
|
|
2009-06-10 23:11:53 +02:00
|
|
|
LOCAL_SRC_FILES := $(edify_src_files)
|
2009-06-09 02:35:39 +02:00
|
|
|
|
2016-09-28 20:42:17 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2015-08-20 21:10:46 +02:00
|
|
|
LOCAL_CPPFLAGS := -Wno-unused-parameter
|
|
|
|
LOCAL_CPPFLAGS += -Wno-deprecated-register
|
2009-06-10 23:11:53 +02:00
|
|
|
LOCAL_MODULE := libedify
|
2015-06-03 19:49:29 +02:00
|
|
|
LOCAL_CLANG := true
|
2016-04-30 20:49:59 +02:00
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
|
|
|
|
LOCAL_STATIC_LIBRARIES += libbase
|
2009-06-09 02:35:39 +02:00
|
|
|
|
2009-06-10 23:11:53 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|