linux-packaging-monodevelop/xbuild.include

82 строки
2.0 KiB
Plaintext
Исходник Обычный вид История

2013-02-24 21:48:06 +04:00
ALL_CSPROJ=$(wildcard *.csproj)
MAIN_SLN=$(top_builddir)/Main.sln
if ENABLE_MACPLATFORM
2016-02-29 20:50:53 +03:00
if RELEASE_BUILDS
PROFILE_NAME=ReleaseMac
else
2013-02-24 21:48:06 +04:00
PROFILE_NAME=DebugMac
endif
2016-02-29 20:50:53 +03:00
endif
2013-02-24 21:48:06 +04:00
if ENABLE_GNOMEPLATFORM
2016-02-29 20:50:53 +03:00
if RELEASE_BUILDS
PROFILE_NAME=ReleaseGnome
else
2014-10-06 13:19:19 +04:00
PROFILE_NAME=DebugGnome
2013-02-24 21:48:06 +04:00
endif
2016-02-29 20:50:53 +03:00
endif
2013-02-24 21:48:06 +04:00
if ENABLE_WINDOWSPLATFORM
2016-02-29 20:50:53 +03:00
if RELEASE_BUILDS
PROFILE_NAME=ReleaseWin32
else
2013-02-24 21:48:06 +04:00
PROFILE_NAME=DebugWin32
endif
2016-02-29 20:50:53 +03:00
endif
2013-02-24 21:48:06 +04:00
2018-02-20 18:49:18 +03:00
XBUILD=msbuild
XBUILD_VERBOSITY ?= normal
2018-05-08 19:03:01 +03:00
XBUILD_ARGS=/verbosity:$(XBUILD_VERBOSITY) /nologo /property:CodePage=65001 /property:RestorePackages=false /property:DownloadPaket=false
2013-02-24 21:48:06 +04:00
XBUILD_PROFILE=/property:Configuration=$(PROFILE_NAME)
# Figure out how far we are from top_builddir
DEPTH=$(shell echo "$(top_builddir)" | tr '/' '\n' | grep -c '..')
all: csproj_build
clean: csproj_clean
csproj_build:
@if test x$(SKIP) != xy -a $(DEPTH) -gt $(MAKELEVEL); then \
echo Building $(ALL_CSPROJ); \
for p in $(ALL_CSPROJ); do $(XBUILD) $(XBUILD_ARGS) $$p; done \
fi
csproj_clean:
@if test x$(SKIP) != xy -a $(DEPTH) -gt $(MAKELEVEL); then \
echo Cleaning $(ALL_CSPROJ); \
for p in $(ALL_CSPROJ); do $(XBUILD) $(XBUILD_ARGS) $$p /t:Clean; done \
fi
sln_build:
@echo Building $(MAIN_SLN)
2018-02-20 18:49:18 +03:00
ok=:; $(XBUILD) $(XBUILD_ARGS) /bl:MonoDevelop.binlog $(MAIN_SLN) $(XBUILD_PROFILE) || ok=false; echo @MonkeyWrench: AddFile: $$(pwd)/MonoDevelop.binlog; $$ok
2013-02-24 21:48:06 +04:00
sln_clean:
@echo Cleaning $(MAIN_SLN)
$(XBUILD) $(XBUILD_ARGS) $(MAIN_SLN) $(XBUILD_PROFILE) /t:Clean
print_extradist:
@echo $(WILDCARDED_FILES)
2018-02-20 18:49:18 +03:00
EXTS:=*.bmp *.cs *.csproj *.shproj *.projitems *.mdproj *.html *.png *.snk *.config *.stetic *.glade *.xml *.xsd *.exe.addins *.template *.tt *.txt *.targets *.props *.sh
2013-02-24 21:48:06 +04:00
ALL_FILES:= $(EXTS) \
$(addprefix */,$(EXTS)) \
$(addprefix */*/,$(EXTS)) \
$(addprefix */*/*/,$(EXTS)) \
$(addprefix */*/*/*/,$(EXTS)) \
$(addprefix */*/*/*/*/,$(EXTS)) \
$(wildcard icons/*) \
2018-02-20 18:49:18 +03:00
$(wildcard themes/*) \
2013-02-24 21:48:06 +04:00
$(wildcard templates/*)
WILDCARDED_FILES:=$(wildcard $(ALL_FILES))
EXTRA_DIST = \
$(wildcard $(ALL_FILES))
.PHONY: all clean csproj_build csproj_clean sln_build sln_clean