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. 4 5 # This Makefile is used by debhelper, which supplies the appropriate value of 6 # variables not defined here, such as DESTDIR. 7 8 SRC = ../../../.. 9 TOOLS = $(SRC)/remoting/tools 10 RELEASE = $(SRC)/out/Release 11 12 INSTALL_DIR = $(DESTDIR)/opt/google/chrome-remote-desktop 13 CHROME_MANIFEST_DIR = $(DESTDIR)/etc/opt/chrome/native-messaging-hosts 14 MANIFEST = $(CHROME_MANIFEST_DIR)/com.google.chrome.remote_desktop.json 15 16 ME2ME_PROGNAME = $(RELEASE)/remoting_me2me_host 17 ME2ME_DEBUGFILE = $(ME2ME_PROGNAME).debug 18 START_PROGNAME = $(RELEASE)/remoting_start_host 19 START_DEBUGFILE = $(START_PROGNAME).debug 20 NM_PROGNAME = $(RELEASE)/remoting_native_messaging_host 21 NM_DEBUGFILE = $(NM_PROGNAME).debug 22 23 all: 24 25 install: 26 install -d "$(INSTALL_DIR)" 27 install -d "$(CHROME_MANIFEST_DIR)" 28 29 install "$(TOOLS)/me2me_virtual_host.py" \ 30 "$(INSTALL_DIR)/chrome-remote-desktop" 31 install "$(TOOLS)/is-remoting-session" "$(INSTALL_DIR)" 32 33 install -T "$(RELEASE)/remoting/native_messaging_manifest.json" \ 34 -m 0644 "$(MANIFEST)" 35 36 eu-strip -f "$(ME2ME_DEBUGFILE)" "$(ME2ME_PROGNAME)" 37 install "$(ME2ME_PROGNAME)" \ 38 "$(INSTALL_DIR)/chrome-remote-desktop-host" 39 40 eu-strip -f "$(START_DEBUGFILE)" "$(START_PROGNAME)" 41 install "$(START_PROGNAME)" "$(INSTALL_DIR)/start-host" 42 43 eu-strip -f "$(NM_DEBUGFILE)" "$(NM_PROGNAME)" 44 install "$(NM_PROGNAME)" "$(INSTALL_DIR)/native-messaging-host" 45