Revert of Remove OneClickSigninHelper since it is no longer used. (patchset #5 id...
[chromium-blink-merge.git] / remoting / host / installer / linux / Makefile
blobf13662190438ee28424db990582d531fbb73d323
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.
8 SRC_DIR = ../../../..
9 BUILD_DIR = $(SRC_DIR)/out/Release
11 INSTALL_DIR = $(DESTDIR)/opt/google/chrome-remote-desktop
12 CRON_DIR = $(DESTDIR)/etc/cron.daily
13 NATIVE_MESSAGING_DIR = $(DESTDIR)/etc/opt/chrome/native-messaging-hosts
15 ME2ME_PROGNAME = $(BUILD_DIR)/remoting_me2me_host
16 ME2ME_DEBUGFILE = $(ME2ME_PROGNAME).debug
17 START_PROGNAME = $(BUILD_DIR)/remoting_start_host
18 START_DEBUGFILE = $(START_PROGNAME).debug
19 ME2ME_NM_PROGNAME = $(BUILD_DIR)/native_messaging_host
20 ME2ME_NM_DEBUGFILE = $(ME2ME_NM_PROGNAME).debug
21 REMOTE_ASSISTANCE_PROGNAME = $(BUILD_DIR)/remote_assistance_host
22 REMOTE_ASSISTANCE_DEBUGFILE = $(REMOTE_ASSISTANCE_PROGNAME).debug
24 all:
26 install:
27 install -d "$(INSTALL_DIR)"
28 install -d "$(INSTALL_DIR)/remoting_locales"
29 install -d "$(NATIVE_MESSAGING_DIR)"
30 install -d "$(CRON_DIR)"
32 install "$(SRC_DIR)/remoting/host/linux/linux_me2me_host.py" \
33 "$(INSTALL_DIR)/chrome-remote-desktop"
34 install "$(SRC_DIR)/remoting/host/installer/linux/is-remoting-session" \
35 "$(INSTALL_DIR)"
37 install -m 0644 \
38 "$(BUILD_DIR)/remoting/com.google.chrome.remote_desktop.json" \
39 "$(NATIVE_MESSAGING_DIR)/com.google.chrome.remote_desktop.json"
41 install -m 0644 \
42 "$(BUILD_DIR)/remoting/com.google.chrome.remote_assistance.json" \
43 "$(NATIVE_MESSAGING_DIR)/com.google.chrome.remote_assistance.json"
45 eu-strip -f "$(ME2ME_DEBUGFILE)" "$(ME2ME_PROGNAME)"
46 install "$(ME2ME_PROGNAME)" \
47 "$(INSTALL_DIR)/chrome-remote-desktop-host"
49 eu-strip -f "$(START_DEBUGFILE)" "$(START_PROGNAME)"
50 install "$(START_PROGNAME)" "$(INSTALL_DIR)/start-host"
52 eu-strip -f "$(ME2ME_NM_DEBUGFILE)" "$(ME2ME_NM_PROGNAME)"
53 install "$(ME2ME_NM_PROGNAME)" "$(INSTALL_DIR)/native-messaging-host"
55 eu-strip -f "$(REMOTE_ASSISTANCE_DEBUGFILE)" \
56 "$(REMOTE_ASSISTANCE_PROGNAME)"
57 install "$(REMOTE_ASSISTANCE_PROGNAME)" \
58 "$(INSTALL_DIR)/remote-assistance-host"
60 install -m 0644 \
61 "$(BUILD_DIR)/icudtl.dat" "$(INSTALL_DIR)/icudtl.dat"
63 for locale in $$(ls $(BUILD_DIR)/remoting_locales); do \
64 install "$(BUILD_DIR)/remoting_locales/$$locale" \
65 "$(INSTALL_DIR)/remoting_locales/$$locale"; \
66 done
68 install $(BUILD_DIR)/remoting/installer/cron/chrome-remote-desktop \
69 "$(CRON_DIR)/chrome-remote-desktop"