Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (48 sloc) 1.645 kb
46e3283 Hongli Lai Swtich to Rake as build system. Remove some unnecessary files that were ...
FooBarWidget authored
1 # kate: syntax ruby
bd6e3b4 Hongli Lai Insert GPL headers to source files.
FooBarWidget authored
2
3 # Phusion Passenger - http://www.modrails.com/
af31321 Hongli Lai Update copyright years.
FooBarWidget authored
4 # Copyright (C) 2008, 2009, 2010, 2011 Phusion
bd6e3b4 Hongli Lai Insert GPL headers to source files.
FooBarWidget authored
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; version 2 of the License.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License along
16 # with this program; if not, write to the Free Software Foundation, Inc.,
17 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
1859c93 Hongli Lai Allow customization of Rakefile options through a config file.
FooBarWidget authored
19 source_root = File.expand_path(File.dirname(__FILE__))
ed2f468 Hongli Lai Revamp the build system.
FooBarWidget authored
20 $LOAD_PATH.unshift(source_root)
1859c93 Hongli Lai Allow customization of Rakefile options through a config file.
FooBarWidget authored
21 $LOAD_PATH.unshift("#{source_root}/lib")
797952c Hongli Lai Split most platform-specific autodetection code to a seperate module.
FooBarWidget authored
22
14e15f2 Hongli Lai Load config.rb earlier, or ENV['CC'] won't have any effect.
FooBarWidget authored
23 require "#{source_root}/config" if File.exist?("#{source_root}/config.rb")
ed2f468 Hongli Lai Revamp the build system.
FooBarWidget authored
24 require 'build/basics'
25 require 'build/config'
26 require 'build/common_library'
27 require 'build/ruby_extension'
28 require 'build/agents'
29 require 'build/apache2'
30 require 'build/nginx'
31 require 'build/documentation'
32 require 'build/packaging'
33 require 'build/test_basics'
34 require 'build/oxt_tests'
35 require 'build/cxx_tests'
36 require 'build/ruby_tests'
37 require 'build/integration_tests'
38 require 'build/misc'
d9bc1c1 Erik Ogan First pass at rake tasks
erikogan authored
39 require 'build/rpm'
04263ed Hongli Lai Integrate the Nginx code into the build system.
FooBarWidget authored
40
fc07ad7 Hongli Lai Vendor libev.
FooBarWidget authored
41
33b0064 Hongli Lai Fix build problems
FooBarWidget authored
42 #### Default tasks
43
ed2f468 Hongli Lai Revamp the build system.
FooBarWidget authored
44 task :default do
45 abort "Please type one of:\n" +
46 " rake apache2\n" +
47 " rake nginx"
48 end
33b0064 Hongli Lai Fix build problems
FooBarWidget authored
49
079ccdc Hongli Lai Remove generated API docs with 'clobber' instead of 'clean'.
FooBarWidget authored
50 desc "Remove compiled files"
281e551 Hongli Lai Begin integrating the logging agent into the system.
FooBarWidget authored
51 task :clean do
f652a60 Hongli Lai rake clean should delete build/cache
FooBarWidget authored
52 sh "rm -rf build/cache"
281e551 Hongli Lai Begin integrating the logging agent into the system.
FooBarWidget authored
53 end
33b0064 Hongli Lai Fix build problems
FooBarWidget authored
54
079ccdc Hongli Lai Remove generated API docs with 'clobber' instead of 'clean'.
FooBarWidget authored
55 desc "Remove all generated files"
56 task :clobber
Something went wrong with that request. Please try again.