- add sources.
[platform/framework/web/crosswalk.git] / src / remoting / host / installer / linux / Makefile
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
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
21
22 all:
23
24 install:
25         install -d "$(INSTALL_DIR)"
26         install -d "$(CHROME_MANIFEST_DIR)"
27
28         install "$(TOOLS)/me2me_virtual_host.py" \
29           "$(INSTALL_DIR)/chrome-remote-desktop"
30         install "$(TOOLS)/is-remoting-session" "$(INSTALL_DIR)"
31
32         install "$(RELEASE)/remoting/com.google.chrome.remote_desktop.json" \
33           -m 0644 "$(CHROME_MANIFEST_DIR)"
34
35         eu-strip -f "$(ME2ME_DEBUGFILE)" "$(ME2ME_PROGNAME)"
36         install "$(ME2ME_PROGNAME)" \
37           "$(INSTALL_DIR)/chrome-remote-desktop-host"
38
39         eu-strip -f "$(START_DEBUGFILE)" "$(START_PROGNAME)"
40         install "$(START_PROGNAME)" "$(INSTALL_DIR)/start-host"
41
42         eu-strip -f "$(NM_DEBUGFILE)" "$(NM_PROGNAME)"
43         install "$(NM_PROGNAME)" "$(INSTALL_DIR)/native-messaging-host"