Francois Gaffie | cee2d6b | 2013-12-13 11:08:51 +0100 | [diff] [blame] | 1 | # INTEL CONFIDENTIAL |
| 2 | # |
| 3 | # Copyright 2013 Intel Corporation All Rights Reserved. |
| 4 | # The source code contained or described herein and all documents |
| 5 | # related to the source code ("Material") are owned by Intel |
| 6 | # Corporation or its suppliers or licensors. Title to the Material |
| 7 | # remains with Intel Corporation or its suppliers and licensors. The |
| 8 | # Material contains trade secrets and proprietary and confidential |
| 9 | # information of Intel or its suppliers and licensors. The Material is |
| 10 | # protected by worldwide copyright and trade secret laws and treaty |
| 11 | # provisions. No part of the Material may be used, copied, reproduced, |
| 12 | # modified, published, uploaded, posted, transmitted, distributed, or |
| 13 | # disclosed in any way without Intel's prior express written permission. |
| 14 | # |
| 15 | # No license under any patent, copyright, trade secret or other |
| 16 | # intellectual property right is granted to or conferred upon you by |
| 17 | # disclosure or delivery of the Materials, either expressly, by |
| 18 | # implication, inducement, estoppel or otherwise. Any license under |
| 19 | # such intellectual property rights must be express and approved by |
| 20 | # Intel in writing. |
| 21 | |
Kevin Rocard | 6ac99e5 | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 22 | LOCAL_PATH := $(call my-dir) |
Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 23 | |
Kevin Rocard | b9e635e | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 24 | #################### |
| 25 | # Common definitions |
Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 26 | |
Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 27 | common_src_files := \ |
Kevin Rocard | ace81f8 | 2012-12-11 16:19:17 +0100 | [diff] [blame] | 28 | Tokenizer.cpp \ |
| 29 | Utility.cpp |
Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 30 | |
Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 31 | common_module := libutility |
| 32 | common_module_tags := optional |
Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 33 | |
Frédéric Boisnard | 11e31ae | 2013-08-06 19:23:46 +0200 | [diff] [blame] | 34 | common_cflags := \ |
| 35 | -Wall \ |
| 36 | -Werror \ |
| 37 | -Wextra \ |
| 38 | -Wno-unused-parameter |
| 39 | |
Kevin Rocard | b9e635e | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 40 | ############################# |
| 41 | # Target build |
Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 42 | |
Kevin Rocard | b9e635e | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 43 | include $(CLEAR_VARS) |
Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 44 | |
Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 45 | LOCAL_SRC_FILES := $(common_src_files) |
Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 46 | |
Francois Gaffie | cee2d6b | 2013-12-13 11:08:51 +0100 | [diff] [blame] | 47 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
| 48 | |
Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 49 | LOCAL_MODULE := $(common_module) |
| 50 | LOCAL_MODULE_TAGS := $(common_module_tags) |
Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 51 | |
Frédéric Boisnard | 11e31ae | 2013-08-06 19:23:46 +0200 | [diff] [blame] | 52 | LOCAL_CFLAGS := $(common_cflags) |
| 53 | |
Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 54 | LOCAL_C_INCLUDES += \ |
Chetan Rao | 55f41bc | 2013-04-29 11:53:42 +0300 | [diff] [blame] | 55 | $(call include-path-for, stlport) \ |
| 56 | bionic |
Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 57 | |
| 58 | include $(BUILD_STATIC_LIBRARY) |
| 59 | |
Kevin Rocard | b9e635e | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 60 | ############################## |
| 61 | # Host build |
| 62 | |
| 63 | include $(CLEAR_VARS) |
| 64 | |
Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 65 | LOCAL_SRC_FILES := $(common_src_files) |
Kevin Rocard | b9e635e | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 66 | |
Francois Gaffie | cee2d6b | 2013-12-13 11:08:51 +0100 | [diff] [blame] | 67 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
| 68 | |
Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 69 | LOCAL_MODULE := $(common_module)_host |
| 70 | LOCAL_MODULE_TAGS := $(common_module_tags) |
Kevin Rocard | b9e635e | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 71 | |
Frédéric Boisnard | 11e31ae | 2013-08-06 19:23:46 +0200 | [diff] [blame] | 72 | LOCAL_CFLAGS := $(common_cflags) |
| 73 | |
Kevin Rocard | b9e635e | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 74 | include $(BUILD_HOST_STATIC_LIBRARY) |