This repository has been archived by the owner on Jan 22, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted ServiceFB and native tasks
- Loading branch information
1 parent
c703a61
commit 0253bb4
Showing
6 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,6 @@ | |||
*.o | |||
*.a | |||
*.exe | |||
bin | |||
pkg | |||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,40 @@ | |||
require 'tools/freebasic' | |||
|
|||
# ServiceFB namespace (lib) | |||
namespace :lib do | |||
lib_options = { | |||
:debug => false, | |||
:profile => false, | |||
:errorchecking => :ex, | |||
:mt => true, | |||
:pedantic => true | |||
} | |||
|
|||
lib_options[:debug] = true if ENV['DEBUG'] | |||
lib_options[:profile] = true if ENV['PROFILE'] | |||
lib_options[:errorchecking] = :exx if ENV['EXX'] | |||
lib_options[:pedantic] = false if ENV['NOPEDANTIC'] | |||
|
|||
project_task 'servicefb' do | |||
lib 'ServiceFB' | |||
build_to 'lib' | |||
|
|||
define 'SERVICEFB_DEBUG_LOG' unless ENV['RELEASE'] | |||
source 'lib/ServiceFB/ServiceFB.bas' | |||
|
|||
option lib_options | |||
end | |||
|
|||
project_task 'servicefb_utils' do | |||
lib 'ServiceFB_Utils' | |||
build_to 'lib' | |||
|
|||
define 'SERVICEFB_DEBUG_LOG' unless ENV['RELEASE'] | |||
source 'lib/ServiceFB/ServiceFB_Utils.bas' | |||
|
|||
option lib_options | |||
end | |||
end | |||
|
|||
task :native_lib => ["lib:build"] | |||
task :clean => ["lib:clobber"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,37 @@ | |||
require 'tools/freebasic' | |||
|
|||
# mongrel_service (native) | |||
namespace :native do | |||
exe_options = { | |||
:debug => false, | |||
:profile => false, | |||
:errorchecking => :ex, | |||
:mt => true, | |||
:pedantic => true | |||
} | |||
|
|||
exe_options[:debug] = true if ENV['DEBUG'] | |||
exe_options[:profile] = true if ENV['PROFILE'] | |||
exe_options[:errorchecking] = :exx if ENV['EXX'] | |||
exe_options[:pedantic] = false if ENV['NOPEDANTIC'] | |||
|
|||
project_task 'mongrel_service' do | |||
executable 'mongrel_service' | |||
build_to 'bin' | |||
|
|||
define 'DEBUG_LOG' unless ENV['RELEASE'] | |||
define "GEM_VERSION=#{HOE.spec.version}" | |||
|
|||
main 'native/mongrel_service.bas' | |||
source 'native/console_process.bas' | |||
|
|||
lib_path 'lib' | |||
library 'ServiceFB', 'ServiceFB_Utils' | |||
library 'user32', 'advapi32', 'psapi' | |||
|
|||
option exe_options | |||
end | |||
end | |||
|
|||
task :native_service => [:native_lib, 'native:build'] | |||
task :clean => ['native:clobber'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters