1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # This Makefile is used by debhelper, which supplies the appropriate value of
6 # variables not defined here, such as DESTDIR.
9 TOOLS = $(SRC)/remoting/tools
10 RELEASE = $(SRC)/out/Release
12 INSTALL_DIR = $(DESTDIR)/opt/google/chrome-remote-desktop
13 CHROME_MANIFEST_DIR = $(DESTDIR)/etc/opt/chrome/native-messaging-hosts
15 ME2ME_PROGNAME = $(RELEASE)/remoting_me2me_host
16 ME2ME_DEBUGFILE = $(ME2ME_PROGNAME).debug
17 START_PROGNAME = $(RELEASE)/remoting_start_host
18 START_DEBUGFILE = $(START_PROGNAME).debug
19 NM_PROGNAME = $(RELEASE)/remoting_native_messaging_host
20 NM_DEBUGFILE = $(NM_PROGNAME).debug
25 install -d "$(INSTALL_DIR)"
26 install -d "$(CHROME_MANIFEST_DIR)"
28 install "$(TOOLS)/me2me_virtual_host.py" \
29 "$(INSTALL_DIR)/chrome-remote-desktop"
30 install "$(TOOLS)/is-remoting-session" "$(INSTALL_DIR)"
32 install "$(RELEASE)/remoting/com.google.chrome.remote_desktop.json" \
33 -m 0644 "$(CHROME_MANIFEST_DIR)"
35 eu-strip -f "$(ME2ME_DEBUGFILE)" "$(ME2ME_PROGNAME)"
36 install "$(ME2ME_PROGNAME)" \
37 "$(INSTALL_DIR)/chrome-remote-desktop-host"
39 eu-strip -f "$(START_DEBUGFILE)" "$(START_PROGNAME)"
40 install "$(START_PROGNAME)" "$(INSTALL_DIR)/start-host"
42 eu-strip -f "$(NM_DEBUGFILE)" "$(NM_PROGNAME)"
43 install "$(NM_PROGNAME)" "$(INSTALL_DIR)/native-messaging-host"