Began moving over press to new build system.

Reviewed by me.
This commit is contained in:
Francisco Tolmasky committed 2009-03-19 00:38:22 -07:00
1 parent f372e7ae11
commit 87389c7ca6
4 files changed
+39 -37

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ require 'rake'
require '../common'
subprojects = %w{bake capp nib2cib}
subprojects = %w{bake capp nib2cib press}
%w(build clean).each do |task_name|
task task_name do
+38
View File
@@ -0,0 +1,38 @@
#!/usr/bin/env ruby
require 'rake'
require '../../common'
require 'objective-j'
require 'objective-j/bundletask'
$PRODUCT = :press
$BUILD_PATH = File.join($BUILD_DIR, $CONFIGURATION, 'press')
$ENVIRONMENT_BIN_PRODUCT = File.join($ENVIRONMENT_BIN_DIR, 'press')
$ENVIRONMENT_LIB_PRODUCT = File.join($ENVIRONMENT_LIB_DIR, 'press')
task :build => [:press, $ENVIRONMENT_BIN_PRODUCT, $ENVIRONMENT_LIB_PRODUCT]
# Debug Framework
ObjectiveJ::BundleTask.new(:press) do |t|
t.name = 'press'
t.identifier = 'com.280n.press'
t.version = '0.6.5'
t.author = '280 North, Inc.'
t.email = 'feedback @nospam@ 280north.com'
t.summary = 'Deployment tool for Cappuccino applications'
t.sources = FileList['*.j']
t.resources = FileList['Resources/*']
t.license = ObjectiveJ::License::LGPL_v2_1
t.build_path = $BUILD_PATH
t.flag = 'DEBUG' if $CONFIGURATION == 'Debug'
end
#executable in environment directory
file_d $ENVIRONMENT_BIN_PRODUCT do
make_objj_executable($ENVIRONMENT_BIN_PRODUCT)
end
file_d $ENVIRONMENT_LIB_PRODUCT => [:press] do
cp_r(File.join($BUILD_PATH, '.'), $ENVIRONMENT_LIB_PRODUCT)
end
File renamed without changes.
-36
View File
@@ -1,36 +0,0 @@
#!/bin/sh
# if OBJJ_HOME isn't set, try to determine it
if [ -z $OBJJ_HOME ]; then
# get path of the executable
SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && SELF_PATH=$SELF_PATH/$(basename -- "$0")
# resolve symlinks
if [ -h $SELF_PATH ]; then
SELF_PATH=`readlink $SELF_PATH`
fi
# get second ancestor directory
SELF_DIR=`dirname $SELF_PATH`
export OBJJ_HOME=`dirname $SELF_DIR`
# check to ensure it exists, print message
if [ -d $OBJJ_HOME ]; then
echo "OBJJ_HOME not set, defaulting to $OBJJ_HOME" 1>&2
else
echo "OBJJ_HOME not set, default at $OBJJ_HOME doesn't exist, exiting" 1>&2
exit 2
fi
fi
OBJJ_LIB="$OBJJ_HOME/lib"
PRESS="$OBJJ_LIB/press.j"
# convert paths for Cygwin
if [[ `uname` == CYGWIN* ]]; then
OBJJ_HOME=`cygpath -w "$OBJJ_HOME"`
PRESS=`cygpath -w "$PRESS"`
fi
objj $PRESS $@