Skip to content
This repository was archived by the owner on Nov 26, 2020. It is now read-only.

Overhaul for Rust 0.12 #14

Merged
merged 12 commits into from
Oct 1, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = na grust fauxgen test
SUBDIRS = grust fauxgen test
5 changes: 4 additions & 1 deletion build/rules.mk
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
%: $(srcdir)/%.rs
$(RUSTC) $(LOCAL_RUSTCFLAGS) $(RUSTCFLAGS) -o $@ $<

.libs/.built.%: $(srcdir)/%.rc | .libs
.libs/.built.%: $(srcdir)/%.rs | .libs
$(RUSTC) $(LOCAL_RUSTCFLAGS) $(RUSTCFLAGS) --out-dir $(builddir)/.libs $< && \
touch $@

.libs:
mkdir -p .libs

clean-local:
-rm -rf .libs
11 changes: 1 addition & 10 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ AC_INIT([grust], [0.1.0])
AC_CONFIG_MACRO_DIR([m4])

AM_INIT_AUTOMAKE([foreign no-dependencies])
LT_INIT([disable-static])

AC_ARG_ENABLE([test-runs],
[AS_HELP_STRING([--enable-test-runs=(serial|parallel)],
Expand Down Expand Up @@ -31,12 +30,6 @@ AM_CONDITIONAL([TEST_RUN_PARALLEL], [test .$test_run_parallel = .yes])
AC_CHECK_TOOL([RUSTC], [rustc], [rustc])
AC_ARG_VAR([RUSTCFLAGS], [Rust compiler flags])

AC_PROG_CC

AS_IF([test ."$GCC" = .yes], [
CFLAGS="$CFLAGS -Wall -Werror"
])

AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
[Compile with debug information])],
Expand All @@ -46,15 +39,13 @@ AS_IF([test $enable_debug = yes],[
CFLAGS="$CFLAGS -g"
])

PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.32 gobject-2.0])
PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.32])
PKG_CHECK_EXISTS([glib-2.0 >= 2.36 gobject-2.0 gio-2.0 >= 2.36])

GLIB_L_FLAGS=$($PKG_CONFIG --libs-only-L glib-2.0 gobject-2.0 gio-2.0)
AC_SUBST([GLIB_L_FLAGS])

AC_CONFIG_FILES([
Makefile
na/Makefile
grust/Makefile
fauxgen/Makefile
test/Makefile
Expand Down
2 changes: 1 addition & 1 deletion fauxgen/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LOCAL_RUSTCFLAGS := \
LOCAL_RUSTCFLAGS = \
-L $(top_builddir)/grust/.libs \
-L $(builddir)/.libs \
$(GLIB_L_FLAGS)
Expand Down
232 changes: 0 additions & 232 deletions fauxgen/gio.rc

This file was deleted.

Loading