blob: 76fec929cad76db2e42b4feee8f46a31f32f23b8 [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
Daniel Erat49dfd612015-08-18 15:56:23 -060017ifeq ($(HOST_OS),linux)
18
Daniel Erat35f65872015-08-17 20:59:29 -060019webservd_root := $(my-dir)
20
21# Definitions applying to all targets. $(eval) this last.
22define webservd_common
23 LOCAL_CPP_EXTENSION := .cc
24 LOCAL_RTTI_FLAG := -frtti
25 LOCAL_CFLAGS += \
26 -D__BRILLO__ \
27 -Wno-missing-field-initializers \
28 -Wno-unused-parameter \
29
30 # libchromeos's secure_blob.h calls "using Blob::vector" to expose its base
31 # class's constructors. This causes a "conflicts with version inherited from
32 # 'std::__1::vector<unsigned char>'" error when building with GCC.
33 LOCAL_CLANG := true
34
35 # TODO: Remove "gen" directory once D-Bus code generation is working.
36 LOCAL_C_INCLUDES += \
37 $(webservd_root) \
38 $(webservd_root)/gen \
39 external/gtest/include \
40
41 LOCAL_SHARED_LIBRARIES += \
42 libchrome \
43 libchrome-dbus \
44 libchromeos \
45 libchromeos-dbus \
46 libchromeos-http \
47 libdbus \
48 libmicrohttpd \
49
50endef
51
52include $(call all-subdir-makefiles)
Daniel Erat49dfd612015-08-18 15:56:23 -060053
54endif # HOST_OS == linux