Revision 27561

View differences:

branches/v2_0_0_prep/build/buildman/bin/bmplugins/DepManPlugIn.py
39 39
			self._oscompiler="vs8"
40 40
			self._osdistribution,null,null,null,null = sys.getwindowsversion()
41 41

  
42
		self._getDepManPath = False
43

  
42 44
	def init(self):
43
		pass
45
		self.addGoal("depman", "depman information plugin")
46
		self.addGoalOption("depman","--depman-path", "returns depman path")
47
		isDepman = False
48
		if self._arguments.read("depman"):
49
			self.setExecute(True)
50
			isDepman = True 
44 51
	
52
		if not isDepman:
53
			return
54

  
55
		if self._arguments.read("--depman-path"):
56
			self._getDepManPath = True
57

  
45 58
	def initFromXML(self,node):
46 59
		pass
47 60

  
48 61
	def execute(self):
49
		pass
62
		if self._getDepManPath:
63
			print self.getDepManPath()
50 64

  
51 65
	def getSupportedPlatforms(self):
52 66
		return self._supportedPlatforms
branches/v2_0_0_prep/build/scripts/utilities.xml
82 82
	<macrodef name="cmake">
83 83
		<attribute name="install-dependencies" default="OFF"/>
84 84
		<attribute name="cmake-build-type" default="Release"/>
85
		<attribute name="args" default=""/>
85 86
	   <sequential>
86 87
			<mkdir dir="${target}" />
88
			<delete file="${target}/CMakeCache.txt"/>
87 89
	        <exec dir="${target}" executable="${cmakeExe}" failonerror="true" os="${unixOS}">
88 90
    	        <arg value="-GUnix Makefiles" />
89 91
        	    <arg value="-DCMAKE_BUILD_TYPE=@{cmake-build-type}" />
90 92
            	<arg value="-DINSTALL_DEPENDENCIES=@{install-dependencies}"/>
93
            	<arg line="@{args}"/>
91 94
	            <arg value="../../" />
92 95
    	    </exec>
93 96
	        <exec dir="${target}" executable="${cmakeExe}" failonerror="true" os="windows">
94 97
    	        <arg value="-GNMake Makefiles" />
95 98
        	    <arg value="-DCMAKE_BUILD_TYPE=@{cmake-build-type}" />
96 99
            	<arg value="-DINSTALL_DEPENDENCIES=@{install-dependencies}"/>
100
            	<arg line="@{args}"/>
97 101
	            <arg value="../../" />
98 102
    	    </exec>
99 103
		</sequential>
branches/v2_0_0_prep/build/CMakeModules/FindDepMan.cmake
4 4
	~/.depman
5 5
	/Developer/DepMan
6 6
	/DepMan
7
	$ENV{USERPROFILE}/DepMan
7
	$ENV{USERPROFILE}/.depman
8 8
    NO_DEFAULT_PATH
9 9
)
10 10

  

Also available in: Unified diff