diff options
author | luislavena <luislavena@19e92222-5c0b-0410-8929-a290d50e31e9> | 2007-02-12 18:50:57 +0000 |
---|---|---|
committer | luislavena <luislavena@19e92222-5c0b-0410-8929-a290d50e31e9> | 2007-02-12 18:50:57 +0000 |
commit | c13b91b91879505299dfd33803deca52f06d0379 (patch) | |
tree | 38b1e4222556070d05df7adf3352cc3033b616ca /projects/mongrel_service/Rakefile | |
parent | 35c3d1ed4c5d546e4fd0e3087158eb67f124bb30 (diff) | |
download | unicorn-c13b91b91879505299dfd33803deca52f06d0379.tar.gz |
Small corrections to Rakefile and freebasic Rake support. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@521 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'projects/mongrel_service/Rakefile')
-rw-r--r-- | projects/mongrel_service/Rakefile | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/projects/mongrel_service/Rakefile b/projects/mongrel_service/Rakefile index f1e9921..0f6ed92 100644 --- a/projects/mongrel_service/Rakefile +++ b/projects/mongrel_service/Rakefile @@ -1,3 +1,26 @@ +#--
+# Copyright (c) 2006-2007 Luis Lavena, Multimedia systems
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#++
+
require 'rake'
require 'rake/testtask'
require 'rake/clean'
@@ -22,6 +45,13 @@ GEM_NAME = "mongrel_service" desc "Compile native code"
task :compile => [:native_lib, :native_service]
+# global options shared by all the project in this Rakefile
+OPTIONS = { :debug => false, :profile => false, :errorchecking => :ex, :mt => true }
+
+OPTIONS[:debug] = true if ENV['DEBUG']
+OPTIONS[:profile] = true if ENV['PROFILE']
+OPTIONS[:errorchecking] = :exx if ENV['EXX']
+
# ServiceFB namespace (lib)
namespace :lib do
project_task 'servicefb' do
@@ -30,6 +60,8 @@ namespace :lib do define 'SERVICEFB_DEBUG_LOG' unless ENV['RELEASE']
source 'lib/ServiceFB/ServiceFB.bas'
+
+ option OPTIONS
end
project_task 'servicefb_utils' do
@@ -38,6 +70,8 @@ namespace :lib do define 'SERVICEFB_DEBUG_LOG' unless ENV['RELEASE']
source 'lib/ServiceFB/ServiceFB_Utils.bas'
+
+ option OPTIONS
end
end
# add lib namespace to global tasks
@@ -63,8 +97,9 @@ namespace :native do lib_path 'lib'
library 'ServiceFB', 'ServiceFB_Utils'
- # library 'send_signal'
library 'user32', 'advapi32', 'psapi'
+
+ option OPTIONS
end
end
#include_projects_of :native
|