1481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# Copyright (c) 2016, Intel Corporation
2481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# All rights reserved.
3481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie#
4481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# Redistribution and use in source and binary forms, with or without modification,
5481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# are permitted provided that the following conditions are met:
6481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie#
7481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# 1. Redistributions of source code must retain the above copyright notice, this
8481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# list of conditions and the following disclaimer.
9481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie#
10481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# 2. Redistributions in binary form must reproduce the above copyright notice,
11481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# this list of conditions and the following disclaimer in the documentation and/or
12481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# other materials provided with the distribution.
13481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie#
14481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# 3. Neither the name of the copyright holder nor the names of its contributors
15481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# may be used to endorse or promote products derived from this software without
16481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# specific prior written permission.
17481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie#
18481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
22481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie
29481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffieifeq ($(LOCAL_IS_HOST_MODULE),true)
30481587bdf35ee618daf7d0d55aeba9023052ad36François GaffieSUFFIX := _host
31481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffieelse
32481587bdf35ee618daf7d0d55aeba9023052ad36François GaffieSUFFIX :=
33481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffieendif
34481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie
35c599aa5fada664c56f4330a0e05af4e54971534fDi Folco, NeilLOCAL_MODULE := remote-process$(SUFFIX)
36481587bdf35ee618daf7d0d55aeba9023052ad36François GaffieLOCAL_MODULE_CLASS := EXECUTABLES
37481587bdf35ee618daf7d0d55aeba9023052ad36François GaffieLOCAL_SRC_FILES := upstream/remote-process/main.cpp
38481587bdf35ee618daf7d0d55aeba9023052ad36François GaffieLOCAL_C_INCLUDES := \
39481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie    $(LOCAL_PATH)/upstream/utility/ \
40481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie    $(LOCAL_PATH)/support/android/asio
41481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie
42481587bdf35ee618daf7d0d55aeba9023052ad36François GaffieLOCAL_CFLAGS := \
43c599aa5fada664c56f4330a0e05af4e54971534fDi Folco, Neil    -frtti -fexceptions \
44c599aa5fada664c56f4330a0e05af4e54971534fDi Folco, Neil    -isystem $(LOCAL_PATH)/asio/include
45481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie
46c599aa5fada664c56f4330a0e05af4e54971534fDi Folco, NeilLOCAL_SHARED_LIBRARIES := libremote-processor$(PFW_NETWORKING_SUFFIX)$(SUFFIX)
47481587bdf35ee618daf7d0d55aeba9023052ad36François Gaffie
48c599aa5fada664c56f4330a0e05af4e54971534fDi Folco, NeilLOCAL_CLANG := true
49