]> git.mdlowis.com Git - archive/dlang.git/commitdiff
Added a task to build cork library before main binary
authorMike D. Lowis <mike@mdlowis.com>
Mon, 27 Feb 2012 00:57:24 +0000 (19:57 -0500)
committerMike D. Lowis <mike@mdlowis.com>
Mon, 27 Feb 2012 00:57:24 +0000 (19:57 -0500)
example.dl
rakefile.rb

index 869719f5180ad94d6ce7c636c5561dc492fec565..2a87765d102db5dc6d48b2b15e3a47b7365d4d39 100644 (file)
@@ -20,6 +20,15 @@ if (1 == 1)
     print("1 Hello, World!")
 }
 
+if (1 == 1)
+{
+
+}
+else
+{
+
+}
+
 if (1 == 0)
 {
     print("Hello, World!")
index 4348f0af38c04570fb39db622918f47f5df9b560..4f4b6ac89d8eaada57591f69d4bddc3cc2bd4448 100644 (file)
@@ -1,7 +1,12 @@
 include Rake::DSL
+require 'rake/clean'
 require 'tools/rake_utils/source/binary.rb'
 require 'tools/rake_utils/source/tests.rb'
 
+PROJECT_ROOT  = File.expand_path(File.dirname(__FILE__))
+CLOBBER.include('./deps/cork/build/static')
+CLOBBER.include('./deps/cork/build/shared')
+
 #------------------------------------------------------------------------------
 # Configuration Objects
 #------------------------------------------------------------------------------
@@ -16,7 +21,6 @@ DLangParser = Binary.new({
         'source/**/',
         'deps/cork/source/**/'
     ],
-    #:preprocessor_defines => [ 'DETECT_MEM_LEAKS' ]
 })
 DLangParser.setup_default_rake_tasks()
 
@@ -28,4 +32,10 @@ UnitTest = Tests.new({
 UnitTest.setup_default_rake_tasks()
 
 desc 'Build and link all artifacts'
-task :release => [ DLangParser.name() ]
+task :release => [ :cork, DLangParser.name() ]
+
+task :cork do
+    Dir.chdir('./deps/cork')
+    sh 'rake release'
+    Dir.chdir(PROJECT_ROOT)
+end