| Raphael Moll | d9b2cbd | 2012-01-25 13:33:57 -0800 | [diff] [blame] | 1 | # Copyright 2012 The Android Open Source Project | 
|  | 2 |  | 
| Raphael Moll | f4a3613 | 2012-03-23 11:30:57 -0700 | [diff] [blame] | 3 | #LOCAL_PATH := $(call my-dir) | 
|  | 4 | #include $(CLEAR_VARS) | 
|  | 5 | # | 
|  | 6 | #LOCAL_MODULE := monitor | 
|  | 7 | #LOCAL_MODULE_CLASS := EXECUTABLES | 
|  | 8 | #LOCAL_MODULE_TAGS := optional | 
|  | 9 | #LOCAL_IS_HOST_MODULE := true | 
|  | 10 | #include $(BUILD_SYSTEM)/base_rules.mk | 
|  | 11 | # | 
|  | 12 | #RCP_MONITOR_DIR := $(TOPDIR)out/host/eclipse/rcp/build/I.RcpBuild | 
|  | 13 | # | 
|  | 14 | #define mk-rcp-monitor-atree-file | 
|  | 15 | #    srczip=$(RCP_MONITOR_DIR)/RcpBuild-$(1).$(2).zip && \ | 
|  | 16 | #    dstdir=$(HOST_OUT)/eclipse/monitor-$(1).$(2) && \ | 
|  | 17 | #    rm -rf $(V) $$dstdir && \ | 
|  | 18 | #    mkdir -p $$dstdir && \ | 
|  | 19 | #    unzip -q $$srczip -d $$dstdir | 
|  | 20 | #endef | 
|  | 21 | # | 
|  | 22 | ## The RCP monitor. It is referenced by build/target/products/sdk.mk | 
|  | 23 | #$(LOCAL_BUILT_MODULE) : $(TOPDIR)sdk/eclipse/scripts/rcp/monitor \ | 
|  | 24 | #			$(TOPDIR)sdk/eclipse/scripts/rcp/build.xml \ | 
|  | 25 | #			$(TOPDIR)sdk/eclipse/scripts/rcp/build.properties \ | 
|  | 26 | #			$(shell $(TOPDIR)sdk/eclipse/scripts/create_all_symlinks.sh -d) | 
|  | 27 | #	@mkdir -p $(dir $@) | 
|  | 28 | #	$(hide)$(TOPDIR)sdk/eclipse/scripts/create_all_symlinks.sh -c | 
|  | 29 | #	$(hide)cd $(TOPDIR)sdk/eclipse/scripts/rcp && ant -DbuildFor=$(HOST_OS) | 
|  | 30 | #	$(hide)cp $(V) $(TOPDIR)sdk/eclipse/scripts/rcp/monitor $@ | 
|  | 31 | #	$(hide)if [[ $(HOST_OS) == "linux" ]]; then \ | 
|  | 32 | #		$(call mk-rcp-monitor-atree-file,linux.gtk,x86)    ; \ | 
|  | 33 | #		$(call mk-rcp-monitor-atree-file,linux.gtk,x86_64) ; \ | 
|  | 34 | #	fi | 
|  | 35 | #	$(hide)if [[ $(HOST_OS) == "darwin" ]]; then \ | 
|  | 36 | #		$(call mk-rcp-monitor-atree-file,macosx.cocoa,x86_64) ; \ | 
|  | 37 | #	fi | 
|  | 38 | #	$(hide)if [[ $(HOST_OS) == "windows" ]]; then \ | 
|  | 39 | #		$(call mk-rcp-monitor-atree-file,win32.win32,x86)    ; \ | 
|  | 40 | #		$(call mk-rcp-monitor-atree-file,win32.win32,x86_64) ; \ | 
|  | 41 | #	fi |