lib/build-tool/build-system/qt.rb in build-tool-0.3.3 vs lib/build-tool/build-system/qt.rb in build-tool-0.4.0
- old
+ new
@@ -30,39 +30,10 @@
#
### METHODS
#
- def[]( var )
- if @options.has_key? var
- return @options[var]
- end
-
- case var
-
- when 'flags'
- return @options[var]
-
- else
- # *TODO* raise correct exception
- raise NotImplementedError
- end
- end
-
- def[]=( var, val )
- case var
-
- when 'flags'
- @options[var] = val
-
- else
- # *TODO* raise correct exception
- raise NotImplementedError
- end
-
- end
-
# Execute a cmake command in the context of the build directory
def _configure( command, wd = build_directory )
rc = self.class.execute "#{source_directory}/configure #{command}", wd, env
if rc != 0
raise QMakeError, "configure failed with error #{rc}!"
@@ -78,10 +49,10 @@
def configure
check_build_directory( true )
opt = ""
opt += " -prefix #{install_prefix.to_s} " if install_prefix
- opt += @options['flags']
+ opt += self['flags']
rc = _configure opt
rc
end
def do_make( target = nil )