| Daniel Erat | 35f6587 | 2015-08-17 20:59:29 -0600 | [diff] [blame] | 1 | # |
| 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 | |
| 17 | webservd_root := $(my-dir) |
| 18 | |
| 19 | # Definitions applying to all targets. $(eval) this last. |
| 20 | define webservd_common |
| 21 | LOCAL_CPP_EXTENSION := .cc |
| 22 | LOCAL_RTTI_FLAG := -frtti |
| 23 | LOCAL_CFLAGS += \ |
| Daniel Erat | 35f6587 | 2015-08-17 20:59:29 -0600 | [diff] [blame] | 24 | -Wno-missing-field-initializers \ |
| 25 | -Wno-unused-parameter \ |
| 26 | |
| Alex Vakulenko | 7dee8db | 2015-10-27 11:47:54 -0700 | [diff] [blame^] | 27 | # libbrillo's secure_blob.h calls "using Blob::vector" to expose its base |
| Daniel Erat | 35f6587 | 2015-08-17 20:59:29 -0600 | [diff] [blame] | 28 | # class's constructors. This causes a "conflicts with version inherited from |
| 29 | # 'std::__1::vector<unsigned char>'" error when building with GCC. |
| 30 | LOCAL_CLANG := true |
| 31 | |
| Daniel Erat | 35f6587 | 2015-08-17 20:59:29 -0600 | [diff] [blame] | 32 | LOCAL_C_INCLUDES += \ |
| 33 | $(webservd_root) \ |
| Daniel Erat | 35f6587 | 2015-08-17 20:59:29 -0600 | [diff] [blame] | 34 | external/gtest/include \ |
| 35 | |
| 36 | LOCAL_SHARED_LIBRARIES += \ |
| Alex Vakulenko | 7dee8db | 2015-10-27 11:47:54 -0700 | [diff] [blame^] | 37 | libbrillo \ |
| 38 | libbrillo-dbus \ |
| 39 | libbrillo-http \ |
| 40 | libbrillo-stream \ |
| Daniel Erat | 35f6587 | 2015-08-17 20:59:29 -0600 | [diff] [blame] | 41 | libchrome \ |
| 42 | libchrome-dbus \ |
| Daniel Erat | 35f6587 | 2015-08-17 20:59:29 -0600 | [diff] [blame] | 43 | libdbus \ |
| 44 | libmicrohttpd \ |
| 45 | |
| 46 | endef |
| 47 | |
| 48 | include $(call all-subdir-makefiles) |