Skip to content

Commit aa5438d

Browse files
authored
[sdks] Package what's missing for XA (mono#11253)
They require the additional files: - mono/eglib/eglib-config.h: that's to build `libmonodroid` - mcs/build/Consts.cs: that's to build `Mono.Posix` and `Mono.Data.Sqlite`
1 parent 2ae12c6 commit aa5438d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

mcs/build/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ thisdir = build
22
SUBDIRS =
33
include ../build/rules.make
44

5-
BUILT_FILES = common/Consts.cs common/MonoNativeConfig.cs
5+
BUILT_FILES = common/Consts.cs $(topdir)/class/lib/$(PROFILE_DIRECTORY)/Consts.cs common/MonoNativeConfig.cs
66

77
all-local install-local test-local run-test-local csproj-local run-test-ondotnet-local uninstall-local doc-update-local: $(BUILT_FILES)
88
@:
99

1010
clean-local:
1111
-rm -f $(BUILT_FILES) deps/*
1212

13-
common/Consts.cs: common/Consts.cs.in $(wildcard config.make)
13+
$(topdir)/class/lib/$(PROFILE_DIRECTORY):
14+
mkdir -p $@
15+
16+
common/Consts.cs $(topdir)/class/lib/$(PROFILE_DIRECTORY)/Consts.cs: common/Consts.cs.in $(wildcard config.make) | $(topdir)/class/lib/$(PROFILE_DIRECTORY)
1417
test -n '$(MONO_VERSION)'
1518
test -n '$(MONO_CORLIB_VERSION)'
1619
sed -e 's,@''MONO_VERSION@,$(MONO_VERSION),' -e 's,@''MONO_CORLIB_VERSION@,$(MONO_CORLIB_VERSION),' $< > $@

mono/eglib/Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ libeglib_la_SOURCES = \
5656
$(os_files)
5757

5858
CFLAGS := $(filter-out @CXX_REMOVE_CFLAGS@, @CFLAGS@) @CXX_ADD_CFLAGS@
59+
60+
eglibdir=$(datadir)/mono-$(API_VER)/mono/eglib
61+
eglib_DATA = eglib-config.h
62+
5963
libeglib_la_CFLAGS = -g -Wall -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE
6064

6165
AM_CPPFLAGS = -I$(srcdir)

0 commit comments

Comments
 (0)