Skip to content
Browse files

[build] Properly integrate Newtonsoft.Json into the build

  • Loading branch information...
1 parent b8c7163 commit 4e483dbbe2ecf356dae6de8d8c4258a1347a8752 @garuma garuma committed
Showing with 25 additions and 1 deletion.
  1. +1 −0 Makefile
  2. +2 −1 MonkeyWrench.Web.WebService/Makefile
  3. +22 −0 Newtonsoft.Json/Makefile
View
1 Makefile
@@ -31,6 +31,7 @@ svn:
all clean install:
@$(MAKE) -C SmartIrc4net $@
+ @$(MAKE) -C Newtonsoft.Json $@
@$(MAKE) -C MonkeyWrench $@
@$(MAKE) -C MonkeyWrench.DataClasses $@
@$(MAKE) -C MonkeyWrench.Database $@
View
3 MonkeyWrench.Web.WebService/Makefile
@@ -12,7 +12,8 @@ BUILDABLE_REFS = \
$(OUT_DIR)/MonkeyWrench.dll \
$(OUT_DIR)/MonkeyWrench.DataClasses.dll \
$(OUT_DIR)/MonkeyWrench.Database.dll \
- $(OUT_DIR)/Meebey.SmartIrc4net.dll
+ $(OUT_DIR)/Meebey.SmartIrc4net.dll \
+ $(OUT_DIR)/Newtonsoft.Json.dll
REFERENCES = \
$(foreach ref,$(BUILDABLE_REFS),-r:$(ref)) \
View
22 Newtonsoft.Json/Makefile
@@ -0,0 +1,22 @@
+DIR = Newtonsoft.Json
+SOURCES = \
+ $(wildcard ../$(DIR)/Src/Newtonsoft.Json/*.cs) \
+ $(wildcard ../$(DIR)/Src/Newtonsoft.Json/*/*.cs)
+
+TOPDIR = ..
+
+LIBRARY = Newtonsoft.Json.dll
+OUT_DIR = $(TOPDIR)/class/lib
+OUT = $(OUT_DIR)/$(LIBRARY)
+
+$(OUT): $(SOURCES) $(BUILDABLE_REFS)
+ @echo " DMCS $(LIBRARY)"
+ @dmcs -target:library -debug:full -out:$@ -r:System.Xml.Linq -r:System.Data -r:System.Runtime.Serialization.dll $(SOURCES) -warn:0 -D:NET_2_0
+
+all: $(OUT)
+
+clean:
+ @rm -f $(OUT)*
+
+publish install: all
+ @:

0 comments on commit 4e483db

Please sign in to comment.
Something went wrong with that request. Please try again.