annotate rakefile.rb @ 40:db1d9ae4c4f6

compile dll.
author Kazuma Takeda
date Thu, 23 Feb 2017 17:19:19 +0900
parents b4bb6f193a44
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
37
5a3b3aa5d477 add rake file
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 CSC = "mcs"
40
db1d9ae4c4f6 compile dll.
Kazuma Takeda
parents: 39
diff changeset
2 CSR = "mono"
38
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
3 UNITY_SRC = [
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
4 "Test/junge-main/DefaultJungleTreeTest.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
5 "Test/junge-main/data/list/ListTest.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
6 "Test/junge-main/data/list/deleteTest.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
7 "Test/junge-main/data/list/listAdd.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
8 "Test/junge-main/data/list/replaceTest.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
9 "Test/junge-main/data/treemap/TreeMapDelete.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
10 "Test/junge-main/data/treemap/TreeMapTest.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
11 "Test/junge-main/jungle/core/nodeeditor/PutAttributeTest.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
12 "Test/jungle-network/operations/NetworkAppendChildOperationTest.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
13 "Test/jungle-network/operations/NetworkDeleteAttributeOperationTest.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
14 "Test/jungle-network/operations/NetworkDeleteChildAtOperationTest.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
15 "Test/jungle-network/operations/NetworkNodeOperationTest.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
16 "Test/jungle-network/operations/NetworkPutAttributeOperationTest.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
17 "Test/jungle-network/operations/NetworkTreeOperationLogTest.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
18 "Main/ObjectMapper/SceneNode.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
19 "Main/ObjectMapper/ConvertObject.cs",
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
20 ]
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
21
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
22
37
5a3b3aa5d477 add rake file
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 SRC = FileList[ '**/*.cs']
38
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
24
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
25 UNITY_SRC.each do | f |
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
26 SRC.exclude(f)
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
27 end
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
28
40
db1d9ae4c4f6 compile dll.
Kazuma Takeda
parents: 39
diff changeset
29 TEST_SRC = "Test/junge-main/TestJungleCore.cs"
db1d9ae4c4f6 compile dll.
Kazuma Takeda
parents: 39
diff changeset
30 TEST_EXE = "Test/junge-main/TestJungleCore.exe"
db1d9ae4c4f6 compile dll.
Kazuma Takeda
parents: 39
diff changeset
31 SRC.exclude(TEST_SRC)
38
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
32
37
5a3b3aa5d477 add rake file
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 BUILD_DIR = "build"
5a3b3aa5d477 add rake file
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34
40
db1d9ae4c4f6 compile dll.
Kazuma Takeda
parents: 39
diff changeset
35 FULL_NAME = "jungle-sharp.dll"
38
e954d456665c library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
36 TARGET = 'library'
37
5a3b3aa5d477 add rake file
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 REFS = ["jungle-sharp.dll"]
39
b4bb6f193a44 add default compile command to rakefile.
Kazuma Takeda
parents: 38
diff changeset
38 task :default => :compile
37
5a3b3aa5d477 add rake file
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 task :compile do
5a3b3aa5d477 add rake file
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 sh "#{CSC} -debug -out:#{FULL_NAME} -target:#{TARGET} -lib:#{BUILD_DIR}-r:#{REFS.join(',')} #{SRC}"
5a3b3aa5d477 add rake file
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 end
40
db1d9ae4c4f6 compile dll.
Kazuma Takeda
parents: 39
diff changeset
42
db1d9ae4c4f6 compile dll.
Kazuma Takeda
parents: 39
diff changeset
43 task :test => [:compile] do
db1d9ae4c4f6 compile dll.
Kazuma Takeda
parents: 39
diff changeset
44 sh "#{CSC} -debug -out:#{TEST_EXE} -target:exe #{TEST_SRC} -r:jungle-sharp.dll"
db1d9ae4c4f6 compile dll.
Kazuma Takeda
parents: 39
diff changeset
45 sh "#{CSR} #{TEST_EXE}"
db1d9ae4c4f6 compile dll.
Kazuma Takeda
parents: 39
diff changeset
46 end