Moved BlendKit to new build system.

Reviewd by me.
This commit is contained in:
Francisco Tolmasky committed 2009-03-17 00:33:22 -07:00
1 parent 10422caa92
commit 1dcc6db079
6 files changed
+43 -783

No files matched your search

-42
View File
@@ -1,42 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Name</key>
<string>BlendKit</string>
<key>Targets</key>
<array>
<dict>
<key>Name</key>
<string>BlendKit</string>
</dict>
</array>
<key>Configurations</key>
<array>
<dict>
<key>Name</key>
<string>Debug</string>
<key>Flags</key>
<string>-DDEBUG -DPLATFORM_DOM -g</string>
</dict>
<dict>
<key>Name</key>
<string>Release</string>
<key>Flags</key>
<string>-DPLATFORM_DOM -O</string>
</dict>
<dict>
<key>Name</key>
<string>Debug-Rhino</string>
<key>Flags</key>
<string>-DDEBUG -g</string>
</dict>
<dict>
<key>Name</key>
<string>Release-Rhino</string>
<key>Flags</key>
<string>-O</string>
</dict>
</array>
</dict>
</plist>
-33
View File
@@ -1,33 +0,0 @@
<?xml version = "1.0"?>
<project name = "BlendKit" default = "build" basedir = "." >
<import file = "../../../common.xml" />
<import file = "${env.OBJJ_LIB}/steam/steam.xml" />
<target name = "clean" depends = "steam-uptodate">
<steam-build>
<arg line = "-f BlendKit.steam -c ${Configuration} clean" />
</steam-build>
<steam-build>
<arg line = "-f BlendKit.steam -c ${Configuration}-Rhino clean" />
</steam-build>
</target>
<target name = "build" depends = "steam-uptodate">
<steam-build>
<arg line = "-f BlendKit.steam -c ${Configuration}" />
</steam-build>
<steam-build>
<arg line = "-f BlendKit.steam -c ${Configuration}-Rhino" />
</steam-build>
<!-- <copy file = "../LICENSE" todir = "${Build}/${Configuration}/AppKit" />-->
</target>
</project>
+17 -40
View File
@@ -3,52 +3,29 @@
require 'rake'
require '../../../common'
require 'objective-j'
require 'objective-j/bundle'
require 'objective-j/bundletask'
$PRODUCT = 'BlendKit' + $CONFIGURATION
$ENVIRONMENT_PRODUCT = File.join($ENVIRONMENT_FRAMEWORKS_DIR, 'BlendKit')
$BUILD_PATH = File.join($BUILD_DIR, $CONFIGURATION, 'BlendKit')
task :build => [$PRODUCT, $ENVIRONMENT_PRODUCT]
task :build => [:BlendKit, $ENVIRONMENT_PRODUCT]
Specs = {}
# Debug Framework
Specs[:BlendKitDebug] = ObjectiveJ::BundleSpecification.new do |s|
s.name = 'BlendKit'
s.identifier = 'com.280n.BlendKit'
s.version = '0.6.5'
s.author = '280 North, Inc.'
s.email = 'feedback @nospam@ 280north.com'
s.summary = 'BlendKit classes for Cappuccino'
s.sources = FileList['**/*.j']
s.resources = FileList['Resources/*']
s.license = ObjectiveJ::License::LGPL_v2_1
s.build_path = File.join($BUILD_DIR, 'Debug', 'BlendKit')
s.intermediates_path = File.join($BUILD_DIR, 'BlendKit.build', 'Debug')
s.flag = 'DEBUG'
ObjectiveJ::BundleTask.new(:BlendKit) do |t|
t.name = 'BlendKit'
t.identifier = 'com.280n.BlendKit'
t.version = '0.6.5'
t.author = '280 North, Inc.'
t.email = 'feedback @nospam@ 280north.com'
t.summary = 'BlendKit classes for Cappuccino'
t.sources = FileList['*.j']
t.resources = FileList['Resources/*'].to_a
t.license = ObjectiveJ::License::LGPL_v2_1
t.build_path = $BUILD_PATH
t.flag = 'DEBUG' if $CONFIGURATION == 'Debug'
end
bundle Specs[:BlendKitDebug], :BlendKitDebug
# Release Framework
Specs[:BlendKitRelease] = ObjectiveJ::BundleSpecification.new do |s|
s.name = 'BlendKit'
s.identifier = 'com.280n.BlendKit'
s.version = '0.6.5'
s.author = '280 North, Inc.'
s.email = 'feedback @nospam@ 280north.com'
s.summary = 'BlendKit classes for Cappuccino'
s.sources = FileList['**/*.j']
s.resources = FileList['Resources/*']
s.license = ObjectiveJ::License::LGPL_v2_1
s.build_path = File.join($BUILD_DIR, 'Release', 'BlendKit')
s.intermediates_path = File.join($BUILD_DIR, 'BlendKit.build', 'Release')
end
bundle Specs[:BlendKitRelease], :BlendKitRelease
#Framework in environment directory
file_d $ENVIRONMENT_PRODUCT => [$PRODUCT] do
cp_r(Specs[$PRODUCT.to_sym].build_path, $ENVIRONMENT_PRODUCT)
file_d $ENVIRONMENT_PRODUCT => [:BlendKit] do
cp_r($BUILD_PATH, $ENVIRONMENT_PRODUCT)
end