Skip to content

Commit

Permalink
Support a build platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Jolley committed Jan 17, 2010
1 parent 8b10904 commit 3e86452
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Buildfile
Expand Up @@ -74,8 +74,9 @@ mode :all do
:theme => 'sproutcore/standard_theme',

# use default bootstrap framework
:bootstrap_inline => 'sproutcore/bootstrap:javascript',
:bootstrap_env => true, # include an ENV global variable
:bootstrap_inline => 'sproutcore/bootstrap:javascript',
:bootstrap_env => true, # include an ENV global variable
:build_platform => :classic,

:use_packed => true,

Expand Down
2 changes: 1 addition & 1 deletion lib/sproutcore/helpers/static_helper.rb
Expand Up @@ -139,7 +139,7 @@ def bootstrap
if target.config.bootstrap_env
env = {
'mode' => SC.env.build_mode,
'platform' => 'browser' # make an option later
'platform' => target.config.build_platform
}.to_json
ret << %(<script type="text/javascript">\nENV = #{env};\n</script>)
end
Expand Down

0 comments on commit 3e86452

Please sign in to comment.