1#
2# Copyright 2016 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
17LOCAL_PATH := $(my-dir)
18
19# executable run in tests to validate that the webserver is
20# working correctly
21include $(CLEAR_VARS)
22LOCAL_MODULE := webservd_test_client
23
24# We want this executable installed for testing purposes, but only on brillo
25# images.
26ifdef BRILLO
27  LOCAL_MODULE_TAGS := debug
28endif
29
30LOCAL_INIT_RC := webservd_test_client.rc
31LOCAL_SRC_FILES := \
32    main.cc
33
34# Contrary to our own instructions, we're not going to include this last.
35# We're going define our own libraries and include paths as if we were actually
36# a client.
37$(eval $(webservd_common))
38
39LOCAL_C_INCLUDES :=
40LOCAL_SHARED_LIBRARIES := \
41    libbrillo \
42    libchrome \
43    libwebserv
44
45ifeq ($(system_webservd_use_dbus),true)
46LOCAL_SHARED_LIBRARIES += \
47    libdbus \
48    libbrillo-dbus \
49    libchrome-dbus
50endif
51
52ifeq ($(system_webservd_use_binder),true)
53LOCAL_SHARED_LIBRARIES += \
54    libbinder \
55    libbrillo-binder
56endif
57
58include $(BUILD_EXECUTABLE)
59