blob: 4061825f0a4ac125871d19a5ae497d997621402f [file] [log] [blame]
Daniel Erat35f65872015-08-17 20:59:29 -06001#
2# Copyright 2015 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17webservd_root := $(my-dir)
18
19# Definitions applying to all targets. $(eval) this last.
20define webservd_common
21 LOCAL_CPP_EXTENSION := .cc
22 LOCAL_RTTI_FLAG := -frtti
23 LOCAL_CFLAGS += \
24 -D__BRILLO__ \
25 -Wno-missing-field-initializers \
26 -Wno-unused-parameter \
27
28 # libchromeos's secure_blob.h calls "using Blob::vector" to expose its base
29 # class's constructors. This causes a "conflicts with version inherited from
30 # 'std::__1::vector<unsigned char>'" error when building with GCC.
31 LOCAL_CLANG := true
32
33 # TODO: Remove "gen" directory once D-Bus code generation is working.
34 LOCAL_C_INCLUDES += \
35 $(webservd_root) \
36 $(webservd_root)/gen \
37 external/gtest/include \
38
39 LOCAL_SHARED_LIBRARIES += \
40 libchrome \
41 libchrome-dbus \
42 libchromeos \
43 libchromeos-dbus \
44 libchromeos-http \
45 libdbus \
46 libmicrohttpd \
47
48endef
49
50include $(call all-subdir-makefiles)