2013-01-09 16:52:34 +01:00
|
|
|
--- ../passenger-3.0.19/build/nginx.rb.orig 2010-12-07 13:57:32.000000000 +0300
|
|
|
|
+++ ../passenger-3.0.19/build/nginx.rb 2010-12-07 13:58:13.000000000 +0300
|
2010-12-12 13:22:47 +01:00
|
|
|
@@ -23,10 +23,7 @@
|
2010-12-06 07:28:05 +01:00
|
|
|
|
2010-12-01 21:18:57 +01:00
|
|
|
desc "Build Nginx helper agent"
|
|
|
|
task :nginx => [
|
2010-12-12 13:22:47 +01:00
|
|
|
- AGENT_OUTPUT_DIR + 'nginx/PassengerHelperAgent',
|
|
|
|
- AGENT_OUTPUT_DIR + 'PassengerWatchdog',
|
|
|
|
- AGENT_OUTPUT_DIR + 'PassengerLoggingAgent',
|
2010-12-06 07:28:05 +01:00
|
|
|
- :native_support
|
2010-12-12 13:22:47 +01:00
|
|
|
+ AGENT_OUTPUT_DIR + 'nginx/PassengerHelperAgent'
|
2010-12-01 21:18:57 +01:00
|
|
|
]
|
|
|
|
|
2010-12-06 07:28:05 +01:00
|
|
|
dependencies = [
|
2010-12-12 13:22:47 +01:00
|
|
|
@@ -51,18 +48,7 @@
|
2010-12-01 21:18:57 +01:00
|
|
|
LIBCOMMON,
|
|
|
|
]
|
2010-12-12 13:22:47 +01:00
|
|
|
file AGENT_OUTPUT_DIR + 'nginx/PassengerHelperAgent' => dependencies do
|
|
|
|
- output_dir = "#{AGENT_OUTPUT_DIR}nginx"
|
|
|
|
- sh "mkdir -p #{output_dir}" if !File.directory?(output_dir)
|
|
|
|
- create_executable "#{output_dir}/PassengerHelperAgent",
|
2010-12-01 21:18:57 +01:00
|
|
|
- 'ext/nginx/HelperAgent.cpp',
|
|
|
|
- "-Iext -Iext/common " <<
|
|
|
|
- "#{PlatformInfo.portability_cflags} " <<
|
|
|
|
- "#{EXTRA_CXXFLAGS} " <<
|
|
|
|
- "#{LIBCOMMON} " <<
|
|
|
|
- "#{LIBBOOST_OXT} " <<
|
|
|
|
- "#{PlatformInfo.portability_ldflags} " <<
|
|
|
|
- "#{AGENT_LDFLAGS} " <<
|
|
|
|
- "#{EXTRA_LDFLAGS}"
|
|
|
|
+ true
|
|
|
|
end
|
|
|
|
|
|
|
|
task :clean => 'nginx:clean'
|